I have developed an app that only runs on the Nexus 7 (for now) and cannot seem to figure out which combination of parameters are required to get note only the Nexus 7 but ANY device supported by Google Play.
I have only tested with a USB connected physical Nexus 7 and it works fine in both portrait and landscape modes.
I have included only the last attempt of the Android Manifest XML.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx"
android:versionCode="7"
android:versionName="0.7" >
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="18" />
<supports-screens
android:anyDensity="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true" >
</supports-screens>
<uses-feature android:name="android:glEsVersion=0x00020000"
android:required="true" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ow_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.xxx.xxx.MainActivity"
android:configChanges="orientation|screenSize"
android:clearTaskOnLaunch="true"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Any help would be greatly appreciated.
Well your minsdkversion is 17, corresponding to android 4.2+. That's currently run on only a small fraction of devices !
After removing the following code from the Manifest
<uses-feature android:name="android:glEsVersion=0x00020000"
android:required="true" />
I then had thousands of devices supported. Since I only wanted the Nexus 7 (my original issue), I changed the "supports-screens" section and added the "uses-feature" line to the Manifest.
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true" >
</supports-screens>
<uses-feature android:name="android.hardware.telephony" android:required="false" />
The above changes allowed my app to run on 7" and 10" devices.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.