Android - websocket echo example - connection lost

#1

Hi,

i’ve an error on the android echo example.

the source-code is original…

my server is the python example.

the server connection with the browser client.

Log:

07-11 23:34:43.459: W/System.err(332): java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
07-11 23:34:43.459: W/System.err(332): at android.os.Handler.(Handler.java:121)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.(Toast.java:68)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.makeText(Toast.java:231)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.alert(EchoClientActivity.java:55)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.access$3(EchoClientActivity.java:54)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity$3.onClose(EchoClientActivity.java:123)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.onClose(WebSocketConnection.java:422)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.access$2(WebSocketConnection.java:408)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection$WebSocketConnector.run(WebSocketConnection.java:93)

Whats wrong?

Can someone help?

Thanks.

0 Likes

#2

Any Progress on it???

···

On Friday, July 12, 2013 at 3:09:14 AM UTC+5:30, bluecap wrote:

Hi,

i’ve an error on the android echo example.

the source-code is original…

my server is the python example.

the server connection with the browser client.

Log:

Whats wrong?

Can someone help?

Thanks.

07-11 23:34:43.459: W/System.err(332): java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
07-11 23:34:43.459: W/System.err(332): at android.os.Handler.(Handler.java:121)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.(Toast.java:68)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.makeText(Toast.java:231)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.alert(EchoClientActivity.java:55)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.access$3(EchoClientActivity.java:54)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity$3.onClose(EchoClientActivity.java:123)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.onClose(WebSocketConnection.java:422)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.access$2(WebSocketConnection.java:408)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection$WebSocketConnector.run(WebSocketConnection.java:93)

0 Likes

#3

Hi!

Autobahn>Android is a bit of a backwater for us - and has been for a while. This is mainly down to resource limitations, not because we consider Android to be unimportant in any way.

If this is a bug which occurs with demo code we provide, then I suggest you file an issue on the GitHub bug tracker - https://github.com/tavendo/AutobahnAndroid/issues

Regards,

Alex

···

Am Sonntag, 6. September 2015 20:23:16 UTC+2 schrieb Game Ninja:

Any Progress on it???

On Friday, July 12, 2013 at 3:09:14 AM UTC+5:30, bluecap wrote:

Hi,

i’ve an error on the android echo example.

the source-code is original…

my server is the python example.

the server connection with the browser client.

Log:

Whats wrong?

Can someone help?

Thanks.

07-11 23:34:43.459: W/System.err(332): java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
07-11 23:34:43.459: W/System.err(332): at android.os.Handler.(Handler.java:121)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.(Toast.java:68)
07-11 23:34:43.459: W/System.err(332): at android.widget.Toast.makeText(Toast.java:231)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.alert(EchoClientActivity.java:55)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity.access$3(EchoClientActivity.java:54)
07-11 23:34:43.459: W/System.err(332): at de.tavendo.autobahn.echoclient.EchoClientActivity$3.onClose(EchoClientActivity.java:123)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.onClose(WebSocketConnection.java:422)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection.access$2(WebSocketConnection.java:408)
07-11 23:34:43.469: W/System.err(332): at de.tavendo.autobahn.WebSocketConnection$WebSocketConnector.run(WebSocketConnection.java:93)

0 Likes