java - Firebase cannot save any data -


I'm just trying to do a simple test in the firebase and save a hashp that has a string and boolean, but I can not save data, it is never pushed.

Unboots all the tasks on the Firebase background threads when events go on JVM, Is removed on the thread, neither on the main thread. It is likely that any background threads are actually expiring your simple test application before doing any work.

You have to make sure that the firebase can actually eliminate the requested operation, so that you can complete the sync parameters (eg, with something like setValue (...) Try waiting for:

  Public stable firebay ref = = new firebase ("https: //shs-newspaper. Firebaseio.com//").child("News") ; Public static zero main (string [] args) {Final Semaphore Semifar = New Semaphore (0); Ma Picture & lt; string, boolean & gt; test = new hashmap & lt; string, boolean & gt; (); test.put ("test", true); Ref.setValue (test, new Firebase.CompletionListener) @Override complete on Public Zero (FirebaseError Error, Firebase ref) {semaphore.release ();}}); ref.setValue (test); semaphore.acquire ();}  

Comments