Application not supported on Android Market for x-large tablets

I am creating an application only for tablets (7 and 10.1 inches). I put below code in Android manifest file:

<uses-sdk android:minSdkVersion="8" /> <supports-screens android:xlargeScreens="true" android:largeScreens="true" android:smallScreens="false" android:normalScreens="false" /> <uses-permission android:name="android.permission.INTERNET"></uses-permission> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission> 

I placed my application on the Android market. But this does not appear on my Samsung Galaxy 10.1 tab. This supporting device contains only 7-inch tablets. I want my app for 7 inches and 10.1 inches. Please help me solve this problem.

+1
source share
1 answer

I think you should add a level 9 API.

 <manifest ... > ... <compatible-screens> <!-- all small size screens --> <screen android:screenSize="small" android:screenDensity="ldpi" /> <screen android:screenSize="small" android:screenDensity="mdpi" /> <screen android:screenSize="small" android:screenDensity="hdpi" /> <screen android:screenSize="small" android:screenDensity="xhdpi" /> <!-- all normal size screens --> <screen android:screenSize="normal" android:screenDensity="ldpi" /> <screen android:screenSize="normal" android:screenDensity="mdpi" /> <screen android:screenSize="normal" android:screenDensity="hdpi" /> <screen android:screenSize="normal" android:screenDensity="xhdpi" /> </compatible-screens> <application ... > ... <application> </manifest> 

and

Note. Android 2.3 (API Level 9) introduced a new attribute for the item: xlargeScreens, shown below. It works the same as the other screen attributes above, but if neither your minSdkVersion nor targetSdkVersion is set to "9", the default value is "false" when your application is installed on a device running Android 2.3.

when targetSdkVersion is 9 or higher android: xlargeScreens β†’ Regardless of whether the user interface of the application is intended to be used on xlarge screens - β€œtrue” if it is, and β€œfalse” if not. "false" "true"

http://android.ankara-gtug.org/guide/practices/screens_support.html#attrs

+2
source

Source: https://habr.com/ru/post/1391301/


All Articles