I\'m new in the android develop world. I created simple application and created a simple GUI with one button. If the user presses this button, I want to change the screen
Another way,Button in an XML graphical layout and implement a button click listener together with an onclick method. The onclick method will start a new activity using an intent.
Now go to your Class
// Locate the button in activity_main.xml
button = (Button) findViewById(R.id.buttonClick);
// Capture button clicks
button.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
// Start NewActivity.class
Intent myIntent = new Intent(getApplicationContext(),AddYourNewActivityName.class);
startActivity(myIntent);
}
});
Hope this helps .
For details http://www.vogella.com/tutorials/AndroidIntent/article.html