I am facing the above problem on my handler which checks every time if your logged in but I am facing that problem how can I solve that?
Guys I have tried several methods but I am still getting the same problem it's the splash screen which checks every time so, the app is getting crash.
Here is my welcome screen
```public class WelcomeScreen extends AppCompatActivity {
    private ImageView logo;
    private FirebaseAuth firebaseAuth;
    private FirebaseDatabase firebaseDatabase;
    private static int SPLASH_TIME_OUT = 5000;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setFullscreen ();
        setContentView (R.layout.welcomescreen);
        firebaseAuth = FirebaseAuth.getInstance ();
        final String user_id = firebaseAuth.getCurrentUser ().getUid ();
         final FirebaseUser firebaseUser = firebaseAuth.getInstance ().getCurrentUser ();
        firebaseDatabase = FirebaseDatabase.getInstance ();
       final DatabaseReference databaseReference = firebaseDatabase.getReference ().child ("Users").child (user_id);
        logo= findViewById (R.id.logoocaap);
        Animation animation = AnimationUtils.loadAnimation (this,R.anim.splashscreen);
        logo.startAnimation (animation);
       new Handler ().postDelayed (new Runnable () {
           @Override
           public void run() {
               //check if there's internet connection
               checkConnection();
               if(firebaseUser != null)
               {
                   databaseReference.addValueEventListener (new ValueEventListener () {
                       @Override
                       public void onDataChange(@NonNull DataSnapshot dataSnapshot) {```
 
     
     
    
