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 !

  Frank






> >



Other Threads

1. My application has died when I started to use Browser

Can u attach the DDMS log here..






-- 
Best Regards
Nagaraj

--~--~---------~--~----~------------~-------~--~----~

2. Widget configuration

Hello,
    I have 2 questions related to configuring widgets. I'd really
appreciate any help/pointers.

1) I use AppWidget Configuration Activity to get the user preferences
and when the user clicks 'Done', I add the widget on to the home
screen. Now when the user clicks on the widget, I want to take the
user back to the configuration screen. Is that possible? Currently, I'
trying to send an intent from the widget class to the the
configuration activity but the configuration screen does not come up.

2) In the configuration step, I take a timezone value from the user
and I want to add a clock widget (I have a custom class for the clock)
that displays the time for this timezone. My clock class is very
similar to android AnalogClock class except that, this has an
additional setTimeZone method. I use this clock class in the layout
file, from which the RemoteView is created. As far as I understand
there is no way to configure the timezone through RemoteViews
(RemoteViews supports only very few methods like setting text, image
etc).
If I send an intent to the clock class to configure the timezone,
would it be possible to configure each instance of the widget to a
different timezone? Or is there a way to achieve this, through
RemoteView itself? Any pointers will be of great help.

Thanks!!

--~--~---------~--~----~------------~-------~--~----~

3. SingleTask, SingleTop how to properly implement a GUI

4. SingleTask, SingleTop how to properly implement a GUI

5. How to add external jar without Eclipse?

6. Obscenities in dictionary apps

7. for Google attention