Created
July 4, 2018 20:48
-
-
Save AasemJS/bff45c0a9b141f3764c68321f21c3d78 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 MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
} | |
public void buttonClick(View view) { | |
Intent i = new Intent(MainActivity.this, Main2Activity.class); | |
MainActivity.this.startActivity(i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment