I am downloading a non-market android app. If the "Unknown sources" option is not enabled, I show the user a dialog box containing a "Setting button". when this button is clicked, it opens the settings intent and allows the user to check the "Unknown sources" option.
Intent intent = new Intent(Settings.ACTION_APPLICATION_SETTINGS);
But in some devices, the "Unknown sources" options is in Security Settings and not Application Settings. How to deal with such cases?