You are not logged in.

#1 2005-12-26 01:21:09

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Anyone code for phones?

So I have a "gps enabled" phone that supports cldc and midp 1.0... but I don't seem to be able to access those features on it. I was hoping to write an app that reads GPS coords and accesses google maps right on my phone.

That'd be really sweet (for me) since I hate having to print out maps all the time.

Anyone know how to access the GPS features of my phone? I have a low end sprint VI-125.

Offline

#2 2005-12-26 06:08:06

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: Anyone code for phones?

I didn't research that phone at all but are you sure it's not GPRS enabled? If so, that's a big difference. You could write a J2ME app that could do that provided the phone allows Java apps to access the GPRS network. It would be less accurate but I'm sure there is somewhere online where you can enter an address and it'll give you a map of the local area, that's not as simple as using GPS but it'd work smile

Offline

#3 2005-12-26 09:54:41

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Anyone code for phones?

I believe it has a GPS chip for 911 purposes or something.

Offline

#4 2005-12-26 13:00:16

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: Anyone code for phones?

LB06 wrote:

I believe it has a GPS chip for 911 purposes or something.

Yep.

Offline

#5 2005-12-31 04:31:58

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Anyone code for phones?

MIDP 1.0 and CLDC 1.0 by themselves provide NO api's to access GPS information.  You'd have to see if there's an additional / add-on profile that allows access to that stuff.

Offline

#6 2005-12-31 14:08:32

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: Anyone code for phones?

I know, and my dilemma is that the sprint wtk with gps support only seems to support it on midp 2.0, and even so the documentation is really really thin.

Offline

#7 2005-12-31 14:10:43

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Anyone code for phones?

http://developers.sun.com/techtopics/mo … /location/

JSR 179, or the J2ME Location API, is what you'd need, from the looks of things.  Only CLDC 1.1 is supported though since floating point numbers are needed to represent co-ordinates and CLDC 1.0 doesn't support floats -- since you said your device only supports CLDC 1.0 then I think you're outta luck.

Offline

Board footer

Powered by FluxBB