Reputation: 11
Is it possible to start the Android Here app with "activity starter" like Waze or Google Maps?
Examples:
Google Maps Navigator:
Action: android.intent.action.VIEW
DataUri: google.navigation:q=[address to search]&mode=[walking / transit]
Waze:
Action: android.intent.action.VIEW
DataUri: waze://?q=[address to search]&navigate=yes
Upvotes: 1
Views: 1801
Reputation: 51
The answer by @Ostermann works perfectly fine but it will just pinpoint the final location on the map. If you want to automatically start the navigation mode (i.e. computes the available paths) you can use
String url = "google.navigation:q=" + lat + "," + lng;
I've checked and it works just fine.
Upvotes: 5
Reputation: 101
I started HERE app as follows:
String url = "geo:" + lat + "," + lng;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(url));
intent.setPackage("com.here.app.maps");
startActivity(intent);
But I have not found any documentation about the intent. But Actually it works.
Upvotes: 10
Reputation:
don't provide an App but a SDK, it might be possible to launch an activity with the HERE maps provided if the customer implements an App with the required manifest configuration and intent.
Upvotes: 0