skip to Main Content

Firebase – How to set the codes to check If the user has signed in before, start the MainActivity.class, else the StartActivity.class

import com.google.firebase.auth.FirebaseUser; /** * Loading screen activity */ public class SplashActivity extends AppCompatActivity { private FirebaseUser currentUser; Handler handler; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); handler=new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { if ( currentUser…

VIEW QUESTION
Back To Top
Search