Skip to content

Most visited

Recently visited

navigation

Device capability for billions

Reaching new users means supporting an increasing variety of Android platform versions and device specifications. To improve the user experience, optimize for common RAM configurations, and screen sizes and resolutions.

Support multiple screen sizes

Your app can provide a better user experience for billions of users if it supports screens of various sizes and resolutions. This section describes a few ways you can do this.

Use density-independent pixels (dp)

Test text and graphics on ldpi and mdpi screen densities

Test layouts on small and medium screen sizes

Provide backward compatibility

Not all of your users may be using devices powered by the latest, greatest version of the Android platform. Here are some ways you can improve backward compatibility, helping make your app available to as many people as possible.

Set your targetSdkVersion and minSdkVersion appropriately

Use the Android Support libraries

Use Google Play services

Use memory efficiently

Memory is an unsung hero of the user experience. Good memory management can make your app more stable and more performant; in some cases, its effective use may be the only thing making your app usable at all. Here are some ways you can help your app use memory wisely.

Reduce memory footprint on low-cost devices

Avoid long-running processes

Benchmark memory use

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.