I want to check if Log.wtf will result in program termination. I want to 
use that property to enable expensive asserts in my program. How can I 
check for this? I used the following code but it throws 
SettingNotFoundException.

  int wtfIsFatal = 
android.provider.Settings.Secure.getInt(getContentResolver(), 
"wtf_is_fatal");

I tried adding android.permission.WRITE_SECURE_SETTINGS to my 
AndroidManifest.xml but that does not help. I had set wtf_is_fatal as such:

adb root
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
>> insert into secure (name, value) values ('wtf_is_fatal', 1);
>> select * from secure;
...
60|wtf_is_fatal|1
...

Thanks,
Shri

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to