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
3 answers

How to go another page when I press settings button on action bar?

I face a problem when I try press the settings icon on action bar and go to settings page in my android project. Here is the code: public boolean onOptionsItemSelected(MenuItem item) { if(item.getItemId() == R.id.settings) { …
D.Y
  • 55
  • 9
0
votes
3 answers

How to hide the keyboard and update EditTextPreference programmatically?

I am trying to implement the settings activity according to the guidelines. I have an EditTextPreference that I want to keep, but instead of allowing the user to type in any value, the value should come through Bluetooth (i have the Bluetooth part…
0
votes
0 answers

How to save application's preferences on server and load them

I need to load preferences from server and changes must be stored on same server. what I understood from this link is that if I use PreferenceActivity class it stores the preferences automatically in SharedPreferences. What I need, to fetch…
Sarfraz Ahmed
  • 1,349
  • 6
  • 23
  • 43
0
votes
1 answer

Setting Button for Live Wallpapers Doesn't work

When I click Settings... in my live wallpaper I get Unfortunately, Live Wallpaper Picker has stopped This is my wallpaper XML
0
votes
1 answer

Why does my listPreference dialog look different?

I looked at several tutorials and all their listPreference dialogs look like this. listPreference Dialog but my dialog looks like this my dialog Any ideas why my dialog looks different? I reviewed the tutorials and my xml code looks the same as…
0
votes
1 answer

How to force an update of the main activity from 'outside' in android?

This question is a kind of followup on this unanswered question with more and better details. Basically, I have an android main activity showing some data which are taken from a database (via SQLiteDatabase). Now I have a PreferenceActivity which…
Alex
  • 41,580
  • 88
  • 260
  • 469
0
votes
1 answer

How to programatically create wifi connection os setting dialog

I want to design an app which shows a list of wifi networks available and it shows the wifi connection setting dialog box when it is selected. Can anyone please tell me how to do this?
0
votes
0 answers

ClassCastException - findViewById(android.R.id.content) in Honeycomb

I have been using the following code rather successfully to support a material design PreferenceActivity, but today I got a log file from a user with a ClassCast exception. I am unable to reproduce it, but suspect it may have to do with her device…
0
votes
1 answer

android settings fragment view like a card layout

I have the following Settings fragment which looks like below: I want to have the Preference categories displayed as separate card layouts like the following picture: Please ignore the inner pictures from the latest image, only the layout is…
0
votes
3 answers

Android :Enable location settings programatically with out leaving app or going to settings screen

Maybe already answered, but is there official apis to Enable location settings programatically with out going to settings screen. what are best approach which works from 2.3 and above android version Thanks NitZ
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
0
votes
1 answer

How to get storage information programatically in android?

Is it possible to get the info from Settings -> Storage in android and use it in my app? What I have so far is total space and available space, but I want to get also the space taken by apps, photos, downloads, etc. : public class MainActivity…
0
votes
2 answers

How can I refresh view after a setting is changed?

I have an app that displays distances and volumes. I have a SettingsFragment that allows me to choose the units for distance, mile or km, and for volume, gallon or liter. Changing between units works but not right away, I have to flip the phone or…
Crismar
  • 63
  • 1
  • 7
0
votes
1 answer

Set Fingerprint as the quality of the password policy on Android

Is there a way on Android for a device admin application to only allow fingerprints as the password policy of the device?
lyc001
  • 777
  • 1
  • 10
  • 25
0
votes
1 answer

EditText in customPreference is not getting focused

Created a customPreference in settings in which summary is "EditText" field. When it is clicked , view scrolls up for the keyboard and editText is not getting focussed. How to focus editText?
quest
  • 447
  • 2
  • 7
  • 20
0
votes
1 answer

Return to previous screen from Settings, using the actionbar

Is it possible to change the back button in the actionbar, to go to the previous activity rather than the parent activity? I'm relatively new to Android, so forgive me if this is a basic question! I've searched for this, but unable to find any…
MEM
  • 25
  • 4