> I looked into some examples of sharing data to other apps using > content Provider. All these examples talks about sharing sqlite dbs. I > need to share data under shared Preferences of my app to other apps > using content Provider.
Why? Other than the UI framework, shared preferences are significantly worse than a database -- for example, they are just stored in an XML file and so are not transactional. In fact, I'd love to spend some time someday creating a database-backed SharedPreferences and figuring out how to get the preference UI to work with one of those. > Can I use content Provider to do that ?. Sure -- just implement the required ContentProvider methods (e.g., query()). I don't recommend it, and the resulting provider will probably be limited (e.g., no support for WHERE clauses, unless you're rolling your own SQL interpreter), but you can do it. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

