Note that there are some explanatory texts on larger screens.

plurals
  1. POFirebase listener not working
    text
    copied!<p>I'm testing the new Firebase library for Android, and unfortunately it's not working, here is the code that i put on the onCreate MainActivity.method :</p> <pre><code>Firebase ref = new Firebase("https://mydatabase.firebaseio.com/"); // Read data and react to changes ref.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot snap) { Log.e("FIREBASE", snap.getName() + " -&gt; " + snap.getValue()); } @Override public void onCancelled() { } }); </code></pre> <p>Output : no message displayed and debug error :</p> <pre><code>07-15 00:01:49.020: D/ActionBarSherlock(13362): [callbackPrepareOptionsMenu] returning true 07-15 00:01:49.020: D/ActionBarSherlock(13362): [dispatchPrepareOptionsMenu] returning true 07-15 00:01:49.370: D/dalvikvm(13362): GC_CONCURRENT freed 263K, 4% free 9700K/10055K, paused 20ms+4ms 07-15 00:01:49.830: D/WebSocket(13362): ws_0 - closed with code -1 and reason: 07-15 00:01:49.830: D/WebSocket(13362): ws_0 - closing itself 07-15 00:01:49.830: D/Connection(13362): conn_0 - Realtime connection failed 07-15 00:01:49.830: D/Connection(13362): conn_0 - closing realtime connection 07-15 00:01:49.830: D/PersistentConnection(13362): pc_0 - Got on disconnect 07-15 00:01:49.830: D/PersistentConnection(13362): pc_0 - Reconnecting in 0ms 07-15 00:01:49.830: D/ViewManager(13362): Raising events for /.info/connected 07-15 00:01:49.830: D/ViewManager(13362): Marking queries complete for /.info/connected 07-15 00:01:49.830: D/ViewManager(13362): Marking queryMap complete:null 07-15 00:01:49.840: D/Connection(13362): conn_1 - Opening a connection 07-15 00:01:50.670: D/WebSocket(13362): ws_1 - closed with code -1 and reason: 07-15 00:01:50.670: D/WebSocket(13362): ws_1 - closing itself 07-15 00:01:50.670: D/Connection(13362): conn_1 - Realtime connection failed 07-15 00:01:50.670: D/Connection(13362): conn_1 - closing realtime connection 07-15 00:01:50.670: D/PersistentConnection(13362): pc_0 - Got on disconnect 07-15 00:01:50.670: D/PersistentConnection(13362): pc_0 - Reconnecting in 342ms 07-15 00:01:50.670: D/ViewManager(13362): Raising events for /.info/connected 07-15 00:01:50.670: D/ViewManager(13362): Marking queries complete for /.info/connected 07-15 00:01:50.670: D/ViewManager(13362): Marking queryMap complete:null </code></pre> <p>PS : I put the INTERNET permission on the AndroidManifest file.</p> <p>PS 2 : I downloaded the chat example and it's not working too.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload