Reputation: 806
I am using the following code and it is not opening the yelp app:
String uriString = "yelp://biz/" + "some name";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uriString)));
Instead it says
Could not execute method of the activity !
Any pointers?
Upvotes: 2
Views: 1720
Reputation: 806
The answer being, just call the http url of the yelp page, it will ask you whether to open in yelp app if it is pre-installed. Else , it will just open in the browser.
Upvotes: 2