Background
I\'ve had problems for quite a while now with players cheating in my android game. For a strict single-player game this wouldn\'t be a big is
try{ ApplicationInfo info = getPackageManager(). getApplicationInfo("com.cih.gamecih", 0 ); return true; } catch( PackageManager.NameNotFoundException e ){ return false; }
If this function returns true, don't even let the hacker enter Multiplayer mode, and prompt him to uninstall it.