Created
December 17, 2013 18:26
-
-
Save dominicthomas/8010077 to your computer and use it in GitHub Desktop.
Check if "Unknown sources" is enabled on this device..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean unknownSources = Settings.Secure.getInt(getContentResolver(), | |
Build.VERSION.SDK_INT < 17 ? | |
Settings.Secure.INSTALL_NON_MARKET_APPS : | |
Settings.Global.INSTALL_NON_MARKET_APPS, 0) == 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment