android - How do I obtain data from Firebase database without an event being triggered? -


i'm creating app school project , have issues getting data firebase database. have data stored in database need retrieve. however, in guide seem find information on how data when event triggered. want data retrieved automatically e.g. when open homescreen of app or when scroll down window update homescreen.

it possible there explanation in guide, if so, have not been able grasp it. thorough description of solution appreciated!

regards, andreas

due asynchronous nature of firebase possible way retrieve data.

when make request firebase, data isn't instantly available. when data becomes available, firebase trigger event , pass data. unfortunately there no way around this.

people deal showing sort of activity indicator until data has been retrieved.

i hope answers question!


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -