views:

154

answers:

3

How big is the motorola android's screen, in pixels? I want to know what size I need to make my graphic without it being too disorted by the fill_parent.

EDIT: I don't think you guys understood this... I know android is the operating system. Let me explain: If phone A was 400 by 300 pixels, hypothetically, and phone B was 450 by 350 pixels, I would know to make the graphic at least 400 by 300 pixels without the graphic being as stretched as if it were 300 by 200 pixels. Perhaps a better question would be, how big is the smallest droid's screen?

+8  A: 

Although this doesn't directly answer your question..

Android is the name of the operating system running on Android phones. Different phone models could have different resolutions and pixel densities. Therefore you have to be careful not to hardcode resolution values into your code. It might run well on one phone but poorly on another.

Check out these pages for details about supporting different screens:

http://developer.android.com/guide/practices/screens_support.html http://developer.android.com/resources/dashboard/screens.html

Andy Zhang
A: 

motorola droid's display size is 480x854 px, according to specs, so it's rather non-standard

mykhal
Well, there is no real standard size. Creating an App. for one resolution is like buying shoes for a child and telling him/her to wear them forever. Just like the child is growing, resolutions change quite often.
Layne
@Layne maybe the autor just wants to crop/scale some image and put it on his own device only. it really is childish to even ask this type of question at SO. it's not childish to answer childish questions
mykhal
Well THANK YOU mykhal! Finally somebody gave me a logical answer. You see, you guys, my application was not destined for only one phone, it was destined for all of them, but I since you all assumed it was the opposite, I guess I wasn't clear enough. My graphic is going to fill the entire screen. I had made a test picture that was about 200 by 250 pixels, and after using "fill_parent", I discovered the image had been stretched and was very pixelated. I was trying to find the smallest screen size to minimize pixelation on bigger phones, while not outsizing the smaller phones. Thanks anyways.
Mia
My apologies. We were just looking out for you. :) Glad you got what you were looking for.
Andy Zhang
:) You guys are so sweet.
Mia
+1  A: 

It would be unwise to program for one screen size, especially if you plan on distributing your application later. You should design your application for as many screen sizes as possible.

Instead use nine-patch images and flexible layouts. If you are designing an icon, the look at the android icon design guidelines and consider high, medium and low density screens. There are different resource folders for these too and android takes care of selecting the appropriate one for the current device.

codinguser