读写自定义的数据:
ContentResolver cr = context.getContentResolver();
android.provider.Settings.System.putInt(cr, "i_name", 88);
int i  = android.provider.Settings.System.getInt(cr, "i_name");
需要权限:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
Allows an application to read or write the system settings.

posted on 2010-10-15 14:55  四渡冰点  阅读(430)  评论(0编辑  收藏  举报