I am downloading a nonmarket app for Android. If the "Unknown sources" option is not activated, I show the user a dialog box containing the "Settings" button. when this button is pressed, it opens the intent of the settings and allows the user to check the "Unknown sources" option.
Intent intent = new Intent(Settings.ACTION_APPLICATION_SETTINGS);
But on some devices, the Unknown Sources settings are in the security settings, not in the application settings. How to deal with such cases?
source
share