Back to project page kvs-schema.
The source code is released under:
MIT License
If you think the Android project kvs-schema listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.android.kvs; //from w w w .j a va 2s . c o m import android.content.Context; import com.rejasupotaro.android.kvs.PrefSchema; import com.rejaupotaro.android.kvs.annotations.Key; import com.rejaupotaro.android.kvs.annotations.Table; @Table("example") public abstract class ExamplePrefsSchema extends PrefSchema { public static ExamplePrefs prefs; @Key("user_id") protected long userId = -1; @Key("user_name") protected String userName = "guest"; public static synchronized ExamplePrefs get(Context context) { if (prefs == null) { prefs = new ExamplePrefs(context); } return prefs; } }