Last active
July 4, 2018 20:47
-
-
Save AasemJS/8bd60474093988e001ce9f7a40bb4789 to your computer and use it in GitHub Desktop.
Basic Intent Functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.aasemjs.intentbasic; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
public class Main2Activity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main2); | |
} | |
public void buttonBack(View view){ | |
Intent i2 = new Intent(Main2Activity.this, MainActivity.class); | |
Main2Activity.this.startActivity(i2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment