I am developing a georreferenced game using SmartFoxServer and Google Maps API V1. Everything was ok but few days ago Google has launched Google Maps API V2 and we must use it in the game. SmartFox is instantiated in a class what extends of FragmentActivity (Android Support Library) and from this time, dispatch method from IEventListener Interface is not working. Before everything was ok. If I remove FragmentActivity extends, game works properly again. So, because of that I think what is wrong could be related with FragmentActivity and the fact of make running dispatch on UI thread.

I am new using Fragment, but I have tried to implement my own class extending of Fragment class, and I have used FragmentActivity in main class where sfsClient is (i have tried to imitate Google Map Api v2 structure). The result is everything works ok using my own Fragment. So, I think it's a problem beetween sfsClient and com.google.android.gms.maps.SupportMapFragment.

The incidence has been resolved. It was due of thread what is connecting with smartfoxserver ( sfsClient.connect(ip,port) ) had not context class loader seted. So, we had to set its loader class properly with setContextClass(ClassLoader cl) method and now is working.