xiaomingchen / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 0 forks source link

Android client does not connect to server #183

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start jWebSocketServer
2. Import libs from demo sources into eclipse
3. Write simple App which just connects to the local server
4. Run on Android 4.0.3

Connection is closed about 0.1s after invoking open() (actually the phone does 
not even try to connect to the server). 

Importing the Android-Demo sources into Eclipse leads to multiple errors, many 
"@Overwrite"s have to be removed in order to compile the project. The app shows 
in the log "connecting... closed".

The .apk package available on the website works but starting any activity with 
cam/video is crashing the app.

Version: 1.0 beta 8 (nb20507)
OS: Debian amd64
Smartphone: Google Nexus S

Original issue reported on code.google.com by mail...@googlemail.com on 26 Jun 2012 at 9:17

GoogleCodeExporter commented 9 years ago
BaseTokenClient.open() is catching all exceptions and doing only 
notifyClosed(lEvent). In my case - NetworkOnMainThreadException. 

Original comment by mail...@googlemail.com on 3 Jul 2012 at 8:32

GoogleCodeExporter commented 9 years ago
Any solution?

Original comment by rojano.e...@gmail.com on 12 Nov 2013 at 6:23