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

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

    Go on Android Developer official link as tutorial step by step see and got the code for your application package from play store if exists or play store apps not exists then open application from web browser.

    Android Developer official link

    https://developer.android.com/distribute/tools/promote/linking.html

    Linking to a Application Page

    From a web site: https://play.google.com/store/apps/details?id=

    From an Android app: market://details?id=

    Linking to a Product List

    From a web site: https://play.google.com/store/search?q=pub:

    From an Android app: market://search?q=pub:

    Linking to a Search Result

    From a web site: https://play.google.com/store/search?q=&c=apps

    From an Android app: market://search?q=&c=apps

提交回复
热议问题