如题
想通过ContentProvider查询SharedPreference内容,但是Query返回是Cursor对象
所以就不知道为怎么做了。
有什么方法解决么?
或者有更好得实现途径。谢谢了~~~
------解决方案--------------------
你直接在getSharePreference的时候把模式设置为Context.MODE_WORLD_WRITEABLE
File creation mode: allow all other applications to have write access to the created file、
或者你可以在service上搞个binder,让另一个应用使用aidl技术调用。。
ContentProvider这个做法很不好。。。