您的位置:首页 > 移动开发 > 微信开发

android 内部打开微信

2017-06-05 18:51 183 查看
Intent intent = new Intent();
ComponentName cmp=new ComponentName("com.tencent.mm","com.tencent.mm.ui.LauncherUI");
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(cmp);
startActivity(intent);
几个常用的package有:新浪微博(编辑界面):com.sina.weibocom.sina.weibo.EditActivity腾讯微博(编辑界面):com.tencent.WBlogcom.tencent.WBlog.activity.MicroblogInput微信:com.tencent.mmcom.tencent.mm.ui.LauncherUIQQ:com.tencent.mobileqqcom.tencent.mobileqq.activity.HomeActivity
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: