How to open the Google Play Store directly from my Android application?

后端 未结 23 3212
既然无缘
既然无缘 2020-11-22 02:00

I have open the Google Play store using the following code

Intent i = new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(\"https://play.goo         


        
23条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 02:14

    try this

    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(Uri.parse("market://details?id=com.example.android"));
    startActivity(intent);
    

提交回复
热议问题