Android Open Source - NotesTrainer Main Menu






From Project

Back to project page NotesTrainer.

License

The source code is released under:

GNU General Public License

If you think the Android project NotesTrainer 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 ydirson.notestrainer;
// w ww .j av  a2  s  . c o m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import ydirson.notestrainer.Globals;

public class MainMenu extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Globals.init(this);
        setContentView(R.layout.mainmenu);
    }

    public void runTraining(View view) {
        Intent intent = new Intent(this, ReadNotes.class);
        intent.putExtra(ReadNotes.EXTRA_MODE, ReadNotes.GameMode.TRAINING);
        startActivity(intent);
    }

    public void runOneMinute(View view) {
        Intent intent = new Intent(this, ReadNotes.class);
        intent.putExtra(ReadNotes.EXTRA_MODE, ReadNotes.GameMode.ONEMINUTE);
        startActivity(intent);
    }

    public void runPrefs(View view) {
        Intent intent = new Intent(this, Prefs.class);
        startActivity(intent);
    }
}




Java Source Code List

com.robobunny.SeekBarPreference.java
ydirson.notestrainer.Globals.java
ydirson.notestrainer.MainMenu.java
ydirson.notestrainer.NoteSeekBarPreference.java
ydirson.notestrainer.Prefs.java
ydirson.notestrainer.ReadNotes.java
ydirson.notestrainer.ScoreView.java