@Override public void onCreate(Bundle icicle) { // onCreate - save the instance state super.onCreate(icicle); // Set sharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); PublicUtils.restoreCookies(this, icicle); // Setup the locale PublicUtils.setupLocale(this, sharedPreferences); // Set the content view setContentView(R.layout.forum_search_view); // Prepare to tango this.layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); // Get the elements buttonSearch = (Button) findViewById(R.id.button_search); fieldSearch = (EditText) findViewById(R.id.field_search); // Threads! threads = new ArrayList<ForumSearchResult>(); setupList(threads); }
@Override public void onCreate(Bundle icicle) { // onCreate - save the instance state super.onCreate(icicle); // Set sharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); PublicUtils.restoreCookies(this, icicle); // Setup the locale PublicUtils.setupLocale(this, sharedPreferences); // Let's put 'em there addPreferencesFromResource(R.xml.settings_view); // Set the originalInterval originalInterval = sharedPreferences.getInt(Constants.SP_BL_INTERVAL_SERVICE, 0); }