@Override protected void onResume() { super.onResume(); PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "PlasmaSoundHDLock"); wl.acquire(); if (loadingview == null) loadingview = this.findViewById(com.rj.processing.plasmasound.R.id.loadingview); loadingview.setVisibility(View.VISIBLE); if (pdready == true) { pdready = false; if (pdman != null) pdman.onResume(readyrunnable); } readSettings(); checkAndRemindThemToGiveMeAGoodRating(); checkAndGiveThemATutorial(); if (frag != null) frag.onResume(); }