Happy Thanksgiving!

Is there any way to enable this very useful setting programmatically
or otherwise? It would be very helpful for us to do this full
debugging on the device itself.

Looking in the DevTools code, I see this...

ActivityManagerNative.getDefault().setAlwaysFinish(mAlwaysFinish);
(http://www.google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#CRBM04-7BoA/
apps/Development/src/com/android/development/
DevelopmentSettings.java&q=%22Immediately%20destroy%20activities%22)

ActivityManagerNative is hidden in the SDK, has anyone used reflection
to successfully access this on the Device? Are there some permission
problems there? I have tried installing the Development.apk but it
crashes with this:

11-26 15:48:46.772: ERROR/AndroidRuntime(418): Caused by:
java.lang.SecurityException
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
android.os.BinderProxy.transact(Native Method)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
com.android.development.DevelopmentSettings.updateFlingerOptions
(DevelopmentSettings.java:246)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
com.android.development.DevelopmentSettings.onResume
(DevelopmentSettings.java:169)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:
1225)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
android.app.Activity.performResume(Activity.java:3559)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2838)
11-26 15:48:46.772: ERROR/AndroidRuntime(418):     ... 12 more

Artem

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

Reply via email to