Android Question Opening Play Store link to paid app from within free app

Arf

Well-Known Member
Licensed User
Longtime User
I have made a free app and a paid app, I want to provide a link that when clicked, will open up the google play store on my paid app's page so it can be purchased easily from there.

Any pointers as to how to open the Play Store app with this info? Or do I need to invoke a browser somehow?

Thanks
 

jesediaz

New Member
Use a try catch for old and new phones.
B4X:
Dim GooglePlay As Intent

Try
     GooglePlay.Initialize(GooglePlay.ACTION_VIEW,"market://details?id="& Application.PackageName)
     StartActivity(GooglePlay)

Catch

     GooglePlay.Initialize(GooglePlay.ACTION_VIEW, "https://play.google.com/store/apps/details?id=" & Application.PackageName)
     StartActivity(GooglePlay)

End Try
Return
 
Upvote 1
Top