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

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

python - PyQt: Label not showing correct number of length -