The screen resolution of an Android device
Questions tagged [android-resolution]
100 questions
24
votes
6 answers
Android: what is the difference between resolution and density?
According to Android definitions, I've found that:
Resolution: The total number of physical pixels on a screen
Density: Based on the screen resolution, the spread of pixels across the physical width and height of the screen.
How can I understand…

Cris
- 12,124
- 27
- 92
- 159
24
votes
6 answers
Android DisplayMetrics returns incorrect screen size in pixels on ICS
I've tried this....
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
int fullscreenheight = metrics.heightPixels;
int fullscreenwidth = metrics.widthPixels;
and....
Display display =…

dell116
- 5,835
- 9
- 52
- 70
14
votes
2 answers
Android responsive layout
I am building application (calculator). I use table layout with buttons inside. It looks perfect on screen of Samsung Galaxy II, however it looks very bad on bigger screens. The buttons hight is very small. How I can stretch the buttons on bigger…

Jacob
- 1,135
- 5
- 14
- 29
12
votes
2 answers
How to use different background images for different resolutions in Android?
I'm doing an Android App for Android tablets that has a full image background but I can't use a 9-patch, so I need the background to be as close as possible as the window size.
What I have tested:
I've tested using the drawable-ldpi, drawable-mdpi,…

pconcepcion
- 5,591
- 5
- 35
- 53
11
votes
1 answer
Converting iOS PT to Android DP?
I have a style guide of iOS app which specifies height, width, padding, font size etc in PT (1x as base). I have converted them successfully in pixels for various iPhones like iPhone 5,6,6s Plus, 7, iPad.
Now I need to use the same style guide for…

Sandip Fichadiya
- 3,430
- 2
- 21
- 47
11
votes
2 answers
how to use adb to change resolution of device
I'm trying to change the resolution of devices using following command
adb shell wm size 480x800
but after the screen resolution changes I'm getting alert saying
"Unfortunately, Touchwiz Home has stopped working"
I'm using Samsung Tab 3.
Many…

PJ1405
- 545
- 1
- 3
- 18
10
votes
2 answers
how to know which phone support which layout(hdpi , mdpi and xhpi)?
I'm a little confused about how to determine which phones support what layout types. I've done some research but haven't found a satisfying answer.
For example, I've found the below guide:
xlarge screens are at least 960dp x 720dp
large screens are…

duggu
- 37,851
- 12
- 116
- 113
8
votes
4 answers
hdpi ldpi mdpi icon/menu resolution
I want to set an icon for my application, and don't know the exact resolution to put in the three folders hdpi/ldpi/mdpi . Also i want to set icons to my menu options and don't know what resolution to apply.
Thank you for your help.

androniennn
- 3,117
- 11
- 50
- 107
8
votes
3 answers
Image Sizes for the Android Application
Sorry I know earlier some people have same kind of questions but I am suffering from the same issue and don't get a clear view from the earlier questions.
I found Android very complex for the developer to deal with Multiple
dimensions. Like…

Simple
- 165
- 1
- 2
- 9
8
votes
3 answers
Which part of Android is in charge of picking a correct resource profile?
I have a weird problem.
Before you come to an idea to lash out on me, I am working on a custom Jelly Bean. Therefore the "usual nice approaches" might not work here, and dirty workarounds have to be made.
I have an APK which contains the following…

Shark
- 6,513
- 3
- 28
- 50
7
votes
2 answers
How to design image for splash screen?
I would like to show a splash screen image. I've read Screen compatibility overview about the different directories (ldpi, mdpi, ...) to create under res/ but I've not understood if, other than creating the same image of 240x320, 320x480 and 480x800…

Cris
- 12,124
- 27
- 92
- 159
6
votes
3 answers
how to auto resize, compatible, adjust screen size for all android devices
I am creating a simple quiz test app "Target SDK API 16 (4.1 Jelly Beans)" Screen 3.7 (480x800 hdpi).
This app looks great on 3.7 (480x800), but when I run this on another screening device like 2.7 (240x320), 7.0 (1024x600), 10.1 (1280x800) its…

Smith
- 137
- 2
- 2
- 5
4
votes
3 answers
How to set layout on 7" two different tablet?
I have two 7 inch tablet one tablet (800*480) and second tablet (1024*600). I have facing problem following :-
1. Both can run on layout-mdpi and layout-large so how can i make different folder for run my app both resolution.
Application run xml…

duggu
- 37,851
- 12
- 116
- 113
3
votes
1 answer
Android app for phone on tablet
What is the best approach for developer, who published an application for the phone device, which looks nice up to 480x800px, but is extremely ugly on big tablet screens (800x1280px).
First option is to manually remove device by device from…

STeN
- 6,262
- 22
- 80
- 125
3
votes
1 answer
Assign px value to layout across all Android devices
I am designing a layout as per a set of specification. I basically need to give some space between the layout and the android device. Below image is for reference
I am using following site to convert given pixel into dp values…

ik024
- 3,566
- 7
- 38
- 61