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

Open the settings preferences on clicking the vertical dotted line on the upper-left corner on android app

I want to make a simple settings page, I went to Google's documentation below: http://developer.android.com/guide/topics/ui/settings.html created new android testing project, then I created the PreferenceScreen xml, and PreferenceFragment class…
Muayad Salah
  • 701
  • 1
  • 8
  • 19
0
votes
2 answers

How Do I Disable AIRPLANE MODE tablet supports 4.4.2

I have to disable AIRPLANE MODE and DATE TIME SETTINGS in my app, for that i used these intent filters but none of them works for me
Sun
  • 6,768
  • 25
  • 76
  • 131
0
votes
1 answer

Access Led light

I'm trying to access LED NOTIFICATION in Android, following this and this question here on Stack. When I try to call Settings.System.getInt(resolver, "notification_light_pulse") the program crashes because it can't find…
Luca
  • 823
  • 4
  • 11
  • 31
0
votes
0 answers

How to run android settings activity inside pop-up window?

I want to run some android settings activity like WIFI_SETTINGS inside a predefined pop-up window, I know how to call some android settings activity : startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)); and know how to make a predefined…
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118
0
votes
1 answer

Up navigation of external app to return to calling app

I'm letting users access the device Settings via a menu within my app: Intent dialogIntent = new Intent(android.provider.Settings.ACTION_SETTINGS); startActivity(dialogIntent); However, once user is done with making changes in Settings, I need them…
0
votes
3 answers

Wifi Optimization

Anyone know of any way to enable/disable wifi optimization programmaticaly via code, or to at least check if it is enbaled (so to prompt the user)? When this is enabled and the device goes to sleep (despite wake and wifi locks) wifi communication…
KMLong
  • 8,345
  • 2
  • 16
  • 19
0
votes
3 answers

Why is this preference not being saved?

As far as I can tell, I am using the same key when getting as when setting, yet the preference does not save. I'm sure I'm missing something obvious. My custom DialogPreference where I load the current preference and set the new one. public class…
NSouth
  • 5,067
  • 7
  • 48
  • 83
0
votes
2 answers

How to display only specific Settings fragment from android inbuilt Settings app

I want to show only wi-fi settings fragment from settings. I have achieved this by using following code: Intent i = new Intent(Settings.ACTION_SETTINGS); i.putExtra(":android:show_fragment",…
Rahul Matte
  • 1,151
  • 2
  • 23
  • 54
0
votes
0 answers

Check if Location is enabled android

Is there a way to programatically check if the Location is enabled in android? Im talking about this setting on the phone:
0
votes
1 answer

Enable google location services intent

is it possible to take the user to Settings -> Location using intent, so he would be able to enable the app go get the device location? This is the screen I want to go to:
0
votes
0 answers

block user from disable GPRS/GPS

Is there a way to block a user from disabling the GPRS / GPS? As I know We can block a user from access the system setting, but a user can swip from up and enable/disable the options.
Brijesh Patel
  • 676
  • 1
  • 5
  • 13
0
votes
0 answers

How to programmatically enable/disable lock screen and dial key pad in phone settings?

I am trying to programmatically disable/enable the dial keypad and the lock screen, but I am unable to do so as I cannot find the relevant constants in Settings.System or related paths. How to perform these operations programmatically?
SoulRayder
  • 5,072
  • 6
  • 47
  • 93
0
votes
1 answer

Setup Wi-Fi from an Android app

Android app which i am developing has some modes like: Kiosk Mode Normal Mode Semi-Kiosk Mode Now my question is while my app is running in a Kiosk mode it will blocks all the other apps to open/make himself on the top. So user is unable to go to…
jitain sharma
  • 584
  • 5
  • 19
0
votes
1 answer

Showing and hiding SettingsFragment in an activity

So I followed this guide on Android Developers. They suggest to use fragments for showing settings to user. I created the xml and strings and the fragment: public class SettingsFragmentApp extends PreferenceFragment{ @Override public void…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
0
votes
1 answer

Android Default Settings Option Activity Linking

I'm developing a basic simple android application & want the default settings to lead to other activity, I know this is kinda silly and out topic but I really don't understand how can I default action bar's setting option make lead to my other…
Ankit Pise
  • 1,243
  • 11
  • 30
1 2 3
18
19