title: bluetooth settings+android
body: <p>In My Application i Need to check whether the device is discoverable or not and bletooth is on or off I applied the code like this</p>
  
  <pre><code>bluetoothenable=Settings.Secure.getInt(myContext.getContentResolver(),
  android.provider.Settings.Secure.BLUETOOTH_ON);
  </code></pre>
  
  <p>It gives true value when in settings i have checked bluetooth on but for discoverable 
  i add this code</p>
  
  <pre><code>bluetooth=Settings.System.getInt(myContext.getContentResolver(),
  android.provider.Settings.System.BLUETOOTH_DISCOVERABILITY);
  </code></pre>
  
  <p>it gives me Settings not found exception not this any value i check through 
  <code>android.provider.Settings.System</code> it gives this error If we can not read settings value through
  <code>android.provider.Settings.System</code>?</p>