Skip to main content

CLDC gps info

3 replies [Last post]
emperormax
Offline
Joined: 2008-04-24
Points: 0

Greetings,
I am in the midst of a project as part of my intern course at school.
The project is to develop java to allow a cell phone to transmit the longitude and latitude of the cellphone to the company server. My problem is that the coursework I have done hasn't had any ME code work. So I have to learn as I go and try to put this together.

What I need is code to collect the location data from the phone, and then the method for sending and retrieving this data from the company location.

Any advice or help would expedite the successful completion of this project.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Certainly. The MObile & Embedded wiki is your friend:

http://wiki.java.net/bin/view/Mobileandembedded/AppDev

See the section "APIs, Developer Documentation, Blueprints, and Code Samples: By Technology"

There should be a link to HTTP examples.

-- Terrence

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

This one is fairly straightforward. You'll need a phone that supports JSR 179 (Location based services). Your app can read the location information from the GPS using that API then send an HTTP POST to the server. Hope this article helps:

http://developers.sun.com/mobility/apis/articles/location/

-- Terrence

emperormax
Offline
Joined: 2008-04-24
Points: 0

Thanks for the great info.

It looks as if I will be able to get some major hurdles covered relatively quickly.

Can you point me to getting the HTTP post data reception set up?