Just sharing the link to a “cheat sheet” that I found:
I think that this resource should have been said to be for developers too, because developers need to know about dimensions of graphics in the Android apps they develop.
Just sharing the link to a “cheat sheet” that I found:
I think that this resource should have been said to be for developers too, because developers need to know about dimensions of graphics in the Android apps they develop.
Here are the recommended background image sizes in pixels for Android app development:
xxxhdpi: 1280×1920 px
xxhdpi: 960×1600 px
xhdpi: 640×960 px
hdpi: 480×800 px
mdpi: 320×480 px
ldpi: 240×320 px
…as suggested in this StackOverflow page: Android: Background Image Size (in Pixel) which Support All Devices
As a mobile app developer, we need to consider various screen sizes for a wide range of Android devices.
Here’s a quick note of recommended image sizes for Android app icons:
36×36 for low-density (LDPI)
48×48 for medium-density (MDPI)
72×72 for high-density (HDPI)
96×96 for extra high-density (XHDPI)
180×180 for extra extra high-density (XXHDPI)
192×192 for extra extra extra highv-density (XXXHDPI)
Source: Units and measurements – Layout – Google design guidelines
Images can be scaled to look the same across different screen resolutions by using these ratios:
| Screen resolution | dpi | Pixel ratio | Image size (pixels) |
| xxxhdpi | 640 | 4.0 | 400 x 400 |
| xxhdpi | 480 | 3.0 | 300 x 300 |
| xhdpi | 320 | 2.0 | 200 x 200 |
| hdpi | 240 | 1.5 | 150 x 150 |
| mdpi | 160 | 1.0 | 100 x 100 |
For our reference. 🙂
You may read more about Supporting Multiple Devices.
I also want to share MakeAppIcon. Use that online tool to quickly generate resized images for various Android screen sizes for you.

You can still follow this tutorial if you’re using another version of Windows or if you’re using another Android device. You don’t strictly have to use a Windows 7 computer and an LG G3 phone. 🙂
Being a web developer and a frequent user of Android devices, I’ve always been curious about Android app development. I’m really happy that I’m finally able to create even the simplest Android app (i.e., displaying Hello World! lol) 😆
You are on this page most likely because you are just curious like me, or because you need to learn Android app development for school or work.
Download it from this page: JDK (Java SE Development Kit)
Make sure to check if you are using 32-bit or 64-bit Windows and download the appropriate installer version. The installers for 32-bit and 64-bit Windows are not interchangeable. In my office laptop I installed jdk-7u79-windows-x64.exe but since it is for 64 bit and incompatible with my 32-bit Windows at home, I downloaded jdk-7u79-windows-i586.exe from the source.
When someone in your team, or when you download Android Studio completely for the first time, copy the sdk folder from this path and store it somewhere for future use:
C:\Users\YourUsername\AppData\Local\Android\Sdk
Please note that this can take a while. It took me about 30 minutes to finish copying in an old laptop that uses Intel Core i5 CPU.
The installation of Android Studio requires Internet connection for the contents of the sdk folder, and it will be trouble if you have a very slow connection to the Internet. It will be handy to keep a copy of the sdk folder as backup, so that every time you need to install Android Studio, you just have to “cancel” the download that doesn’t seem to end (when it says Downloading Android SDK Build-tools) and just paste the contents of your backup sdk folder into the folder where you are currently installing SDK into D:\Users\YourUsername\AppData\Local\Android\sdk. When you try to start a new project, you might run into an error saying “Your Android SDK is missing, out of date, or is missing templates.” To fix this, do the following:
MainActivity.java and activity_main.xml for you, then follow these steps:
app -> res-> layout then double click activity_main.xml to open it.If you see the “Hello World”, good! I would congratulate you, but if you’re like me, you probably didn’t feel any accomplishment in seeing that Hello World in your computer screen. After all, an Android app is supposed to be run in an Android device. You can stop here, or you can read the next steps as I guide you in setting up your computer, Android Studio, and Android device so that you can run the app you are developing in your phone or tablet.
Allow me to use the words “phone” and “device” interchangeably — just a little warning to keep you from being confused. 😆 After all, the “device” I’m using for this tutorial is a “phone” 🙂
Source: PdaNet download page
MainActivity.java and activity_main.xml still open, I pressed Shift + F10 to attempt to run the app on my phone.To fix the “device is offline” problem, what I did was unplug my phone from the computer and then plug it back in. On my phone, there was a prompt to “Allow USB Debugging” and I allowed it. Then, pressing Shift + F10 again on Android Studio allowed me to choose my LG G3 phone. When I pressed OK, the Hello World! screen was displayed on my LG G3. 🙂
Your device is still not able to run your app from Android Studio? Try any of these:
Possible fix #1: Set connection mode on your phone from MTP to PTP
You probably read earlier that unplugging and plugging my device back into my computer let Android Studio detect my LG G3 as an online device. I realized that my connection was already set to PTP back then.
I tried switching to MTP and as a result, Android Studio took out my device from the list.
I switched back into PTP mode and Android Studio brought my device back to the list.
So, that confirmed that LG G3 needs to connect to the computer in PTP mode so that Android Studio can run apps in it.
Possible fix #2: Install LG program/driver(s)
(If you’re using an LG phone and if this doesn’t work try to install LG drivers from this link too …I had to download that one for my phone to work on my office laptop’s Android Studio. )
Each time you run the app, an APK file is generated in app/folder/app/build/outputs/apk/
Thanks to my office friends Nethki, Allen, and Peng for ideas and guidance, as well as to my boyfriend. 🙂 I probably couldn’t have started anything at all without you all. 😀