Android Open Source - tennis-charting-android Main Activity

From Project

Back to project page tennis-charting-android.


The source code is released under:

GNU General Public License

If you think the Android project tennis-charting-android 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.inklily.tennischarting;
/**/*w  ww.j a  v a2  s .c o  m*/
 * ====
 * 5. Match review screen
 *    b. Add point.
 *    c. Insert point
 *    d. Delete all matches
 * 9. Data model
 *    b. Test first serves
 * 10. Other
 *    b. Need better undo

import android.os.Bundle;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {

    private class LaunchActivityListener implements OnClickListener {
        private Class<? extends Activity> act;
        public LaunchActivityListener(Class<? extends Activity> activity) {
            this.act = activity;

        public void onClick(View v) {
            Intent it = new Intent(MainActivity.this, act);

  protected void onCreate(Bundle savedInstanceState) {

        findViewById( LaunchActivityListener(MatchReviewActivity.class));
    findViewById( LaunchActivityListener(MatchInfoActivity.class));
        findViewById( LaunchActivityListener(HelpActivity.class));
        findViewById( LaunchActivityListener(SettingsActivity.class));

        // Spin up the db to prevent delays

  protected void onStop() {

  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