2

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?

sdabet
  • 18,360
  • 11
  • 89
  • 158
Nigilan
  • 766
  • 1
  • 6
  • 20

1 Answers1

2

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.

Nigilan
  • 766
  • 1
  • 6
  • 20