Android Open Source - Wordilizer Menu






From Project

Back to project page Wordilizer.

License

The source code is released under:

Apache License

If you think the Android project Wordilizer 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.wordilizer;
// w  w  w.  j  av  a 2  s.c om
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Menu extends ListActivity{

  String classes[] = {"DeckSize","SearchableDictionary","GitHubDifficult","GitHubMedium","GitHubEasy","Progress","AboutUs","SpecialList"};
  String names[]={"Select Deck Size","Search Word","Difficult","Medium","Easy","Progress","About Us","Beta test"};
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setListAdapter(new ArrayAdapter<String>(Menu.this,android.R.layout.simple_list_item_1, names));
    
  }

  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
    // TODO Auto-generated method stub
    
    super.onListItemClick(l, v, position, id);
    String cheese= classes[position];
    @SuppressWarnings("rawtypes")
    Class ourClass;
    try {
      ourClass = Class.forName("com.wordilizer."+ cheese);
      Intent ourIntent = new Intent(Menu.this, ourClass);
      startActivity(ourIntent);
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }

  
}




Java Source Code List

com.wordilizer.AboutUs.java
com.wordilizer.DataBaseHelper.java
com.wordilizer.DataBig.java
com.wordilizer.DeckSize.java
com.wordilizer.DictionaryDatabase.java
com.wordilizer.DictionaryProvider.java
com.wordilizer.Easy.java
com.wordilizer.GitHub4000.java
com.wordilizer.GitHub800.java
com.wordilizer.GitHubDifficult.java
com.wordilizer.GitHubEasy.java
com.wordilizer.GitHubMedium.java
com.wordilizer.GitHub.java
com.wordilizer.MainActivity.java
com.wordilizer.Menu.java
com.wordilizer.MyDatabase.java
com.wordilizer.Progress.java
com.wordilizer.SearchableDictionary.java
com.wordilizer.SpecialList.java
com.wordilizer.Splash.java
com.wordilizer.WordActivity.java
com.wordilizer.WordShow.java