Questions tagged [system-setting]
29 questions
7
votes
2 answers
Android how to get current System Settings values?
I know that I can change the Settings with:
Settings.System.putInt( getContentResolver() ,
Settings.System.SCREEN_OFF_TIMEOUT , DELAY );
but I honestly can't find a solution on how to read the current value of that / any setting.

deW1
- 5,562
- 10
- 38
- 54
6
votes
3 answers
How to open Home Launcher List settings screen programmatically in Android using Intent
I am looking for a way to open a Launcher list screen in Home option in system Settings using Intent.
main system Settings >> Home >> Launcher List.
I need to open this Launcher list screen using Intent. If anyone could point me in the right…

Jadav Nirav
- 89
- 1
- 5
5
votes
0 answers
WRITE_SETTINGS intent closing after getting permission
I want to close the WRITE_SETTINGS permission intent as the user allows the permission. I have seen some apps doing this like getting permission and closing the intent automatically.
How I can achieve this functionality?

Tariq Hussain
- 409
- 1
- 5
- 19
2
votes
1 answer
Where does the JVM get the locale settings in ubuntu 10.10?
My web app runs fine after I changed the system locale however whenever files are generated (java.text.numberformat.getCurrencyInstance() ) the currency shown in the files are in $ as opposed to € which is the currency for the system locale. The web…

Dark Star1
- 6,986
- 16
- 73
- 121
2
votes
0 answers
java.lang.IllegalArgumentException: You cannot keep your settings in the secure settings
I am working on Android 12 (AOSP 12) device.
Trying to set the static IP from my application.
Snipped code below:
MainActivity.java:
public class MainActivity extends AppCompatActivity {
private static final String KEY_ETH_IP_ADDRESS =…

GNK
- 1,036
- 2
- 10
- 29
2
votes
1 answer
Trigger Dark mode of System from application programmatically in Android Studio
I just want to know is there any syntax to trigger the internal dark mode of the mobile, I know that I should used SharePreferences to save the Darkmode status in my mobile, but All I want is, is there any function to trigger dark mode into my whole…

Henry
- 165
- 13
2
votes
1 answer
How to change resolution(size) and density with Android Code, Runtime.getRuntime().exec(...) doens't works
I would like to toggle resolution and density of my phone using my application (don't want to use ADB).
When I use Runtime.getRuntime().exec("wm density 220") it doesn't
work on AVD nor at my rooted phone Galaxy S8 with Custom ROM.
When I use…

Pavel Kostal
- 221
- 5
- 13
2
votes
1 answer
Settings.System.canWrite always returns false
I use below code for getting system permission...what happening even if permission is allowed; still it's showing..
@Override
protected void onResume() {
super.onResume();
if (Build.VERSION.SDK_INT >= 23 &&…

Gowthaman M
- 8,057
- 8
- 35
- 54
2
votes
1 answer
Make my developed app browser to be recognized for "open by default" android function
I'm not a pro Android programmer, but I developed my custom browser app. Easy application which contain a WebView and a SearchView. Now I want that when I tap on a link my browser app is opened by default, but I can't set it by default because it…

Smart
- 445
- 1
- 5
- 12
2
votes
2 answers
Changing System.Global Settings. Is it possible? - Android
I am little confused about System.Global. According to this document (third point under Important Behavioral Changes) it says that few of the features like turning airplane mode on/off have been include in System.Global in Android 4.2 and higher so…

ik024
- 3,566
- 7
- 38
- 61
2
votes
1 answer
Android Vibrate Service (Vibrator) is not working for long time
I want to Vibrate a phone for long time(e.g 2 minutes) but It vibrates for very less time.
i am using this code
Vibrator mVibrate = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
mVibrate.vibrate(2*60*1000); // 2 Minutes
How to vibrate for…

Atul Bhardwaj
- 6,647
- 5
- 45
- 63
2
votes
1 answer
How to add own setting to system settings?
I have seen applications that manage to add their own checkboxes to system settings without requiring root access.
For example, when a new TTS engine is installed, it adds its own items to the Voice input & output > Text-to-speech settings…

an00b
- 11,338
- 13
- 64
- 101
1
vote
1 answer
iOS App freezes at splash screen when user enables "Bold Text" on System Settings -> Display and Brightness
My app freezes on the splash screen when "Bold Text" is enabled in System Settings -> Display and Brightness on iOS 13.
If the app is installed on an iPhone 11 there is no problem but when the app is installed in a previous iPhone (X, XS, 8, 8S...)…

Meroelyth
- 5,310
- 9
- 42
- 52
1
vote
1 answer
Is it possible to programmatically turn on/off/auto the wifi in a wearable web TIZEN app?
Is it possible to programmatically turn on/off/auto the wifi in a wearable web TIZEN app? Like from a js function in tau.js? I have seen documentation for natively turning on/off, but I didn't find samples/documentation for a web app.

Zananok
- 121
- 1
- 3
- 12
1
vote
1 answer
Read CRM 2013 system settings from Plugin code
I wonder if there is any possibility to read (not write!) the system settings from a plugin in Microsoft Dynamics CRM 2013. It can be easily done for the user settings but I couldn't find any way to do the same thing with system settings too. I…

Peter
- 369
- 2
- 5
- 18