I have two apps for Android tablets and Android phones. For the tablet app, I set android:minSdkVersion="11" . But currently, Android phones like the Galaxy S3 have Android 4.0.4, so S3 users can download the app for my tablet from the Google Play Store. I want to warn phone users to download the phone app when they install the tablet app. Conversely, tablet users download the tablet app when they launch the phone app.
Is there an easy way to determine the type of device?
Edit:
I found a solution at this link .
In your manifest file, you can declare the screen function for the phone and tablet, after which Google Play will determine the download permissions for the phone and tablet.
android device-detection
KAPLANDROID Jul 04 2018-12-12T00: 00Z
source share