2016-09-17 33 views

回答

2

這應該對你有所幫助。

final String appPackageName = getPackageName(); // this is your playstore url id parameter 
    try { 
     startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); 
    } catch (android.content.ActivityNotFoundException anfe) { 
     startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName))); 
    } 
+0

非常感謝您 – ywj7931

相關問題