Created
October 28, 2016 10:55
-
-
Save sdglhm/7f04c9b57586c99525bf15180875b1c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Imports | |
import com.firebase.client.DataSnapshot; | |
import com.firebase.client.Firebase; | |
import com.firebase.client.FirebaseError; | |
import com.firebase.client.ValueEventListener; | |
//Firebase URL | |
private static final String FIREBASE_URL = "Your Firebase URL"; | |
private Firebase FireRef; | |
//Inside your onCreate, initiate Firebase | |
FireRef = new Firebase(FIREBASE_URL).child("your node"); | |
//Then use even value listner for your program. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment