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

后端 未结 23 3225
既然无缘
既然无缘 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:07

    If you want to open Google Play store from your app then use this command directy: market://details?gotohome=com.yourAppName, it will open your app's Google Play store pages.

    • Web: http://play.google.com/store/apps/details?id=
    • App: market://details?id=

    Show all apps by a specific publisher

    • Web: http://play.google.com/store/search?q=pub:
    • App: market://search?q=pub:

    Search for apps that using the Query on its title or description

    • Web: http://play.google.com/store/search?q=
    • App: market://search?q=

    Reference: https://tricklio.com/market-details-gotohome-1/

提交回复
热议问题