title: Android - How to launch Google map intent in android app setting both zoom level and marker
body: <p>My question is very similar to this question (<a href="https://stackoverflow.com/q/13053352/7292819">Android - How to launch Google map intent in android app with certain location, zoom level and marker</a>) but the accepted answer is not working for me.  It opens the map with the marker at the correct place and at the correct zoom level but then proceeds to zoom in to a street level view (zoom=16 or 17?).</p>
  
  <p>I've search SO, I've read through <a href="https://developers.google.com/maps/documentation/android-api/intents?hl=en" rel="nofollow noreferrer">this</a> documentation but can't find a combination of place marker &amp; zoom that do what I need.</p>
  
  <p>I've tried with a few devices using Google Maps versions
  8.2.0,
  9.20.1,
  9.36.2 &amp;
  9.42.3</p>
  
  <p>Here is the result of the log print (the Uri used for the intent)
  geo:39.29038619995117,-76.61219024658203?q=39.29038619995117%2C-76.61219024658203(Baltimore)&amp;z=11</p>
  
  <p>The answer from the other post is 4 years old now.  Has Maps changed such that this doesn't work now?  Did the other answer only work because they were setting the zoom to 17 and didn't notice it wouldn't settle on another zoom level?  Am I missing something else?  </p>
  
  <p>To clearly state my question:
  How can I use a geo intent to open a maps app to show a place marker and simultaneously choose a zoom level?</p>
  
  <p>My code, based on the accepted answer from the other post.</p>
  
  <pre><code>double latitude = item.getLatitude();
  double longitude = item.getLongitude();
  String label = item.getName();
  String uriBegin = "geo:" + latitude + "," + longitude;
  String query = latitude + "," + longitude + "(" + label + ")";
  String encodedQuery = Uri.encode(query);
  String uriString = uriBegin + "?q=" + encodedQuery + "&amp;z=11";
  mListener.onListFragmentInteraction(uriString);
  </code></pre>
  
  <p>Then</p>
  
  <pre><code>public void onListFragmentInteraction(String url) {
      Uri geoLocation = Uri.parse(url);
      Log.d(TAG, "geo uri = " + geoLocation);
      Intent intent = new Intent(Intent.ACTION_VIEW);
      intent.setData(geoLocation);
      startActivity(intent);
  }
  </code></pre>