> Why do you want to do this? If you want to log an error that doesn't
> cause your app to crash, use Log.w(). I generally recommend if you have a
> fatal error, using Log.e() (though it is your responsibility to crash or
> whatever the fatal error behavior is after that).
> If you don't want the behavior of Log.wtf() (which is partly that it can
> optional crash your app based on the setting), then don't use it. The only
> reason to use it that I can think of is because you want the behavior it
> provides. Is there some other reason you want to call that specific method?
> On Fri, Aug 10, 2012 at 11:13 AM, Shri <shri.bo...@gmail.com> wrote:
>> 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+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en