Manifest File with Screen Sizes

aaronk

Well-Known Member
Licensed User
Longtime User
Hello,

Doing some research and just want to know if anyone knows if I am correct in saying the following is correct.

In the Manifest file you can set supports-screens.

Does the following mean 7" screen sizes:

B4X:
android:largeScreens="false"


and the following mean 10" screen sizes:

B4X:
android:xlargeScreens="false"

Would I be correct in saying the above is correct or is there another way in allowing support for tablet screens?
 

mistermentality

Active Member
Licensed User
Longtime User
The exact details of what is large xlarge etc can be found at http://developer.android.com/guide/practices/screens_support.html but no, my nexus 7 is officially classed as xlarge as xlarge is 960x720 so it isn't possible to identify a ten inch tablet as ten inch like that.

However you could identify the resolution and dpi at runtime to load a tablet specific layout or add tablet specific variants to your current layout.

Dave

Sent from my Nexus 7
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
However you could identify the resolution and dpi at runtime to load a tablet specific layout or add tablet specific variants to your current layout.

I am planning to include a tablet layout at a later stage in this app but only have had time to make a phone layout and that's why I want to limit only phone size screens to be able to download the app for now.

I then want to make a tablet layout and then allow people with tablets to buy the app. But for the mean time I only want people with phones for now to get the app and then at a later stage when I finish the tablet layout then allow people with tablets to be able to get the app.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
Hello,

Thanks for pointing me to that site..

I am going to say the following will make it only work on phone size devices..

B4X:
<supports-screens android:resizeable=["true"| "false"]
                  android:smallScreens=["true" | "false"]
                  android:normalScreens=["true" | "false"]
                  android:largeScreens=["false" | "false"]
                  android:xlargeScreens=["false" | "false"]
                  android:anyDensity=["false" | "false"]
                  android:requiresSmallestWidthDp="320dp"
                  android:compatibleWidthLimitDp="320dp"
                  android:largestWidthLimitDp="320dp"/>

Also, What I am having trouble understanding is the following:

B4X:
android:requiresSmallestWidthDp="320dp"
android:compatibleWidthLimitDp="320dp"
android:largestWidthLimitDp="320dp"/>

Not quite sure if I have those values set correctly?
 
Upvote 0
Top