I have searched hours, but I couldn’t find anything useful. I have an App, where if the user have no Internet-connection, the current location is shown on Google Maps using: geo:lat,long?z=18 This code shows the area of the location, but no marker. If I have Internet connection the following snippet works fine: geo:lat,long?z=18(NameOfMarker) But how [...]

Autor:

I have searched hours, but I couldn’t find anything useful.

I have an App, where if the user have no Internet-connection, the current location is shown on Google Maps using:

geo:lat,long?z=18

This code shows the area of the location, but no marker. If I have Internet connection the following snippet works fine:

geo:lat,long?z=18(NameOfMarker)

But how can I set a marker without Internet connection?

Thanks for help.


Thanks at first.
Currently I am using:

String geoUriString = "geo:"+ my.getLocation().getLatitude() + ","
              + my.getLocation().getLongitude()+"?z=18";
Uri geoUri = Uri.parse(geoUriString);

Intent mapCall = new Intent(Intent.ACTION_VIEW, geoUri);
mapCall.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(mapCall);

How can I combine the code you gave with this?

Sorry, but I never worked with JavaScript in Android.

Related posts:

  1. How to slow down the doing background in asynctask when internet connection down
  2. How to slow down the doing background in asynctask when internet connection down
  3. How to slow down the doing background in asynctask when internet connection down
  4. Google Maps – when clicked Marker doesn’t show
  5. Google map or sql to stop a marker being inserted within 3 miles of another.

Comments on this entry (1 comment)

Did you like this post? You can share your opinion with us! Simply click here.

Dennjo

Hast Du inzwischen eine Lösung gefunden?
Have you got an answer yet?

Reply

Add Your Comment