Hello everyone,
I'm trying to upload two apk for one application as the Google Play gives
us the possibility.
I have a "phone" apk with a version code which is always lower (1xxxx) and
another apk which is designed for tablets only and for which I put a higher
version code (2xxx).
The "phone" apk is compatible with all devices and will be suggested for
all devices if they do not apply for "tablet" apk requirement. So the only
thing I should focus on is to restrict the devices allowed for tablet
version.
On the developer console, I found:
For example, if you want your application to be available only to tablet
devices, you can declare the element in your manifest like this:
<manifest ... >
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
...
<application ... >
...
</application>
</manifest>
I am using min API 14 so it seems like I don't need to use generalized
screen size, only requiresSmallestWidthDP.
To be sure, I tested both
1/ I used false/false/true/true + smallest width at 600dp, in that case, I
noticed that devices like Sony Xperia Z Ultra (large, 540dp) received the
tablet version > Not good
Some other devices like Nexus 6P or One Plus One too.
2/ I removed the generalized size and only used requiresSmallestWidthDp =
600, in that case, I can't even upload to the store because it tells me
that this version is allowed for all devices.
In any case, it's not working.
Am I doing something wrong ?
Thank you,
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/d4531258-4d65-478a-9f91-cb2a63f22711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.