j2me: how to show My Location in google map? - java

Hi
how i show My Location on Google map ? i see j2me google map application that show My Location , how can i get My Location cordinate ?
thanks

A good start would be to look at Here
and to fetch current coordinates check the documents here
Note: It must be a GPS Enabled phone

Related

fused location provider:the location is keeps moving even when im not

hi guys im using the fused location provider to get the location of users and then i display a marker on their location . the problem is that the marker keeps moving even if my phone is not moving . the accuracy is set to HIGH_ACCURACY .

How to create a map thumbnail with marker like location sharing in whatsapp

i am developing a chat application, Please suggest me any idea to create a map thumbnail of a location For sharing person's location to another person in chat page, like the location sharing in whatsApp.
Thanks in Advance!
back in google-maps-api1 you used to be able to get the map as a bitmap from the api, then api2 came out and you couldnt anymore so i used google-static-maps-api to get a picture of the map, but new map api 3 came out so maybe they put that functionality back in, idk but you can use google static maps api to download a map you specify the coordinates and use that

Getting the previous camera Latitude and Longitude on Google Maps

Im currently working with google maps on my android app and i need to compare distances when the camera is moved. I can get the current camera latitude and longitude by using the onCameraChange method, however, im struggling with getting the cameras previous latitude and longitude. Any suggestions would be great.
I do not see an existing API to get previous location with Google Maps Camera position api
You can create a prevLat, and prevLong variables. The first time your app starts, in initialization, save the location in these variables. Use these to calculate the distance in onCameraChange, and then update the prevLat, prevLang with current location at the end of onCameraChange.

Simulate location change in emulator for Codename one

Is there any way you can simulate a change in the lat,lng co-ordinates using the simulator for codename one ?
I know it gives me one static location each time.
I am trying to see if I can change this location using the simulator so that I can implement some sort of tracking using google maps.
Or do I have to get out on the streets to test this ?
BR,
Sanket
Found an answer !
The simulator automatically does this. Implement a LocationListener() and check in locationUpdated().

Adding Marker on Google Map with J2ME

I am developing an mobile application that search the user's location via GPS and display the location of the user on the google map.
I am aware that i can load a static map base on the coordinates. But is it possible to add a marker on the static map itself??
This link http://wiki.forum.nokia.com/index.php/J2ME_Google_Maps_API doesnt shows how to add a marker. So i am wondering is it possible to do so??
Any guidance will be greatly appreciated. THANKS
Kevin
If using the Google API, then there are many ways to add layers and markers; see that reference.
To use maps.google.com directly, then form the URL by adding the coordinates using the q parameter:
http://maps.google.com/maps?q=45.00,-121.00 (for +45.0 lat, -121.0 long)
Further to wallyk's suggestion, for a mobile application you may want to use the mobile version of Google Maps, as follows:
http://maps.google.com/m/?q=35.89,14.42 (35.89 = latitude, 14.42 = longitude)

Categories

Resources