Link to home
Start Free TrialLog in
Avatar of gorexy
gorexy

asked on

J2ME communicate with Server usign Location Based

Hello,
  I would like to create an application for my parent.  They have mobile phone and I want to write a J2ME program inside the phone so that the phone will send the location for every 2 mins (using LBS / GPS etc..) to my server and so I know where they are.

  If it possible to do so?  If yes, any documentation or sample code can offer? Thanks!
Avatar of keyurkarnik
keyurkarnik

Yes,
it is definitely possible to do so.
But which phones do you intend to use for the same? You need to make sure that the phone has GPS support.
You can otherwise use a bluetooth GPS device and then connect to the device from your phone to find out hte location.

Here is a link for the same :

http://www.hcilab.org/documents/tutorials/BT_GPS/BT_GPS.htm
Here is another such link :
http://www.trakkcor.ch/
Here is another such link :
http://www.trakkcor.ch/
You can read up on the specs here :
http://developers.sun.com/mobility/apis/articles/location/

JSR 179 provides LBS. Take a look at it here :
http://www.jcp.org/en/jsr/detail?id=179

You will need the lapi.jar  - this includes the javax.microedition.location classess for the same.

Read up more here :
http://www.iminfo.fr/J2ME/locationAPIReferenceImplementation.html

This should get you all that you need to do!
Avatar of gorexy

ASKER

very good reference.

I have a question.  Should I have to access Internet in order to update my status?  Can I use free way (GPS) to do so?  I don't have internet connection using mobile.

Thanks
You do not need an internet connection for this.

Basically, the location service is provided by GPS. Atleast for now, the GPS services are free, and all you need is a GPS receiver to receive the co-ords from the satellites.

Now, once you poll the GPS module, all you need to do is send the coordinates to some server or to another phone.
You can do this either via :

1) GPRS (The "internet" connection) : Just send the data over HTTp to some server
2) SMS : Just send the coordinates over SMS to some phone (your phone, if the sender is your parents phone)

Also, as your doubts have been resolved, I would appreciate if you could accept the solution :)

All the best
Avatar of gorexy

ASKER

GPRS? but you said no need to use Internet connection?  Also, SMS is not practical, since it cannot always update the position.  Seems we still need Internet connection (wiFi, GPRS etc..) right?

Yes I will feedback your solution, don't worry
ASKER CERTIFIED SOLUTION
Avatar of keyurkarnik
keyurkarnik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial