Rate my app

dkarnik

Member
Licensed User
Longtime User
I'm trying to make "rate my app". i used this code:

Dim fURI As String
fURI = "market://details?id=~name~"
Dim Market As Intent
Market.Initialize(Market.ACTION_VIEW,fURI)
StartActivity (Market)

sadly i got error: error has occured in sub....... android.content.activitynotfoundexception: no activity found to handle intent {act=android.intent.action.view dat=market://details?id=name......

any :sign0085:?
 

Stulish

Active Member
Licensed User
Longtime User
Your code looks correct, i have copied and pasted the code below from one of my apps and it works fine:

B4X:
Dim fURI As String
fURI = "market://details?id=lishsoft.android.saynoto0870"
Dim Market As Intent
Market.Initialize(Market.ACTION_VIEW,fURI)
StartActivity (Market)
ToastMessageShow("Thanks for rating this app",True)


I cant see anything different???
 
Upvote 0

dkarnik

Member
Licensed User
Longtime User
maybe i have to put something to Initialize in globals?
or do i have to put webivew on form?
 
Upvote 0

Stulish

Active Member
Licensed User
Longtime User
I don't use a webview or anything, i just use the code so i am not sure what is happening with your app?
 
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User

Are you trying this on a real device and not an emulator?

Also if it is on a real device you may not have the play store app installed as some android devices don't.

Dave


Sent from my Nexus 7
 
Upvote 0

JOTHA

Well-Known Member
Licensed User
Longtime User
Try this:
B4X:
Dim PI1 As PhoneIntents
StartActivity(PI1.OpenBrowser("https://play.google.com/store/apps/details?id=~name~"))
I know, this thread is more than 4 years old, but maybe someone finds this usefull ...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…