@Override public void onStart() { super.onStart(); DoctorAdviceDB adviceDB = new DoctorAdviceDB(ECG_Android.this); Cursor cursor = adviceDB.selectDoctorAdviceByReadFlag(0); TextView tvmsg_count = (TextView) findViewById(R.id.Msg_count); tvmsg_count.setText("(" + cursor.getCount() + ")"); cursor.close(); adviceDB.close(); logger.info("onStart"); }
@Override public void onPause() { super.onPause(); logger.info("onPause"); if (isStart) { ecgShapeLine[0].setSuspendDraw(true); ecgShapeLine[1].setSuspendDraw(true); ecgShapeLine[2].setSuspendDraw(true); ecgShapeLine[3].setSuspendDraw(true); ecgShapeLine[4].setSuspendDraw(true); } // EcgBusiness.getInstance().suspendTask();//通知业务模块进行业务处理 }
@Override public void onResume() { super.onResume(); logger.info("onResume"); if (isStart) { if (drawstatus.equals(DrawStatus.ECG)) { curveChar[0].setVisibility(View.VISIBLE); ecgShapeLine[0].setSuspendDraw(false); } else if (drawstatus.equals(DrawStatus.ACC)) { curveChar[1].setVisibility(View.VISIBLE); ecgShapeLine[1].setSuspendDraw(false); curveChar[2].setVisibility(View.VISIBLE); ecgShapeLine[2].setSuspendDraw(false); curveChar[3].setVisibility(View.VISIBLE); ecgShapeLine[3].setSuspendDraw(false); } else { curveChar[4].setVisibility(View.VISIBLE); ecgShapeLine[4].setSuspendDraw(false); } } }
@Override public void onDestroy() { super.onDestroy(); logger.info("onDestroy"); }
@Override public void onStop() { super.onStop(); logger.info("onStop"); }
@Override public void onRestart() { super.onRestart(); logger.info("onRestart"); }