Please keep the below code out side of your onCreate()
method
btSignup.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent up = new Intent(MainActivity.this,Registration.class);
startActivity(up);
}
});
More Related Contents:
- Start and Close single Activity from BroadcastReceiver
- How to manage startActivityForResult on Android
- How to send an object from one Android Activity to another using Intents?
- How to start new activity on button click
- Android: Go back to previous activity
- Using Intent in an Android application to show another activity
- How can I return to a parent activity correctly?
- How do I pass data between Activities in Android application?
- Finish an activity from another activity
- Passing arraylist of objects between activities
- How to bring an activity to foreground (top of stack)?
- New Intent() starts new instance with Android: launchMode=”singleTop”
- How to make notification intent resume rather than making a new intent?
- Launch Skype from an App Programmatically & Pass Number – Android
- “Failure Delivering Result ” – onActivityForResult
- Android:Passing a hash map between Activities
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- Where/How to getIntent().getExtras() in an Android Fragment? [duplicate]
- Android: Capturing the return of an activity
- Trying to UNINSTALL_SHORTCUT but shortcut won’t go away
- What is the meaning of android.intent.action.MAIN?
- Why does FLAG_ACTIVITY_CLEAR_TOP not work?
- Start Activity Using Custom Action
- Advantages of using Bundle instead of direct Intent putExtra() in Android
- Kotiln: pass data from adapter to activity
- Passing a List to another Activity in Android
- Using startActivityForResult, how to get requestCode in child activity?
- Android: No Activity found to handle Intent error? How it will resolve
- Android: startActivityForResult & setResult for a view class and an activity class
- Update tabs from a tab’s activity in a Android TabHost