The DeviceAdminSample tests if the user is a monkey: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey()
I'd override onPreferenceTreeClick and/or onPreferenceChange in your PreferenceActivity and insert the test there, On Oct 11, 5:58 pm, Bret Foreman <[email protected]> wrote: > My preferences section contains user names and passwords that, if > trashed, render the rest of the app non-functional. How can I keep the > testing monkey's grubby fingers out of the preferences? -- 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

