views:

141

answers:

1

Hello, Jeff Sharkey in this post (http://goo.gl/G3wt) shows how to create save application preferences in database by hack on PreferenceActivity.

It said i can use a ContentProvider, too.

Can you give me an example on how to save preferences from PreferenceActivity to ContentProvider?

thanks

+1  A: 

A ContentProvider is a sort of coding protocol how to access data from various storage types, such as data from database, files, xml, fetched from network etc.

I would not search for this example as it's not advised for Preferences. Just stick either with the inbuilt way, or how you have seen on the linked resources.

Pentium10

related questions