title: How to Open and Directing Google Maps using Intent?
body: <p>I have a problem to let Google Maps playing automatically after opened...</p>
  
  <p>Example: I have put intent code and yes it will open Google maps according to my latitude and longitude...
  But, I still need to press a button to start Google Maps to direct me.
  How can I make Google Map open automatically after opened by intent without pressed by users? Is it possible ?</p>
  
  <p>Here is my code,</p>
  
  <pre><code>private void turnOnMap()
  {
      String labelMap = "Target";
      String geouri = "geo:0,0?q=-6.908572,107.610923(XXI)";
      Intent mapInt = new Intent(Intent.ACTION_VIEW, Uri.parse(geouri));
      startActivity(mapInt);
  }
  </code></pre>
  
  <p>I got some information of intent code from these
  <a href="https://stackoverflow.com/questions/22704451/open-google-maps-through-intent-for-specific-location-in-android">open google maps through intent for specific location in android</a>
  and <a href="https://stackoverflow.com/questions/13053352/android-how-to-launch-google-map-intent-in-android-app-with-certain-location">Android - How to launch Google map intent in android app with certain location, zoom level and marker</a> and also latest uri from official android site <a href="https://developer.android.com/guide/components/intents-common.html#Maps" rel="nofollow noreferrer">https://developer.android.com/guide/components/intents-common.html#Maps</a></p>
  
  <p>And, they don't explain what command should I add to play Google Maps automatically after opened...</p>
  
  <p>Hope you can help me guys... Thank you very much for your time and information</p>