Back to project page RSSFeedReader-App.
The source code is released under:
GNU General Public License
If you think the Android project RSSFeedReader-App 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 tan.chesley.rssfeedreader; /*from w ww. java 2 s. c o m*/ import android.app.ActionBar; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class SettingsActivity extends Activity { public static final String KEY_PREF_MAX_ARTICLE_NUMBER = "tan.chesley.rssfeedreader.keyprefmaxarticlenumber"; public static final String KEY_PREF_ARTICLE_AGE_LIMIT = "tan.chesley.rssfeedreader.keyprefarticleagelimit"; public static final String KEY_PREF_SYNC_TIMEOUT = "tan.chesley.rssfeedreader.synctimeout"; public static final String KEY_PREF_MAX_DATABASE_SIZE = "tan.chesley.rssfeedreader.maxdatabasesize"; public static final String KEY_PREF_AUTOSYNC_INTERVAL = "tan.chesley.rssfeedreader.autosyncinterval"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); BrightnessControl.toggleBrightness(getApplicationContext(), this); getFragmentManager().beginTransaction().replace(android.R.id.content, new SettingsFragment()).commit(); getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_USE_LOGO | ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_HOME_AS_UP); int titleId = getResources().getIdentifier("action_bar_title", "id", "android"); TextView title = (TextView) findViewById(titleId); if (title != null) { setTitle(R.string.settingsTitle); title.setTextColor(getResources().getColor((R.color.AppPrimaryTextColor))); } } }