Advertisements
//check whether the user is logged in if (currentUser != null) { //if logged in the start the Profile activity Intent intent = new Intent(MainActivity.this, ProfileActivity.class); startActivity(intent); finish(); }
//check whether the user is logged in if (currentUser != null) { //if logged in the start the Profile activity Intent intent = new Intent(MainActivity.this, ProfileActivity.class); startActivity(intent); finish(); }