1: String appPackage = "jp.naver.line.android";
2: Intent intent = getPackageManager().getLaunchIntentForPackage(appPackage);
3: if(intent!=null){
4: startActivity(intent);
5: }else{
6: intent = new Intent(Intent.ACTION_VIEW);
7: intent.setData(Uri.parse("market://details?id="+appPackage));
8: }
9: startActivity(intent);
沒有留言:
張貼留言