0

In my application, I place button to navigate the user to one particular location. When user clicks the navigate button, this code will get executed and opens the Google Maps application to show the turn by turn navigation.

Uri gmmIntentUri = Uri.parse("google.navigation:q="+"11.545526,60.245177");
        Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
        mapIntent.setPackage("com.google.android.apps.maps");
        startActivity(mapIntent);

Is it possible to hide the splash screen of Google Maps or show other image over it? I need them to show the navigation map directly without showing the Google Maps splash screen.

Thank You

Uday
  • 275
  • 1
  • 4
  • 15

2 Answers2

0

I have to say "No". No, We simply can't.

Mann
  • 560
  • 3
  • 13
  • Correct me If i'm wrong. While I'm travelling in Uber, driver clicks the navigation button in his app and it started navigation by showing a blank white screen for few seconds. How is it actually working? – Uday Mar 17 '16 at 11:35
  • @Mann, What about com.google.android.gms.maps.MapView ? – whoami Mar 17 '16 at 11:39
  • @Uday, It is because they possibly have been implemented their own activity/module just like the google maps app. – Mann Mar 17 '16 at 11:40
  • @whoami, Using mapview in your app is not hiding the classing google maps splashscreen. However, I suggest this. – Mann Mar 17 '16 at 11:42
0

You can use com.google.android.gms.maps.MapView to include the map in your app. We used it in one our app to plot the user search results on the map.

Check the example in https://gist.github.com/joshdholtz/4522551

whoami
  • 1,517
  • 1
  • 21
  • 29
  • Is it possible to show turn by turn navigation using MapView? – Uday Mar 17 '16 at 11:43
  • @Uday, MapView is an answer for your question to hide Google Maps Splash screen. For your 2nd question about navigation, I don't know whether its possible or not but we shouldn't do as per the Google T&C. Plz check http://stackoverflow.com/a/26231295/710817 – whoami Mar 17 '16 at 11:48