André Rodrigues
André Rodrigues

Reputation: 9423

Google Play inside Android application

I know we can launch the Google play app this way for a specific product:

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

But I don't want to leave my app, because after the user can't be redirected back to it.

So, is there a way to open a Google Play product page on Android like on iOS with the SKStoreProductViewController?
Or there is a way by creating our own "Google Play product page" and getting the infos with an official API?

Thanks.

Upvotes: 1

Views: 596

Answers (1)

Budius
Budius

Reputation: 39836

The answer is 'No' and I think you have a couple of mixed concepts.

If you're implementing an in-app purchase (as pointed on the link Connor put on the comment) as soon as the user finished the purchase the market closes and your activity resumes (usually receiving a callback about the transaction success).

If you just want the user to go to the Google Play to leave a review or rate your app, you'll have to accept the fact that it will have to leave your app, and the user will return to it if the user wants to.

Upvotes: 3

Related Questions