Home > Mobile >  FirstActivity jump to SecondActivity
FirstActivity jump to SecondActivity

Time:10-07


Example, after clicking the Button in FirstActivity jump to SecondActivity, code is as follows:

For the setOnClickListener (new View. An OnClickListener () {
@ Override
Public void onClick (View v) {
Intent Intent=new Intent (FirstActivity. This, SecondActivity. Class);
startActivity(intent);
}
});
  • Related