Android Question What are small, normal and large screens

antonomase

Active Member
Licensed User
Longtime User
Hi,

In the manifest editor, we can find
B4X:
<supports-screens android:largeScreens="true"
  android:normalScreens="true"
  android:smallScreens="true"
  android:anyDensity="true"/>

What are the normal, small and large screens ? Is the sizes predefined ?

I work on an application which is not planned for smartphones, but only tablets 7" and more.
I try to change normalScreen and smallScreen to false and run the application on my Galaxy S3.
It seems the changes have no effect : the application starts (I have a software test which display a message for smartphones).

So how to prevent an application to start on a smartphone ?
 

antonomase

Active Member
Licensed User
Longtime User
Thanks

7" Tablets and larger are xlarge screens.
But i try to set
<supports-screens
android:xlargeScreens="true"
android:largeScreens="false"
android:normalScreens="false"
android:smallScreens="false"
android:anyDensity="true"/>

and I have the error
AndroidManifest.xml:10: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
What API level are you targeting/running on? xlargeScreens is available from API level 9 (Android 2.2)

Also check which android version you are pointing to in the tools/configure paths.
 
Upvote 0

antonomase

Active Member
Licensed User
Longtime User
Hi stevel,

I was pointing to android-8. More than 90% of the users of the 1st version of my app are under 4.0.3 to 4.2. So now, I point to android-15 (4.0.3)
In the manifest, I have now
B4X:
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="17"/>
<supports-screens
   android:xlargeScreens="true"
   android:largeScreens="false"
  android:normalScreens="false"
  android:smallScreens="false"
  android:anyDensity="true"/>
There is no more compilation error, but it seems to change nothing : the application starts on the smartphone (it is uploaded from B4A).

Are these indications just for Google Play to deny the smartphone to download the app ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…