This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Anyone have a solution to get a string representation of a double variable in CLDC 1.0 ?
Thanks..
Dave.
Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
Ramender Mall
Ranch Hand
Joined: Sep 08, 2005
Posts: 311
posted
0
Hi Dave,
As far as I know, cldc1.0 does not support floating points.. So how come you are creating a double variable, first of all??...
Ramy...
Dave Brown
Ranch Hand
Joined: Mar 08, 2005
Posts: 301
posted
0
Hi,
I'm wanting to use the Location Based Services JSR.. to pick up latitude & longitude values which are doubles.
Rgds,
Dave.
Ramender Mall
Ranch Hand
Joined: Sep 08, 2005
Posts: 311
posted
0
Hi Dave, This Location based services was a complete new term for me. A quick google search took me to, lbs and seems that you cant use cldc1.0 with it, i am quoting some lines,
JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.
BEST OF LUCK.. Ramy....
Dave Brown
Ranch Hand
Joined: Mar 08, 2005
Posts: 301
posted
0
Yeah thx, you're right, Well there goes that project then !!
Well after further research, for my particular project, it seems theres more factors presenting the cons of using location based services than there are pro's.
Todd Plambeck
Greenhorn
Joined: Jan 27, 2005
Posts: 10
posted
0
Why not just stuff the Lat and Long into strings? That's how the NMEA data is going to come to you anyway. Pass the strings back to the server and let it take care of the math. Unless you're trying to put a bomb down a smokestack, you really only need about 4 or 5 digits of precision to get good position.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: String representation of a double on CLDC 1.0