Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 636
TWA Avatar asked Oct 29 '09 19:10

TWA


People also ask

Can I change free app to paid app?

Once your app has been offered for free, the app can't be changed to paid. If you want to charge for the app, you need to create a new app with a new package name and set a price.


2 Answers

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.

like image 109
uwe Avatar answered Sep 23 '22 18:09

uwe


Add this to the button's OnClickListener's onClick method:

Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://search?q=uk.co.ashtonbrsc"));
startActivity(marketLaunch);

Replacing uk.co.ashtonbrsc with a search term that will find your app.

like image 43
Intrications Avatar answered Sep 20 '22 18:09

Intrications