CLDC 1.0 Supported

4 views
Skip to first unread message

Quintin

unread,
Mar 9, 2009, 3:57:58 AM3/9/09
to J4ME
Hey,

I am using J4ME to write a utility for myself (got many of these -
mobile phones are perfect for this). J4ME is a mega brilliant API.
Very easy to extend into making powerful user interfaces. Great job!

Either way... I have a CLDC1.0 phone. So to get it running I ported
the J4ME-1.0.3-20080509 to be compatible with CLDC1.0, and when I ran
it the API + all the tests worked first time! Happy times!

Interested in integrating these changes with the project? Or maybe
providing a supporting module/patch set/branch (I'll be willing to
maintain them if necessary).

It basically only involved removing all the floating point
calculations (doing them on the integer system). Not very difficult to
do given the calculations are not very complex or demanding. It might
even give some performance boosts on those platforms which have crappy
FPUs.

Note that I didn't do this for the GPS module. I had no need for this
module, and since it didn't compile I just removed the code. Due to
the nature of GPS coordinates, I don't see an easy way to make them
CLDC1.0 compatible, so this change would then only cover the non GPS
areas, which I am sure is fine for people who aim to support CLDC1.0.

In fact, I'm sure it will be fine for most. Having many devices still
CLDC1.0, I think this can be a valuable extra for the project. At
first I didn't even download J4ME BECAUSE of this, but being open
source I figured I'd give it a shot and see what I can do (it seemed
the most attractive of all the APIs when this small itch wasn't taken
into account).

thanks,
Quintin extends Dialog
{
public Quintin()
{
setTitle("Greatest Appreciation!");
append( new ProgressBar() );
show();
}
}

Dean Browne

unread,
Mar 9, 2009, 12:59:08 PM3/9/09
to j4...@googlegroups.com
I went through this thinking early on.  Eventually I just figured it was easier to go with floating point and change later if needed (like you did).

Why don't you email me the changes and I'll integrate them back in.  Then I will have instructions for CLDC 1.0 which basically say strip the GPS.  (There are no GPS phones with CLDC 1.0 anyway.)

Thanks,
-D

Quintin Beukes

unread,
Mar 10, 2009, 5:28:15 AM3/10/09
to j4...@googlegroups.com
--
Quintin Beukes
remove-float.zip

Quintin Beukes

unread,
Mar 10, 2009, 7:24:15 AM3/10/09
to j4...@googlegroups.com
Just noticed my name is in CLDC1Utils.java. If you keep this file you can remove my details and add the license (since the code now obviously belongs to the project). Not sure if I needed to declare this, but in case I did... here you go.

Q
--
Quintin Beukes
Reply all
Reply to author
Forward
0 new messages