private int getStateTxtDrawable(CameraInfo info) {
   if (info.getPwdIsRight()) {
     return info.getIsOnline() ? R.string.online : R.string.offline;
   } else {
     return R.string.pwd_wrong;
   }
 }
 private int getStateDrawable(CameraInfo info) {
   if (info.getPwdIsRight()) {
     return info.getIsOnline() ? R.drawable.avs_status_connected : R.drawable.avs_status_unknow;
   } else {
     return R.drawable.avs_status_pwderror;
   }
 }