I can execute the Connector example and connect to my SFS Server but I find the code too overload and want to make one on my own that is less complex. I have an Activity with server IP input and a Button to connect to the server and fire logs from the methods (I will send to another activity when the code work).
I'm having error output on LogCat (log.txt attached) and I want to know what can cause the problem. The last log (from the ones I fire) I recognize is:
Code: Select all
07-26 11:49:16.147: D/CR-Conectar(5290): Se va a conectar al servidor 10.0.0.100
followed by:
Code: Select all
07-26 11:49:16.225: W/System.err(5290): 5366 [New I/O client worker #1-1] INFO sfs2x.client.core.EventDispatcher - Dispatching event OnConnect to 1 listeners
07-26 11:49:16.225: W/System.err(5290): 5367 [New I/O client worker #1-1] INFO sfs2x.client.core.EventDispatcher - Dispatching event connect to 1 listeners
[b]07-26 11:49:16.241: E/dalvikvm(5290): Could not find class 'net.sf.json.JSONObject', referenced from method com.smartfoxserver.v2.protocol.serialization.DefaultSFSDataSerializer.decodeJsonObject[/b]
So I think the error is JSON related but I don't know how to solve it
Can you help me please? This [1] is my app source code if you want to get into the guts of it
Thanks in advance
[1] http://www.mediafire.com/?e55ayusse917a7i