fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Problem with websocket under Android #226

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just create a websocket with net().createWebSocket

What is the expected output? What do you see instead?

Getting the app crash with :

E/AndroidRuntime( 4321): FATAL EXCEPTION: GLThread 352
E/AndroidRuntime( 4321): java.lang.UnsupportedOperationException
E/AndroidRuntime( 4321):        at 
playn.core.NetImpl.createWebSocket(NetImpl.java:27) 
E/AndroidRuntime( 4321):        at 
com.github.dawicorti.qrcomsample.core.CommunicationScreen.<init>(CommunicationSc
reen.java:34)
E/AndroidRuntime( 4321):        at 
com.github.dawicorti.qrcomsample.core.QRComSample.init(QRComSample.java:12)
E/AndroidRuntime( 4321):        at 
playn.android.AndroidPlatform.run(AndroidPlatform.java:170)
E/AndroidRuntime( 4321):        at playn.core.PlayN.run(PlayN.java:47)
E/AndroidRuntime( 4321):        at 
com.github.dawicorti.qrcomsample.android.QRComSampleActivity.main(QRComSampleAct
ivity.java:13)
E/AndroidRuntime( 4321):        at 
playn.android.GameViewGL$3.run(GameViewGL.java:94)
E/AndroidRuntime( 4321):        at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
E/AndroidRuntime( 4321):        at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
W/ActivityManager(  249):   Force finishing activity 
com.github.dawicorti.qrcomsample.android/.QRComSampleActivity

What version of the product are you using? On what operating system?

Using PlayN 1.5. Testing on Google Nexus S - Android v4

Original issue reported on code.google.com by david.co...@gmail.com on 2 Jan 2013 at 10:10