I’m working on a multiplayer android game using SpiderMonkey.
However,network crashes and console returns this error:
Lurking on the internet i found some docs talking about the AsyncTask class on Android’s API. It has to be used as Android>3.0 doesn’t support networking on main thread.
However i don’t know how to implement this in a JME game using SpiderMonkey. I’m pretty sure there’s a way to solve this issue but i can’t find it.
Before everyone can ask,yes,i added those lines to manifest:
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />