Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start Android Market from App

Tags:

java

android

I'm developing a lite version for an app on the Android. How can I start an Intent to open the Android Market, preferably with the full version of my app displayed? This is difficult to test on an emulator (which is the closest thing to a device I have), as there seems to be no legal way of installing the Market on it.

like image 785
Tom R Avatar asked Dec 27 '09 00:12

Tom R


People also ask

How can I open Google Play store directly from my Android?

On your device, go to the Apps section. The app will open and you can search and browse for content to download.

How much does it cost to deploy an Android application to the Android Market?

Open Google Play Console and create a developer account. How much does it cost to publish an Android app? The operation costs $25. You pay only once, the account gives you the right to publish as many apps as you want anytime and anywhere.

Is Android Market the same as Google Play?

Google Play, formerly known as Android Market, is the official distribution storefront for Android applications and other digital media, such a music, movies and books, from Google. It is available on mobile devices and tablets that run the Android operating system (OS), supported Chrome OS devices and on the web.


2 Answers

That query above works, but when I tried it, it looked like it was bringing up search results based on the name.

If you use something like

intent.setData(Uri.parse("market://details?id=com.wolinlabs.SuperScorepad")); 

instead, it will go right to the Android Market page for your app.

I think that's more what you wanted (?)

like image 132
gulchrider Avatar answered Oct 12 '22 22:10

gulchrider


Found answer in the end:

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setData(Uri.parse("market://search?q=pname:MyApp")); 
startActivity(intent);

No way of testing on emulator, though.

like image 29
Tom R Avatar answered Oct 13 '22 00:10

Tom R