Back to project page Twitter-News.
The source code is released under:
Apache License
If you think the Android project Twitter-News 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.kaplandroid.twitternews; // ww w.jav a2s . c o m /** * * @author KAPLANDROID * * Singleton Class for app settings * */ public class AppData { private int lastNewsID; private String lastKeyword; public static final int FEEDBACK_COOL = 1; public static final int FEEDBACK_BORING = 2; private static AppData ref; private Long lastSinceId; private AppData() { } public static AppData getInstance() { if (ref == null) ref = new AppData(); return ref; } public String getLastKeyword() { return lastKeyword; } public void setLastKeyword(String lastKeyword) { this.lastKeyword = lastKeyword; } public int getLastNewsID() { return lastNewsID; } public void setLastNewsID(int lastNewsID) { this.lastNewsID = lastNewsID; } public void increaseNewsIDBy1() { this.lastNewsID++; } public Long getLastSinceId() { return lastSinceId; } public void setLastSinceId(Long lastSinceId) { this.lastSinceId = lastSinceId; } }