Hello friends before start code we have need to declare dependency for access firebase ui component, so here is the dependency which you can put it in your gradel other wise you can add dependency as jar also.
compile 'com.firebaseui:firebase-ui-database:0.4.0'
Then after we are querying in fire...