1 works

Intent to Start New Activity in Android Studio


dashboard+ Project

Posted by @starbucks #android #java

Code snippet:

// IntendedActivity - the file you wish to open
// CurrentActivity - the file where this code is placed  

Intent intent = new Intent (this, IntendedActivity.class);
    CurrentActivity.this.startActivity(intent);
content_copyCopy to Clipboard

More details:

Add this code snippet to an event listener.


>> Browse more code snippets

more_vert