by Sukitha Udugamasooriya » Wed, 19 Aug 2009 18:07:06 GMT

Sponsored Links

I have created an application and I want to make sure it works in
different resolution.

 i have used LinearLayout and some ListViews and buttons.

I need to know will it be an issue if the apk is put to two different
phones which has different resolution.

thank u


by Mark Murphy » Wed, 19 Aug 2009 18:36:40 GMT


If the same layout looks good in portrait (320x480) and landscape
(480x320), you are well on your way.

Otherwise, right now, Android does not officially support other screen
sizes, meaning the resources for testing other screen sizes is limited.

Mark Murphy (a Commons Guy)  | 

_The Busy Coders' Guide to *Advanced* Android Development_ In Print!


Sponsored Links


by lilbyrdie » Wed, 19 Aug 2009 22:02:52 GMT

 In addition what what Mark said, you can use the emulator to test with
the QVGA skins, too (320x240 and 240x320).

Those resolutions should help quickly reveal any obvious layout



by Dianne Hackborn » Thu, 20 Aug 2009 00:41:30 GMT

 Though note that the QVGA skins are not at all representative of
environments apps will find themselves running in any time soon, since the
1.5 emulator doesn't fully implement density scaling that would typically go
along with such a screen (which would be a similar physical size to the
HVGA, so lower density).

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.



by Yusuf Saib (T-Mobile USA) » Thu, 20 Aug 2009 01:12:35 GMT

 FWIW, to run the emulator with different size screens, type in the
command line "emulator -skin<width>x<height>". You can go up until a
little north of 800x600 before it goes pop. #Keyboard-Control

Yusuf Saib
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



by Sukitha Udugamasooriya » Thu, 20 Aug 2009 12:58:30 GMT

 thank you all. This was really helpful.
all the best

Other Threads

1. How to keep half open SlidingDrawer all the time.


I want to keep SlidingDrawer half open all the time . It means
partially a user will be able to see the contents of a drawer and
interact with it (Touch etc) for the open portion. If a user want it
can still slide it further and open it completely.

Thanks & regards,


2. How to capture key events from View subclass


I'm trying to figure out how to capture keyboard input from a View, without
subclassing EditText or something similar (the reason is that I have a
complex bit of drawing to do, in which the text does not at all go in a
horizontal direction, nor does it ever start at a consistent location.. so I
figured that I would try to use a more direct route).

I am able to show the keyboard from my View by first calling
setFocusableInTouchMode(true) in my onCreateMethod, then calling:

   InputMethodManager imm =

imm.showSoftInput(this, InputMethodManager.SHOW_FORCED);

I call this from onTouchEvent(), in order to get the location of the touch
within the view.

This is where I get stuck.  When I implement onKeyDown or onKeyUp in the
View, I only get a callback when the done or back button is hit on the
keyboard.  I need to know which key of the soft keyboard is pressed, so that
I can draw that character in my View.  I also tried to setOnKeyListener for
a key listener, but it also only gets a callback when the done or back
buttons are pressed on the soft keyboard.

Any suggestions on how to proceed are gratefully appreciated.




3. Xperia Arc, The Review

4. Working With Multiple Widget Sizes

5. TabActivity problem when tab change it lost it state

6. [WTI] Xoom Sukses Running Evdo Smart !

7. Honeycomb screenOrientation not working