Application creation is only available for devices that support sim

Can I allow the installation of the Android application only for devices that support sim in Google Play? Distributing to certain screens does not seem to explain this.

+6
source share
2 answers

check when your application is opened for the first time

TelephonyManager tm = (TelephonyManager) 
    getSystemService(Context.TELEPHONY_SERVICE);     
String simID = tm.getSimSerialNumber();
//do logic stuff

use it using BroadcastReceiver with BOOT_COMPLETED. Light stuff go ahaed

0
source

Yes. You need to look for telephony ( android.hardware.telephony) uses-feature .

0
source

All Articles