Settings application

by Abhinav » Sat, 17 Apr 2010 06:16:27 GMT

Sponsored Links
 I was exploring the settings application in android and found that the
system settings were getting stored in two places, one in settings.db
database and the other in settings_preferences.xml file

Most of the settings are persisted in the database while a few are
persisted in a shared preferences file.

Any idea why this is done? Why not persist everything in the database?


Settings application

by Dianne Hackborn » Sat, 17 Apr 2010 06:26:50 GMT

 Settings are stored in a lot of different places, depending on what they
are.  It is done for access control reasons (the settings db is word
readable, but some things should not be accessible to everyone), convenience
(specific internal settings for a particular component), and other reasons
such as sharing access with native code.


Sponsored Links

Settings application

by FrankG » Mon, 19 Apr 2010 16:30:18 GMT

 Hello Dianne,

Can I read somewhere more about this handling of system settings and
how is it designed ?

Thanks  alot !


> >

Other Threads

1. Layout Buttons have no gradient on Droid X

I developed a simple app on my Droid (os v2.2.2).  The homepage has 4
buttons on it that display the default gradient gray background.
Everything looks great.  When I install the app on any of our in-
office Motorola Droid X (os v2.2 and v2.2.1) phones, the buttons are
dark with no gradient.

I've combed the forums, created a new hello world default project and
added a single button to confirm that it wasn't something goofy I did
in my app, and even tried manually setting the background color of the
button (see below).


Everything looks great on the Droid, all buttons look dark and lack
gradient on the Droid X.

What am I missing???



2. Ask: Re format file system

Salam all,

Follow up thread ini,

Apakah mungkin file system internal seperti di handset saya moto defy di
reformat untuk lebih cepat readnya.

Mohon share dari rekan sekalian


Sumber diambil dari

Tips dari artikel tersebut sudah saya coba pada journey dan dell streak.
Memang berhasil jadi sampai lebih dari 2x lipat.

Intinya edit file /sys/devices/virtual/bdi/179:0/read_ahead_kb.
ROM umumnya akan berisi 128, ganti isinya jadi 2048.
Tidak perlu (jangan) reboot.

Ganti file bisa menggunakan root explorer, adb, atau cara lain - whatever.

Tapi cara ini hanya {*filter*}tara. HH reboot maka setting akan kembali. Untuk
jadi permanen, silahkan baca lebih lanjut dari sumbernya.

Sent from IggyTab with K-9 Mail. Tiada duanya.



3. Amazon Rejected My App - "Missing application identifier"?

4. Repair It! Games

5. Creator problem using location.

6. java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

7. Layout Buttons dark and have no gradient on DroidX