You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when starting a connection from android service i got this error :
04-10 13:28:47.954: E/AndroidRuntime(25438): FATAL EXCEPTION: Timer-0
04-10 13:28:47.954: E/AndroidRuntime(25438): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
04-10 13:28:47.954: E/AndroidRuntime(25438): at android.os.Handler.(Handler.java:121)
04-10 13:28:47.954: E/AndroidRuntime(25438): at de.tavendo.autobahn.WebSocketConnection$ThreadHandler.(WebSocketConnection.java:526)
04-10 13:28:47.954: E/AndroidRuntime(25438): at de.tavendo.autobahn.WebSocketConnection.(WebSocketConnection.java:65)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DdpClient.connect(DdpClient.java:151)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService.logMeIn(DriverService.java:728)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService.connectMe(DriverService.java:790)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService$BackgroundTimer.run(DriverService.java:200)
04-10 13:28:47.954: E/AndroidRuntime(25438): at java.util.Timer$TimerImpl.run(Timer.java:284)
if started from the main UI thread ,working great
The text was updated successfully, but these errors were encountered:
I setup a timer to check every X seconds that the connection is still alive and working, if the socket seems to be dead i reconnect to the server, during this reconntion i got this error, solved it withe getting the main looper and run it from the main ui thread
when starting a connection from android service i got this error :
04-10 13:28:47.954: E/AndroidRuntime(25438): FATAL EXCEPTION: Timer-0
04-10 13:28:47.954: E/AndroidRuntime(25438): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
04-10 13:28:47.954: E/AndroidRuntime(25438): at android.os.Handler.(Handler.java:121)
04-10 13:28:47.954: E/AndroidRuntime(25438): at de.tavendo.autobahn.WebSocketConnection$ThreadHandler.(WebSocketConnection.java:526)
04-10 13:28:47.954: E/AndroidRuntime(25438): at de.tavendo.autobahn.WebSocketConnection.(WebSocketConnection.java:65)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DdpClient.connect(DdpClient.java:151)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService.logMeIn(DriverService.java:728)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService.connectMe(DriverService.java:790)
04-10 13:28:47.954: E/AndroidRuntime(25438): at com.taxi.driver.DriverService$BackgroundTimer.run(DriverService.java:200)
04-10 13:28:47.954: E/AndroidRuntime(25438): at java.util.Timer$TimerImpl.run(Timer.java:284)
if started from the main UI thread ,working great
The text was updated successfully, but these errors were encountered: