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; /* w w w . j av a2s .c o m*/ import static android.widget.Toast.LENGTH_SHORT; import android.app.Activity; import android.widget.Toast; public class BaseActivity extends Activity { @Override public Object getSystemService(String name) { Object normalSystemService = super.getSystemService(name); if (normalSystemService != null) { return normalSystemService; } Object ourSystemService = getApplicationContext() .getSystemService(name); return ourSystemService; } protected void onGameClose() { ((GlobalContext) getApplicationContext()).onGameClose(); } protected void toast(final String text) { Toast.makeText(this, text, LENGTH_SHORT).show(); } protected void toast(final int resourceId) { Toast.makeText(this, resourceId, Toast.LENGTH_SHORT).show(); } }