2011-07-12 20 views

cevap

4
Uri settingsUri = Settings.Secure.CONTENT_URI; 
String[] projection = new String[]{Settings.System.VALUE}; 
String selection = Settings.Secure.NAME + " = ? AND " + 
     Settings.Secure.VALUE + " = ?"; 
String[] selectionArgs = {Settings.Secure.INSTALL_NON_MARKET_APPS, 
    String.valueOf(1)}; 
Cursor query = getContentResolver().query(settingsUri, projection, 
    selection, selectionArgs, null); 
if (query.getCount() == 1) { 
    // it's enabled 
} else { 
    // it's not 
} 
11

Bu ayarı kontrol etmek başka bir yoludur. Settings.Secure ...
+0

Ben android.provider kullanmak zorunda İşte –

İlgili konular