tr>
+ if(MSG_TYPE_NOT_INIT.equalsIgnoreCase(eventMsg)||MSG_TYPE_CAMERA_ERROR.equalsIgnoreCase(eventMsg)){
+ Bundle bundle = new Bundle();
+ bundle.putInt(EXTRA_STATUS_PART, MSG_CAMERA_CONN_ERROR);
+ sendCameraIntent(bundle);
+ stopCameraService();
+ }else if(MSG_TYPE_TIME_OUT.equalsIgnoreCase(eventMsg)){
+
+ }else{
+ String sub = eventMsg.substring(0,1);
+ if(TextUtils.isDigitsOnly(sub)){
+ LogHelper.d("czy","fetchPhotoTask new photo found");
+ Bundle bundle = new Bundle();
+ bundle.putInt(EXTRA_STATUS_PART, MSG_CAMERA_NEW_PHOTO_FOUND);
+ bundle.putString(EXTRA_DATA_PART,eventMsg);
+ sendCameraIntent(bundle);
+ }
+ }
+ }
+
+ isLastQueryReturned = true;
+ }
+
+ private void sendCameraIntent(Bundle bundle){
+ Intent intent = new Intent(ACTION_CAMERA_SERVICE_STATUS_CHANGE);
+ intent.putExtras(bundle);
+ sendBroadcast(intent);
+ }
+
}