Search found 13 matches

by cslwkah
11 Mar 2011, 05:19
Forum: SFS2X Java / Android API
Topic: Android and String.isEmpty() java.lang.NoSuchMethodError
Replies: 22
Views: 16829

hi krzysztof,

I can not connect to server using android api too. It makes a handshake and then auto disconnect.

May you post your code here so we can learn? or what magic you did for that?
by cslwkah
04 Mar 2011, 12:02
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 16392

Yes. All jar in the zip file are put into my project. I think, not all default java class are supported in android. Please check here to see which class are supported. http://developer.android.com/reference/packages.html for example, net.sf.json.JSONObject is required in your library, but normally i...
by cslwkah
04 Mar 2011, 03:19
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 16392

My client side is run on android emulator. it is the logcat result in android. 03-04 03:08:09.303: INFO/ActivityManager(52): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.test.android.multiplayer/.BasicClientExam...
by cslwkah
03 Mar 2011, 03:48
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 16392

Still can not connect.... Please help :cry: I change the ip to 192.168.0.106 in connect() method, and nothing come back at first. Then I see the log in sfs2x change. 03 3月 2011 13:15:30,888 INFO [main] smartfoxserver.v2.SmartFoxServer - SmartFoxServer 2X (2.0.0-RC1b) READY! 03 3月 2011 13...
by cslwkah
02 Mar 2011, 15:15
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 16392

Loading config file in android

I try to test the api in android but don't know how to load the config file. I put the sfs-config.xml under asset folder then call sfs.loadConfig("file:///android_asset/sfs-config.xml", true); Get an exception: 03-02 16:42:57.575: WARN/System.err(248): java.io.IOException: ...
by cslwkah
01 Mar 2011, 13:12
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

what's the status now?
by cslwkah
27 Feb 2011, 14:53
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

thanks for your effort. Em...a bit complex, I think. You need to install the android sdk, create a new Android Virtual Devices(AVD), create a test app using the api and deploy it to your AVD. Download the sdk: http://developer.android.com/sdk/index.html Guide to create the avd and deploy project: ht...
by cslwkah
27 Feb 2011, 02:04
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

any update of the android api?
by cslwkah
23 Feb 2011, 00:24
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

thanks ThomasLund, I would wait for your release.

PS: I also test the code in pure java this morning and it seems no problem. Nice work. :lol:
by cslwkah
22 Feb 2011, 10:18
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

thanks lapo and ThomasLund After several try, I still can not run my android project. I remove slf4j-api-1.5.10.jar and slf4j-log4j12.jar. Then download and add slf4j-android-1.6.1-RC1.jar into project. Here is my log. Actually the error is exactly the same as using the original slf4j*.jar files... ...
by cslwkah
22 Feb 2011, 09:29
Forum: SFS2X Java / Android API
Topic: Java client API
Replies: 29
Views: 17009

Thanks for your effort. Anyone test this beta release? It is a java version file but my project is written in android. So I convert it to a simple android test project and found 2 error. 1. Compile error happened when I first compile the code in eclipse as an new android project. The log4j jar cause...
by cslwkah
22 Feb 2011, 02:46
Forum: Java2SE / Android Client API
Topic: SFS2 for android?
Replies: 0
Views: 3594

SFS2 for android?

Does the new SFS2 update available for android?

I download the android api example and get SFS2 installed in my server. I can telnet the server but my android example can not connect it.

Any idea?
by cslwkah
21 Feb 2011, 10:50
Forum: Java2SE / Android Client API
Topic: help getting started with client java
Replies: 3
Views: 6318

I'm a new user of SFS. I know it is an old post but it is the post I found when I search "tutorial" in android forum. And I see there is no answer for over one year so I just answer. Answer: Go to http://www.smartfoxserver.com and select product->API central There are some API package. Cho...

Go to advanced search