Meaningless Drivel is fun!*
The moose likes Android and the fly likes How to handle different screen size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to handle different screen size" Watch "How to handle different screen size" New topic
Author

How to handle different screen size

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1087
I need to know when i am creating application does it display any screen size phone ?
If not how to handle it ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
That's easy enough to test using various emulator AVDs, no?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Once again there's this annoying link to some article about testing that I am not endorsing. Is there really no way to get rid of that?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1087
Not for testing.I mean when i am develop a application do i need to think of the phone screen size.As a example if i creat a application with some images.So does that application run in all phone with no errors ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
You'll never know that. From my experience I can tell you that there *will* be exceptions that you just *know* can't happen. And yet, you need to handle them gracefully. But the Android Market provides you with the stack traces which is usually enough to know how to catch (and maybe even deal with) the exception.

And yes, you do need to consider the screen size, especially now as Android on tables is gaining traction. At the very least, you'll want to use different layouts.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3506
    
  14
Tim Moores wrote:Once again there's this annoying link to some article about testing that I am not endorsing. Is there really no way to get rid of that?

Previously discussed here. Seems the only solutions are to add a disclaimer to your signature or pay Paul $200.


Joanne
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
So I'm not the first one to notice this. It's actually worse in this case, because the link is not a double-underlined one (which is how ad links look elsewhere), but is of the dotted variety that's also used for other automatically added links, like FAQ pages and javadocs. Strange and disturbing that these very different things are displayed alike.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle different screen size