Some Android phones not opening “About device” page in Settings?
Use PackageManager.resolveActivity()
to check whether such an Activity
exists. If that returns null
, there is no activity that matches the Intent
and you have to guide your customers to the settings in another way:
Intent intent = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
ResolveInfo resolveInfo = getPackageManager().resolveActivity(intent, 0);
if (resolveInfo == null) {
// help customers by describing how to get to the device info settings
} else {
startActivity(intent);
}