how can I programmatically check if non market applications are allowed on the android phone?
Thanks
you can try this, it opens setting screen
check for it
import android.provider.Settings;
int result = Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0);
open settings
Intent intentSettings = new Intent();
intentSettings.setAction(android.provider.Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS);
startActivity(intentSettings);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With