Questions tagged [android-settings]

android-settings can refer to a class that contains constants values used to launch system preferences screens. For example, launch an intent to the network management screen.

The Settings provider contains global system-level device preferences. A list of these constants can be found here.

285 questions
13
votes
1 answer

Mistakenly selected remove from sidebar xml preview

I am using Android Studio 2.2 preview, and I have mistakenly choose Layout preview settings to remove from sidebar which appears in the left side. Now how do i get back? Its missing from sidebar. Only i can see is gradle.
13
votes
0 answers

Toggle/Change Hidden Developer Options Settings Programmatically

I know that settings can be changed programmatically this way: Settings.Secure.putInt(getContentResolver(),Settings.Secure.ADB_ENABLED, 1); But there are some settings in Developer Options which are not provided neither in Settings.Secure,…
arsena
  • 1,935
  • 19
  • 36
11
votes
2 answers

Is android.permission.WRITE_SETTINGS only granted to system apps?

We are currently developing an app where we'd like to change some system settings, with user permission of course. The android documentation says that to do this, you have to add the following permission:
Vitolds
  • 252
  • 2
  • 8
10
votes
3 answers

Highlighting a menu item in system settings

Trying to bring up an unaswered question I found here - How to highlight android setting app menu item? As seen in this video https://www.youtube.com/watch?v=eHXBc5Mmsqs The "Power Shade" menu item is being highlighted once you enter the screen. I…
10
votes
1 answer

How to style PreferenceFragmentCompat

I'm using a PreferenceFragmentCompat, but I don't think it is styled correctly. Preferences' title seems way to big, PreferenceCategory text is unreadable, the whole think seems off. This is what I have in theme.xml