views:

130

answers:

1

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?

+7  A: 

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.

AshtonBRSC