aspose file tools*
The moose likes Java Micro Edition and the fly likes Porting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Porting" Watch "Porting" New topic
Author

Porting

Trupti Mehta
Ranch Hand

Joined: Oct 08, 2000
Posts: 79


I have known that for professional mobile applications, it has to be available for all types of mobile screen sizes. Which is known as "Porting". Their are approximately 27 screen sizes. And the user selects mobile or screen size and we provide applicaiton for that size.

Can anyone help me know what is this and how to implement the it. Can't their be a way to develop a single application that is Ok with any screen size. Based on the screen size it fizes the components.

Any help is appreciated.


Regards,
Trupti (SCJP)
Ahmed Abdul Baqi
Greenhorn

Joined: Apr 24, 2009
Posts: 8
Trupti Mehta wrote:
I have known that for professional mobile applications, it has to be available for all types of mobile screen sizes. Which is known as "Porting". Their are approximately 27 screen sizes. And the user selects mobile or screen size and we provide applicaiton for that size.

Can anyone help me know what is this and how to implement the it. Can't their be a way to develop a single application that is Ok with any screen size. Based on the screen size it fizes the components.

Any help is appreciated.


Hi Tripthi,
When any Mobile Application Development project comes the client will give the screen size on which the application should work like 240x320,176x280,320x240,So every screen size will have a base device based on the screen size and Device memory.The testing of the application will happen on these base devices like ex.6600,w580i and if the application works on these then it will work on n series and other w series devices.If you want to write a generic application that should be compatible for porting on all devices then you need to use geneirc methods in your MIDlet like getHeight(),getWidth and on the startApp() you need to check the screen size and then pass the height and width of the screen and the image or text box or pop up box will be printed on the canvas or form based on the screen size.But this practice will increse the lines of code in your MIDlet which will again give you another porting issue of wether the size of the application,so it depends people will create different applications for different screen sizes.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16141
    
  21

Trupti Mehta wrote:
Can't their be a way to develop a single application that is Ok with any screen size. Based on the screen size it fizes the components.


There is. The LCDUI classes do that. However there's a price to be paid. You can't make a nice artistic rigidly-controlled graphical display if you're going to use a portable, resolution-independent UI toolkit. The LCDUI classes will arrange controls on screen as they see fit, and they'll generally look pretty primitive. Ugly, but functional.

This isn't just a mobile device issue - HTML is also that way, and so is Java Swing. HTML has it worst of all. I can access the Google website from a character-only display and with no pointing device (mouse) at all. And on some on my non-GUI server boxes, I do.


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

Joined: Oct 08, 2000
Posts: 79

[quote=Ahmed Abdul Baqi
Hi Tripthi,
When any Mobile Application Development project comes the client will give the screen size on which the application should work like 240x320,176x280,320x240,So every screen size will have a base device based on the screen size and Device memory.The testing of the application will happen on these base devices like ex.6600,w580i and if the application works on these then it will work on n series and other w series devices.If you want to write a generic application that should be compatible for porting on all devices then you need to use geneirc methods in your MIDlet like getHeight(),getWidth and on the startApp() you need to check the screen size and then pass the height and width of the screen and the image or text box or pop up box will be printed on the canvas or form based on the screen size.But this practice will increse the lines of code in your MIDlet which will again give you another porting issue of wether the size of the application,so it depends people will create different applications for different screen sizes.

Thanks Ahmed and Tim for your guidance.
Ahmed, at present I make sure that my screen fits almost any mobile screen. If not I provide Up and Down key events which solves the purpose. For 2 Canvas's where I have to add items dynamically, I make use of GetHeight and getWidth to calculate accordingly. And all applications are working as expected also. The paplications that I work are standard base, not for any specific device.

One point I wouldl ike to know:-
Making differnet applications for differnce screen size or using LCDUI is a requiremetns for professional level of mobile development. Normal decent application which is appreciated by almost all customers can't be proved/known as Professional Mobile application. I want to know this as client is client is wondering about Porting, so I just want ot make sure from my side.

Thanks. Hope will solve my this last query regarding porting too.



Ahmed Abdul Baqi
Greenhorn

Joined: Apr 24, 2009
Posts: 8
Trupti Mehta wrote:[quote=Ahmed Abdul Baqi
Hi Tripthi,
When any Mobile Application Development project comes the client will give the screen size on which the application should work like 240x320,176x280,320x240,So every screen size will have a base device based on the screen size and Device memory.The testing of the application will happen on these base devices like ex.6600,w580i and if the application works on these then it will work on n series and other w series devices.If you want to write a generic application that should be compatible for porting on all devices then you need to use geneirc methods in your MIDlet like getHeight(),getWidth and on the startApp() you need to check the screen size and then pass the height and width of the screen and the image or text box or pop up box will be printed on the canvas or form based on the screen size.But this practice will increse the lines of code in your MIDlet which will again give you another porting issue of wether the size of the application,so it depends people will create different applications for different screen sizes.


Thanks Ahmed and Tim for your guidance.
Ahmed, at present I make sure that my screen fits almost any mobile screen. If not I provide Up and Down key events which solves the purpose. For 2 Canvas's where I have to add items dynamically, I make use of GetHeight and getWidth to calculate accordingly. And all applications are working as expected also. The paplications that I work are standard base, not for any specific device.

One point I wouldl ike to know:-
Making differnet applications for differnce screen size or using LCDUI is a requiremetns for professional level of mobile development. Normal decent application which is appreciated by almost all customers can't be proved/known as Professional Mobile application. I want to know this as client is client is wondering about Porting, so I just want ot make sure from my side.

Thanks. Hope will solve my this last query regarding porting too.





Tripthi,
I am sorry couldnt understand your question can you elaborate.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Porting