I want to check if the user is enabled or disabled by the user.
The only thing I know is that I can get this int
int appstate= this.getPackageManager().getApplicationEnabledSetting("com.example.app");
How can I use this int to check if the application is enabled or disabled?
Example
if(......){//is enabled } else{ //disabled }
source share