Android Open Source - timeflash Add Vocab Activity

From Project

Back to project page timeflash.


The source code is released under:

Apache License

If you think the Android project timeflash 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.derlethtully.timeflash;
/* w  ww  .j  av  a 2s .com*/
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class AddVocabActivity extends Activity {

  EditText addVocabClue;
  EditText addVocabAnswer;
  Button addVocabSaveB;
  Button addVocabQuitB;
  protected void onCreate(Bundle savedInstanceState) {
    addVocabClue = (EditText) findViewById(;
    addVocabAnswer = (EditText) findViewById(;
    addVocabSaveB = (Button) findViewById(;
    addVocabSaveB.setOnClickListener(new OnClickListener(){
      public void onClick(View v) {
        // Nothing at the moment, add the word to the vocabList eventually
        //Perhaps just the array?
    addVocabQuitB = (Button) findViewById(;
    addVocabQuitB.setOnClickListener(new OnClickListener(){
      public void onClick(View v) {

  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(, menu);
    return true;

Java Source Code List