Start a new topic

Filter device that fulfills the SDK'S minimum requirements from Google Play

Filter device that fulfills the SDK'S minimum requirements from Google Play
1 Comment


In Android, we use the following code to  check weather the device fulfills the SDK'S minimum requirements

       //check if the device fulfills the SDK'S minimum requirements
        if(!ArchitectView.isDeviceSupported(this))
        {
            Toast.makeText(this, "Minimum requirements not fulfilled", Toast.LENGTH_LONG).show();
            this.finish();
            return;
        }

But there users get to know their devices are not supported after they  have installed a app rather than doing this can't we filter devices from Google Play Store. My question is why wouldn't we use AndroidManifest.xml file to filter out unsupported devices. 

My proposed solution:

<manifest ...>
    <uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.gps" />
<uses-feature android:name="android.hardware.compass" />
<uses-feature android:name="android.hardware.accelerometer" />
    ...
</manifest>

 
Login or Signup to post a comment