Reputation: 16622
Is there any way to find out if the user has checked the 'Unknown Sources' checkbox in the 'Application settings' menu?
Upvotes: 2
Views: 1207
Reputation: 11669
You can use the INSTALL_NON_MARKET_APPS
setting. Something like that :
boolean canInstallFromOtherSources = Settings.Secure.getInt(Settings.Secure.INSTALL_NON_MARKET_APPS) == 1;
Upvotes: 6