back to lat,lng query since gmaps v7.2 fixes the decimal separator bug

This commit is contained in:
Philipp Schaefer 2013-09-14 11:09:21 +02:00
parent 79cd0132e7
commit 59e5be98ed

View File

@ -81,9 +81,10 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
ArrayList<Intent> intents = new ArrayList<Intent>(); ArrayList<Intent> intents = new ArrayList<Intent>();
String gMapsUri; String gMapsUri;
try { try {
gMapsUri = "http://maps.google.com/?daddr=" + mLl + "%20(" + URLEncoder.encode(mTitle, "UTF-8") + ")"; gMapsUri = "http://maps.google.com/?q=loc:" + mLl
+ "%20(" + URLEncoder.encode(mTitle, "UTF-8") + ")&z=" + mZoom;
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
gMapsUri = "http://maps.google.com/?daddr=" + mLl; gMapsUri = "http://maps.google.com/?ll=" + mLl + "&z=" + mZoom;
e.printStackTrace(); e.printStackTrace();
} }
Intent gMapsIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(gMapsUri)); Intent gMapsIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(gMapsUri));