Created
September 24, 2012 20:25
-
-
Save Red-Folder/3778149 to your computer and use it in GitHub Desktop.
Phonegap Service Tutorial - Part 3 - TwitterService.java - MaxID field snippet
This file contains hidden or 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
private String getMaxID() { | |
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); | |
return sp.getString("MaxID", ""); | |
} | |
private void setMaxID(String maxID) { | |
if (maxID != null) { | |
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); | |
SharedPreferences.Editor editor = sp.edit(); | |
editor.putString("MaxID", maxID); | |
editor.commit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment