Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.myapplication;
- import android.content.Intent;
- import android.os.Bundle;
- import android.view.View;
- import androidx.appcompat.app.AppCompatActivity;
- public class SecondActivity extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_second);
- }
- public void openFirst(View view) {
- Intent intent = new Intent(this, FirstActivity.class);
- startActivity(intent);
- finish();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement