how to prevent the app from creating a new listener if a listener already exists

112
October 27, 2018, at 00:40 AM

I am using firebase real time database in my android app . I am having fragments in my app . I found that if I opened a fragment and its data loaded and then I opened another fragment for about 5 second then reopen the first fragment again the data loads from the begging in the first fragment. I need a way to prevent this from happens since the listener isn't removed yet

READ ALSO
How to send Jsoup Document in an Intent?

How to send Jsoup Document in an Intent?

I'm having trouble sending objects in intentsI read that gsoup is one method to accomplish this task but I haven't been able to make it work

110
Opening youtube links gives activityNotFound Error Android

Opening youtube links gives activityNotFound Error Android

So i have made an app that has the best youtube videos to learn programming

122
Prevent Google's SignIn button in Android to be hit several times

Prevent Google's SignIn button in Android to be hit several times

I'm using the Google SignIn button in AndroidI followed the instructions from the page

88
Want to get repeated data in a single row

Want to get repeated data in a single row

I want to get repeated rows in a single row,below is my table

80