Android Usage Access for Android 5 Samsung devices Android Usage Access for Android 5 Samsung devices android android

Android Usage Access for Android 5 Samsung devices


Sorry for the late reply, I hope you have found a good solution, but if not or for other people who have this problem,

this bug seems to exist in some Samsung models, to avoid the crash of your app, maybe you can check if your intent can be handled

PackageManager packageManager = getActivity().getPackageManager();if (intent.resolveActivity(packageManager) != null) {    startActivity(intent);} else {    Toast.makeText(getBaseContext(), "Please open settings, your model can't be forced                           to open it", Toast.LENGTH_LONG).show();}