1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
public class main extends Activity {
Intent intent;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button declaration = ((Button)this.findViewById(R.id.buttondeclaration));
declaration.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
intent = new Intent(main.this,Mdeclaration.class);
startActivity(intent);
}
});
Button declaration2 = ((Button)this.findViewById(R.id.kdo));
declaration2.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent z= new Intent(main.this,MKDO.class);
startActivity(z);
}
});
}
} |