Created
April 8, 2014 22:44
-
-
Save bgorkowy/10204320 to your computer and use it in GitHub Desktop.
Shared Preference util class starting body, using Android Annotations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.androidannotations.annotations.sharedpreferences.DefaultInt; | |
import org.androidannotations.annotations.sharedpreferences.DefaultString; | |
import org.androidannotations.annotations.sharedpreferences.SharedPref; | |
@SharedPref(value = SharedPref.Scope.APPLICATION_DEFAULT) | |
public interface PrefsUtil { | |
/** | |
* Example int preference, with default value 0 | |
*/ | |
@DefaultInt(0) | |
int exampleInt(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment