I'm trying to hide an administrator password window (to access system settings), so that users of my public access app wouldn't even know how to reach the password dialog.
I've figured hiding it under one of the buttons with a long-press would do it, but it seems the onLongClick
(about 500ms) is still a bit too short. Is there a way to make it longer? Or do you guys have a better idea, how to manage access to system settings (i.e. wifi and stuff) from a kiosk app.
Help much appreciated, I've hit a dead end so far. Thanks!
_ I know one of the options would be to place the app over the lock-screen (with FLAG_SHOW_WHEN_LOCKED) and make a dialog to kill my activity, which would show the lockscreen, unlock it with a nice alphanumeric pin and access the settings. But I don't really like the idea of it, since (once again) my app is intended for public use _
No, sorry.
Use
adb shell am
to launch the system settings app, with the device attached to a machine with the Android SDK on it.