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
0
votes
1 answer

Android prevent deleting application offline data or database on Clear data event

In case of network unavailability, storing some important information into the sqlite database and file on internal storage. When network available, it will sync to the server in background. But when a user performs Clear Data, it deletes database…
0
votes
1 answer

How to Open "App Notifications" Screen in settings By Intent (Screen Shot Attached)

I have tried many intents from class android.provider.settings but not able to open this Screen Directly.
0
votes
3 answers

how to turn on SwitchPreference programatically on Android

I've a settings fragment which load a xml with a default settings page, I also added one click listener to one specific preference @Override public void onCreate(@Nullable Bundle savedInstanceState) { …
0
votes
0 answers

Intent to navigate Status screen

By using below intent i can navigate to "about phone" screen Intent intentOpenBluetoothSettings = new Intent(); intentOpenBluetoothSettings.setAction(Settings.ACTION_DEVICE_INFO_SETTINGS); …
babu
  • 123
  • 1
  • 1
  • 11
0
votes
1 answer

What should I use specifically for running a light background task?

I am in the process of making an app that will be triggered by a system broadcast and would take time input from the user, after which the app should just run a timer and do a task after the timer is over. My questions are as follows: Do I need to…
Aqib Ahmed
  • 48
  • 8
0
votes
2 answers

Setting ANDROID_HOME variable globally on PhpStorm / WebStorm on Linux

PhpStorm / Webstorm on Linux didn't mentioned the System-ENV Variables. So even if you have export ANDROID_HOME in your .bashrc or .bash_profiles, this Variable is not usable in PhpStorm. Currently I need it to run react-native packager: "start":…
suther
  • 12,600
  • 4
  • 62
  • 99
0
votes
2 answers

How to open Android Settings App programmatically with Delphi?

So I want to write a simple Delphi application with a button. When you click on this button then it should open the Settings App on Android. It should not open anything within the settings, but just the Settings app itself. I want to do this…
Shaun Roselt
  • 1,650
  • 5
  • 18
  • 44
0
votes
1 answer

How to open up phones settings page through preferences?

I am making a settings page for an app and one of the features I want is for the user to change the permissions through the settings page by redirecting to the users phones settings. I am trying to figured out how to do that programmatically. I am…
0
votes
0 answers

Opening the settings page with return to previous page option

I have an application that requires access to the Android wifi page. Using the code below, I was able to open the page, but there is no way to return to the previous page programatically. I don't want to use the back button on the…
0
votes
1 answer

How to edit the code generation of getters in Android Studio

How to edit the code generation of getters in Android Studio, which are generated via hot keys Alt+Insert ? In which folder are the files which are spelled out in the instructions?
0
votes
2 answers

Need to apply Time scheduler on checkbox using android studio

I am a beginner in Android, I made a simple app for mobile data off and on using checkbox. now I want to add time scheduler of 1 minute, it means mobile data off and on automatically after every 1 minute. How can you add this functionality to my…
0
votes
1 answer

How to open IME settings? Android Keyboard AOSP

I would like to provide the possibility to change some settings of the Android keyboard (only this keyboard). What I've tried: 1. Accessing the Shared Preferences: Can't be done, because they are internally. 2. Start the SettingsActivity: This…
devz
  • 2,629
  • 2
  • 31
  • 37
0
votes
1 answer

Why isn't my app on the list of apps to grant android.permission.PACKAGE_USAGE_STATS to? I included it in my manifest file

I included this line in manifest file But when I open the Grant Usage Access section with startActivity(new…
Anirudh
  • 2,648
  • 2
  • 13
  • 16
0
votes
1 answer

Binary XML file line #13: Error inflating class DropDownPreference

I'm getting a Error inflating class DropDownPreference when trying to create a settings screen in my app. I've added a button to my action bar that I want to launch the settings activity which contains a settings fragment, set up like this. So I…
intA
  • 2,513
  • 12
  • 41
  • 66
0
votes
1 answer

Default Device assistance app Android

Sadly, now we can no more map our apps to Long press home button Event. But, There is a settings page where it is possible to change the default device assistance app: Default Device Assistance app on Samsung Is it anyway possible to change the…