Sunday, 19 February 2017

How to call one Activity to another Activity in Android

How to call one Activity to another Activity in Android

Intent intent = new Intent(getApplicationContext(), HomeActivity.class);
                    startActivity(intent);

OR

Intent intent = new Intent(this, HomeActivity.class);
                    startActivity(intent);
OR

Intent intent = new Intent(LoginActivity.this,HomeActivity.class);
                    startActivity(intent);
OR

  startActivity(new Intent(getApplicationContext(), HomeActivity.class));


0 comments:

Post a Comment