try { Intent a = getPackageManager().getLaunchIntentForPackage("com.tencent.mobileqq"); startActivity(a); }catch (Exception e){ Toast.makeText(MainActivity.this,"打开失败",Toast.LENGTH_SHORT).show();;}
Intent a = getPackageManager().getLaunchIntentForPackage("com.tencent.mm"); startActivity(a);
启动QQ,微信
最新推荐文章于 2024-08-18 22:01:07 发布