addValueEventListener() Continue to listen to the query or link to the database to which it is bound.
But addListenerForSingleValueEvent()immediately it executes the method onDataChangeand after executing this method it stops listening to the link to which it is bound once.
source
share