What should be the image resolution for Nexus One or Droid?

by javame_android » Mon, 12 Apr 2010 20:27:41 GMT

Sponsored Links

As Android supports multiple devices from different manufacturers
there are different screen resolutions supported.

The table that is available at
 http://developer.android.com/intl/fr/guide/practices/screens_support.html #screen-independence
is not very clear to me.

It shows WVGA and FWVGA in MDPI for Large Screens and HDPI for Normal
screens. So, if the image is kept in drawable-mdpi and its resolution
is 320 * 480 then which image will be taken by Large Screens device of

Moreover, there are two screen resolutions for HDPI i.e. 480 * 800 and
480 * 854. So, with what screen resolution the image should be built.

I want to place the background image which looks distorted in WVGA
emulator since its resolution is 320 * 480.

I have read about nine patchable images but I think they are better
for button images and edittext images so that they can stretch
according to the data in it.

Can someone please guide me in this?



Other Threads

1. Basic Java Problem..

I know this is probably a simple question but I'm not sure why this
doesn't work.

private Bitmap mSphere;
private puzzlePiece[][] pieces = new puzzlePiece[5][7];

mSphere = BitmapFactory.decodeResource(mContext.getResources(),

for(int i = 0; i < 5; i++)
     for(int j = 0; j < 7; j++)
            pieces[i][j] = new puzzlePiece(mSphere);


public class puzzlePiece {
        public Bitmap mImage;
        public boolean is_selected;

        public puzzlePiece(Bitmap mImage_)
                this.mImage = mImage_;
                this.is_selected = false;


This is where the code will break...

for(int i = 0; i < 5; i++)
      for(int j = 0; j < 7; j++)
                canvas.drawBitmap(pieces[i][j].mImage, i*64, j*64+32, new

If I just draw mSphere itself, the code will work fine.. What exactly
am I doing wrong here?

- Chris


2. No audio picker activity?


Did I miss something, because, when attempting to run an intent with
the action "Intent.ACTION_PICK" and the type "audio/*" (and with a SD
card present with audio files on it), I get a "ERROR/
AndroidRuntime(1016): android.content.ActivityNotFoundException: No
Activity found to handle Intent { action=android.intent.action.PICK
type=audio/* }"?

I'm very surprised that the SDK does not come with a sound selector,
because this is not the case for the image selector (with a type set
to "image/*")...

If this is the case, do you a know a library which provides such a
sound picker, please?

Thank you.

3. Text Msg. Ring Tone

4. Fwd: Root Access??

5. Camera Hardware Interface

6. Getting information from the Internet

7. Loading a bitmap from a byte buffer