/* StartingPoint.java * ================== */ package ch.maden.dm001; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.Button; /* Added to get "Button" defined */ import android.widget.TextView; /* Added to get "TextView" defined */ public class StartingPoint extends Activity { /* Called when the activity is first created. */ int counter; /* A defined integer */ Button add, sub; /* Defined buttons */ TextView display; /* A defined TextView */ @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate (savedInstanceState); setContentView (R.layout.activity_starting_point); counter = 0; add = (Button) findViewById (R.id.bAdd); sub = (Button) findViewById (R.id.bSub); display = (TextView) findViewById (R.id.tvDisplay); } @Override public boolean onCreateOptionsMenu (Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate (R.menu.starting_point, menu); return true; } }