try { Intent intent = new Intent(); intent.setComponent(new ComponentName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI")); intent.putExtra("LauncherUI.From.Scaner.Shortcut", true); intent.setFlags(335544320); intent.setAction("android.intent.action.VIEW"); getContext().startActivity(intent); } catch (Exception e) { Toast.makeText(getContext(), "无法跳转到微信,请检查您是否安装了微信!", Toast.LENGTH_SHORT).show(); }重要的事情说三遍。亲测好使!!!亲测好使!!!亲测好使!!!
跳转微信扫一扫
最新推荐文章于 2025-02-23 20:55:04 发布