I have an application that performs routes between the current position and a certain point.
For this, I call an Activity:
final Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?daddr="+ item.getLatitude() + "," + item.getLongitude()));
startActivity(intent);
Now we will implement a feature where the user can select which App
he would like to use: GoogleMaps or Waze .
This will be done through Spinner
, and I will only display Waze if it is installed on the user's Smartphone.
I would like to know how to find out if the user has Waze installed, and how do I open it instead of GoogleMaps?