How to open google store from app ?

basil99

Active Member
Licensed User
Longtime User
Hi!

I'm near to finish with my first app and have and idea to place a sort of "More programms" or "Visit My store" button on app logo screen. When user hits button, an url ( Google Store or smth else ) must open. Where I can read about how to implement it ?

Thank you
 

basil99

Active Member
Licensed User
Longtime User
I you want to open your list of apps, you can use the following link:
B4X:
https://play.google.com/store/apps/developer?id=<YOUR_DEVELOPER_NAME>

Thanks, NJDude, but URL format is not a problem. I need to look into sample code how to open google store from app, having in mind my app will pause and not destroyed when customer closes google store. Just how ppl handle this task - another activity or webview or smt else, just common approach for that
 
Upvote 0

basil99

Active Member
Licensed User
Longtime User
This is similar but it only opens one app: http://www.b4x.com/forum/basic...html#post49497

Thanks, thedesolatesoul

So, this code for dedicated app:

B4X:
Dim market As Intent, uri As String
uri="market://details?id=APP_ID"
market.Initialize( market.ACTION_VIEW,uri )
StartActivity( market )

and how to open a store as NJdude said ?

B4X:
https://play.google.com/store/apps/developer?id=<YOUR_DEVELOPER_NAME>


what is the correct syntax for that ? may be this ?

B4X:
Dim market As Intent, uri As String
uri="market://details?id=YOUR_DEVELOPER_NAME"
market.Initialize( market.ACTION_VIEW,uri )
StartActivity( market )



thank you
 
Upvote 0
Top