Back to project page SelfossAndroidClient.
The source code is released under:
GNU General Public License
If you think the Android project SelfossAndroidClient 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 org.vester.selfoss; // w w w.j av a2s . c o m import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; public class StartupActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Class<? extends Activity> activityClass; if (clientIsConfigured()) activityClass = FeedEntryMainActivity.class; else activityClass = SetupActivity.class; Intent newActivity = new Intent(getApplicationContext(), activityClass); startActivityForResult(newActivity, 1); } private boolean clientIsConfigured() { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); return !prefs.getString(SettingsActivity.URL, SettingsActivity.URL_DEFAULT).equals(SettingsActivity.URL_DEFAULT); } }