If the app feature is not available on the current device, However, if your app's primary functionality does not requireĪ device feature, you should set the requiredįor the device feature at runtime.
If the device does not provide all the features your app requires, the user cannot install Google Play Store compares the features your app requires to the features available onĮach user's device to determine whether your app is compatible with each device. You can declare the compass sensor as required with the following manifest tag: If necessary, you can prevent users from installing your app when their devices don't provide aįor example, if your app does not make sense on a device that lacks a compass sensor, For instance, theįeature ID for the compass sensor is FEATURE_SENSOR_COMPASS and the feature ID for app widgets That may not be available on all devices.
In order for you to manage your app’s availability based on device features,Īndroid defines feature IDs for any hardware or software feature
Store based on the following device characteristics: If necessary, however, you can restrict your app's availability to devices through Google Play With alternatives for different configurations (such as different layouts for different
In most situations, you can do so byĭisabling optional features at runtime and providing app resources
To achieve the largest user-base possible for your app, you should strive to support as manyĭevice configurations as possible using a single APK or AAB. So you may need to control your app's availability to devices based on your app's required Widgets), and some are dependent on the platform version.
Someįeatures are hardware-based (such as a compass sensor), some are software-based (such as app Controlling your app's availability to devicesĪndroid supports a variety of features your app can leverage through platform APIs. Of a compass sensor, then your app is compatible only with devices that If your app's core functionality requires the use For example, some devices may not include aĬompass sensor.
Because Android runs on a wide range of device configurations, some featuresĪre not available on all devices. However, you do need to consider whether your app is compatible with each potentialĭevice configuration. Users who install your app from Google Play Store are using an Android compatible device. Only devices that are Android compatible include Google Play Store. Test Suite (CTS) in order to be considered compatible.Īs an app developer, you don't need to worry about whether a device is Android compatible, because The exact details of the Android executionĮnvironment are defined by the Android compatibility program and each device must pass the Compatibility It can correctly run apps written for theĪndroid execution environment. Yet, a device is "Android compatible" only if There are two types of compatibility: device compatibilityīecause Android is an open source project, any hardware manufacturer can build a device What does "compatibility" mean?Īs you read more about Android development, you'll probably encounter the term "compatibility" To different devices, read Supporting Different Devices. For more information about how you can make your app adapt
This page explains how you canĬontrol which devices have access to your apps, and how to prepare your apps to make sure they Which types of devices can install your app from Google Play Store. If necessary, however, you can specify your app's feature requirements and control So with some forethought to your app design and some additionalĪpp resources, you can publish a single application package (APK) that provides an optimized user Android then loads the appropriate resources based on You can provide configuration-specific app resources in static files (such as different XML layoutsįor different screen sizes). To facilitate your effort toward that goal, Android provides a dynamic app framework in which To be successful on all these devices, it should tolerate some feature variabilityĪnd provide a flexible user interface that adapts to different screen The range of devices provides a huge potential audience for your app. Android is designed to run on many different types of devices, from phones