Back to project page hackfmi-ragdoll-physics.
The source code is released under:
GNU General Public License
If you think the Android project hackfmi-ragdoll-physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.midtownmadness.bubblecombat; //from www . j av a 2s . c o m import android.app.Application; import android.content.Context; import com.midtownmadness.bubblecombat.multiplay.MultiplayManager; public class GlobalContext extends Application { private MultiplayManager multiplayManager; @Override public Object getSystemService(String name) { if (MultiplayManager.SERVICE_NAME.equals(name)) { if (multiplayManager == null) { multiplayManager = new MultiplayManager(this); } return multiplayManager; } return super.getSystemService(name); } public void onGameClose() { multiplayManager.close(); } }