Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Lance on September 14, 2008, 03:23:17 pm

Title: JavaOP and Java ME
Post by: Lance on September 14, 2008, 03:23:17 pm
Is there a way to run JavaOP on a mobile edition of Java such as the Java installed on the Motorola Razr v3?
Title: Re: JavaOP and Java ME
Post by: Newby on September 14, 2008, 04:05:32 pm
Probably not. My guess is they strip out a lot of (what Sun would consider) "useless features" and a lot of those features JavaOp uses.

Doesn't hurt to try, though. ;)
Title: Re: JavaOP and Java ME
Post by: iago on September 14, 2008, 05:13:10 pm
I vaguely remember it not working, but eh?
Title: Re: JavaOP and Java ME
Post by: Camel on September 14, 2008, 10:26:06 pm
Even if the JRE is complete, you won't have enough RAM. There's no way it could work.
Title: Re: JavaOP and Java ME
Post by: topaz~ on September 14, 2008, 11:00:05 pm
Even if the JRE is complete, you won't have enough RAM. There's no way it could work.
Sounds like a challenge. Is there a way to realistically test how an application would behave on a mobile device, short of actually testing it on one?
Title: Re: JavaOP and Java ME
Post by: Skywing on September 14, 2008, 11:54:23 pm
Sure, most mobile platforms that have a lot of development on them have emulators of some sort.  Not a perfect match as you'll be off on actual CPU speed, but you can usually limit RAM on emulators to a realistic value.  There's a nice ARM emulator for Windows Mobile, for instance.

No idea about this particular platform, though, but if it's a major one, I'd imagine that there's probably an emulator somewhere.

You will probably not want to run a battle.net connection from your phone, however.  That is going to wake up your data link frequently, at least for SID_PING/SID_NULL, and that's going to completely hose your battery life.  I'd be surprised if you got even a day between charges like that.  Battery life for a device like a cell phone is dependent on keeping as much of the device powered off for as long as possible, and frequently waking up to perform network tasks does not mesh well with that philosophy.
Title: Re: JavaOP and Java ME
Post by: Camel on September 15, 2008, 12:33:10 am
You will probably not want to run a battle.net connection from your phone, however.  That is going to wake up your data link frequently, at least for SID_PING/SID_NULL, and that's going to completely hose your battery life.  I'd be surprised if you got even a day between charges like that.  Battery life for a device like a cell phone is dependent on keeping as much of the device powered off for as long as possible, and frequently waking up to perform network tasks does not mesh well with that philosophy.

If you're running a battle.net connection, you're presumably also powering the backlight, which uses significantly more power than the radios do.

[edit] That said, the typical phone should be able to reliably get 3 or 4 hours of battery life with the backlight on - better than my laptop is currently doing.
Title: Re: JavaOP and Java ME
Post by: Lance on September 15, 2008, 08:54:24 am
I wonder if a microSD card can expand the ram :o
Title: Re: JavaOP and Java ME
Post by: Camel on September 15, 2008, 09:37:36 am
I wonder if a microSD card can expand the ram :o

If you have a unix-based OS, you can add a swap image on a flash chip, but beware that it will be extremely slow, and it will kill your flash chip pretty quickly.

Since you probably dont have a unix phone, you probably can't.
Title: Re: JavaOP and Java ME
Post by: Skywing on September 15, 2008, 12:28:05 pm
SD card interfaces on most phones, in my experience, are rare to do over a couple megabits/sec throughput (say, 4-5mbit/sec).  You really don't want to be doing paging at that rate.