The problem of launching Google Navigation

I tried so many hours to start navigation from my application. I need navigation without a destination.

I tried with

        Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q="));
        startActivity(i);

This starts navigation, but with an address not found

I also tried running processName, packageName with startIntent with com.google.android.apps.maps , com.google.android.apps.maps: driveabout and ** com.google.android.maps.driveabout.app.DestinationActivity

without any coincidence: /

idea?

+5
source share
5 answers

There are no documented and supported filters in Google Navigation Intent. It is not intended to integrate with third-party applications.

+7

...

String url = "google.navigation:q="+startPos.getLatitude()+","+startPos.getLongitude();
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));            
startActivity(i);
+4

Google Navigation. , Intent . , , Google Navigation, , , .

+1

google.navigation:fd=true
+1

, , .

google home, . , :/

0

All Articles