AndroidDev
AndroidDev

Reputation: 4559

How to link our app to the app present in android market

I have created an app which is a paid version. I recently launched my paid version of the app in the android market.

Now I have created the free version of that app, which is also launched in the android market. There is a button in my free version app. So when I click that button I want to open a link of the android market where my paid version of the app is. I mean to say that I have an option in my free app from which I can get the paid version of my app which is stored in the android market.

So can anyone please help me to solve this out?

Regards
Anshuman

Upvotes: 0

Views: 173

Answers (2)

Samuel
Samuel

Reputation: 9993

i found this in the documentation

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

Upvotes: 4

Konstantin Burov
Konstantin Burov

Reputation: 69228

You need to raise a special kind of intent on button click. Refer to official documentation for details.

Upvotes: 0

Related Questions