SharedPreferences保存对象和list数据

使用google的gson,能够把对象转换成json字符串,这样就能够使用SharedPreferences保存数据。java 使用时,请先下载gson的jar包。android 代码以下:json package com.example.app; import android.content.Context; import android.content.SharedPreferences;
相关文章
相关标签/搜索