I want to extend the existing settings menu with one point (I want to add the option "infinite" to Settings -> Display -> Screen timeout). Does anybody know where I can find the sources for doing this? I think somewhere in frameworks/base/... ? Thank you!
Perhaps using a WakeLock is a decent alternative approach.
http://developer.android.com/reference/android/os/PowerManager.html
Short answer: you can't.
Long answer: you can't, because the Settings app does not provide this option. You would have to write your own Settings app.
If it's of any use, you can find the sources to the Settings app here:
https://android.googlesource.com/platform/packages/apps/Settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With