• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Porting

 
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.....
 
reply
    Bookmark Topic Watch Topic
  • New Topic