摘要:
AndEngine 游戏引擎/*===================================================================================*/SimpleBaseGameActivity public EngineOptions onCreateEngineOptions(); protected void onCreateResources(); protected Scene onCreateScene();写一个Activity继承SimpleBaseGameActivity生成过程中会依次调用 onCreat... 阅读全文
摘要:
/* * 判断一个APP 是否在前台,还是在后台 */public boolean isAppOnForeground() { // Returns a list of application processes that are running on the device ActivityManager activityManager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE); String packageName... 阅读全文