package org.fox.ttrss; import org.fox.ttrss.types.Article; import org.fox.ttrss.types.ArticleList; import org.fox.ttrss.types.Feed; import android.app.Application; public class GlobalState extends Application { private static GlobalState m_singleton; public Article m_activeArticle; public ArticleList m_loadedArticles = new ArticleList(); public Feed m_activeFeed; public Article m_selectedArticle; public int m_selectedArticleId; public static GlobalState getInstance(){ return m_singleton; } @Override public final void onCreate() { super.onCreate(); m_singleton = this; } }