欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

安卓应用程序跳转至微信

最编程 2024-04-29 08:37:48
...
fun goWeChatScan(context: Context) { Intent(Intent.ACTION_MAIN).apply { putExtra("LauncherUI.From.Scaner.Shortcut", true) addCategory(Intent.CATEGORY_LAUNCHER) addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) component = ComponentName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI") context.startActivity(this) } }