Android Open Source - Wordlist-Builder Start Activity






From Project

Back to project page Wordlist-Builder.

License

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.

Java Source Code

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();
  }

}




Java Source Code List

com.wissenways.wordlistbuilder.AddWordClass.java
com.wissenways.wordlistbuilder.CompleteListAdapter.java
com.wissenways.wordlistbuilder.DbHelper.java
com.wissenways.wordlistbuilder.EditWordClass.java
com.wissenways.wordlistbuilder.MyListAdapter.java
com.wissenways.wordlistbuilder.Row.java
com.wissenways.wordlistbuilder.StartActivity.java
com.wissenways.wordlistbuilder.WordDetailActivity.java
com.wissenways.wordlistbuilder.WordListTabWidget.java