android tutorial - Start another activity in Android Intent | Developer android - android app development - android studio - android app developement



Start another activity - Hello World of intents

public class CurrentActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.current_activity);
        
        Intent intent = new Intent(this, DestinationActivity.class);
        startActivity(intent);
    }
}
click below button to copy code from our android learning website - android tutorial - team

Related Searches to Start another activity in Android Intent