How do I link from free to paid app in the Android market?

后端 未结 2 1846
感情败类
感情败类 2021-02-04 17:22

If I have a free version of a paid app in the Android market how can I place a button in the free app that opens the paid version in the market?

2条回答
  •  无人及你
    2021-02-04 17:58

    Even better to use "market://details" instead of "market://search":

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

    Then it opens directly the details page of the app. With search it shows a single search result and the user has to do an additional click to get to the detail page.

提交回复
热议问题