- ry {
- PackageManager packageManager = getPackageManager();
- Intent intent=new Intent();
- intent = packageManager.getLaunchIntentForPackage("com.tencent.mm");
- startActivity(intent);
- } catch (Exception e) {
- e.printStackTrace();
- Intent viewIntent = new
- Intent("android.intent.action.VIEW",Uri.parse("http://weixin.qq.com/"));
- startActivity(viewIntent);
- }
时间: 2024-11-02 12:35:43