Implement a page jump.
You can Specify a method under the button buttons in the XML layout.
Android:onclick = "SendMessage"
The SendMessage method is then defined in the corresponding Java file .
Public void SendMessage () {Intent new Intent (); Intent.setclass ( This, Nextactivity. class ); startactivity (intent);}
Or you can directly implement monitoring of the control:
Bt.setonclicklistener (new Onclicklistener () {//override its OnClick method public voidnew Intent (); Intent.setclass (This, Nextactitivy. Class); startactivity (intent);}})
You can also use the following method to pass character parameters, using the Intent.putextra () method.
Intent.putextra () method:
PutExtra ("A", B):AB is a key-value pair, the first parameter is the key name, and the second parameter is the value.
If you want to remove an object from Intent, you need to use the Get***extra ("A") method in another Activity, where the parameter is the key name,* * * represents the type of the parameter, For example, you can use the Getstringextra () method to remove a value of type String
The Android Implementation page jumps