How to give intent for accessing card activity,its not taking usual class.
Below is code snippet im providing. can anyone provide me solution
pls provide a solution
thank you
Below is code snippet im providing. can anyone provide me solution
Java:
public void onClick(View v) {
if (txtUsername.getText().toString().equals("test") &&
txtPassword.getText().toString().equals("1234")) {
Toast.makeText(getApplicationContext(), "Credentials Accepted",
Toast.LENGTH_SHORT).show();
Intent i = new Intent(Login_activity.this, HelloCardActivity.class); //hellocardactivity is another card activity. and login_activity is login page
startActivity(i);
Login_activity.this.finish();
} else {
Toast.makeText(getApplicationContext(), "Wrong Credentials",
Toast.LENGTH_SHORT).show();
}
}
pls provide a solution
thank you
