title: Check if app is enabled or disabled using package
body: <p>I want to check if one application is enabled or disabled by the user.</p>
  
  <p>The only thing i know is that i can get this <code>int</code></p>
  
  <pre><code>int appstate= this.getPackageManager().getApplicationEnabledSetting("com.example.app");
  </code></pre>
  
  <p>How can i use this int to check if the app is enabled or disabled?</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>if(......){//is enabled
  
  }
  else{
  //disabled
  }
  </code></pre>