Forums Register Login

Porting

+Pie Number of slices to send: Send

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.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 

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.

+Pie Number of slices to send: Send
[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.



+Pie Number of slices to send: Send
 

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.....
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1550 times.
Similar Threads
Window fixed size problem
Midlet size restrictions
J2ME Server & Image Size
porting in j2me
Getting the Screen size of requesting mobile device
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:35:57.