private void initView() {
    lesPersToPost = new ArrayList<LessonPerformance>();
    stuPersFromNet = new ArrayList<LessonPerformance>();

    mMsgBox = new MessageBox(this);
    lessonServer = LessonWebServerIF.getInstance(LessonStatusActivity.this);
    mDBHelper = Database.open(this);

    preformstrs = getResources().getStringArray(R.array.lesson_performance_names);

    lvPerformances = (ListView) findViewById(R.id.lv_les_status);
    findViewById(R.id.title_back).setOnClickListener(this);

    Button btn = (Button) findViewById(R.id.btn_parent_confirm);
    btn.setOnClickListener(this);

    Intent intent = getIntent();
    lessonId = intent.getIntExtra(Constants.LESSONID, 0);
    stuId = intent.getStringExtra(Constants.STUID);
    isTeacher = intent.getBooleanExtra(FALG, false);
    if (isTeacher) {
      btn.setText(R.string.login_retrieve_password_btn);
    } else {
      btn.setVisibility(View.GONE);
    }
    getStuPerformceById();
  }
  @Override
  public int onStartCommand(Intent intent, int flags, int startId) {
    mWeb = WowTalkWebServerIF.getInstance(this);
    mMomentWeb = MomentWebServerIF.getInstance(this);
    mDb = Database.open(this);

    handleCommand(intent);
    // We want this service to continue running until it is explicitly
    // stopped, so return sticky.
    return START_STICKY;
  }