Back to project page Wordlist-Builder.
The source code is released under:
Apache License
If you think the Android project Wordlist-Builder 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.wissenways.wordlistbuilder; //from w w w . j a va2s.c o m import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; public class StartActivity extends Activity { public static final String PREFS_NAME = "MyPrefsFile"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); boolean dialogShown = settings.getBoolean("dialogShown", false); if (!dialogShown) { // AlertDialog code here SharedPreferences.Editor editor = settings.edit(); editor.putBoolean("dialogShown", true); editor.commit(); Intent i = new Intent(StartActivity.this, AddWordClass.class); startActivity(i); } else { Intent i = new Intent(StartActivity.this, WordListTabWidget.class); startActivity(i); } } @Override protected void onPause() { finish(); super.onPause(); } }