File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes porting in j2me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "porting in j2me" Watch "porting in j2me" New topic
Author

porting in j2me

deep rai
Ranch Hand

Joined: Oct 04, 2007
Posts: 56
Hi,

I would like to know how to test whether j2me applications are compatible for different handsets, or porting any tutorials/links regarding porting would be of great help to me.

Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

In theory, it's "Write once, run anywhere". In practice, portability has been more of a problem than it is with desktop Java apps. Part of this is because most mobile devices contain not only one of the Java mobile profiles, but also a number of the JSR-defined extensions and the exact mix varies from device to device.


Customer surveys are for companies who didn't pay proper attention to begin with.
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

I guess when it comes to J2ME testing you still have to rely on manual tests on the real hardware.
A Sen
Greenhorn

Joined: Oct 28, 2008
Posts: 4
Hi Deep,

As a first step -- you need to check the API usage. If you have used APIs from Sun'sMIDP/CLDC specification ONLY, you can have a piece of mind that it will work for all Java supported phones.

Next thing to check whether you are using Canvas or is it a complete non-canvas based application. In the latter case, you can be absolutely sure that it will work on all Java supported phones and all sizes as well.

However, if you are using Canvas, then you should analyse each displayable screen as it will require customisation for different phone sizes.

This might get more complex, if you are already using phone specific APIs. You will either need to identify alternative ones for other phone models (may not be available) or remove them (which in turn might mean removing the functionality).

Hope this might give you a direction to plan your porting effort.

Arnab
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: porting in j2me
 
Similar Threads
start j2me
Application error when trying to run game in motorola V300
Mobile Games
Kathy - Sun Certified Mobile Application Developer
PBKDF2 for J2ME