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 can I port market app(may be vending.apk) on my product

According to Diane its free, but there is no info (or at least no
public info) on how to get it (and associated bits).

My suspicion is that there is a licensing fee, or "suggested
donation", or OHA membership fee required, etc. But..

If you find out for sure report back :)


2. OpenGL frame time independent object move

Hi All,

I'm doing some experiments with OpenGL using the GLSurfaceView
introduced in 1.5

In my Renderer I keep track of the time spent to render the last frame
and pass this value to the method that update my model. The goal is to
keep objects movements on the screen independent from the rendering

Now... this seems to work perfectly in the emulator, but on the real
device is at least 4/5 times slower!!!

Has anyone experienced the same problem? Or, anyone has a clue of what
I'm doing wrong?

Here's pieces of the code I'm using:

/* Renderer */
public void onDrawFrame(GL10 gl) {
    mRefTime = System.currentTimeMillis();

    // Update the game state after rendering
    if(mLastFrameTime > 0) {


    for (int i = 0; i < mRenderables.length; i++) {

    mLastFrameTime = System.currentTimeMillis() - mRefTime;

/* Update method */
public void update(long lastFrameTime) {
    int i, j;
    float moveOffset = mGameVelocity * UNIT_VELOCITY_MS *

    for(i=0; i<ROW_COUNT; i++) {
        for(j=0; j<ROW_SIZE; j++) {
            mObj[i][j].x += moveOffset;


3. Lookup phone number

4. ERROR Resource entry main is already defined.

5. release timing

6. ContextWrapper: how do you use it?

7. Intent does not support FloatArrayList ?