public class excuse extends Activity{
String excuse[] = { "1", "2","3", "4", "5", "6","7","8", "9","10" };
Button re;
Button pre;
TextView dis;
int counter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.excuse);
re = (Button)findViewById(R.id.button1);
pre = (Button)findViewById(R.id.button2);
dis = (TextView)findViewById(R.id.textView1);
counter = 0;
counter = counter + 1;
dis.setText( " hi" + counter );
counter = counter + 1;
}
@Override
protected void onPause() {
super.onPause();
}
}
How do I save counter
somewhere so that when it changes activities and comes back it knows were counter
left off? Also, I left out the button functions for space. Also, are there any tutorials anywhere on this?