private void markerDownloaded(DataMarker marker) {
   // hideProgressControls();
   if (marker != null) {
     stopMarkerDetectionProcess();
     mMarkerSurfaceView.stopDisplayingDetectedMarker();
     displayMarkerDetail(marker);
   } else mMarkerSurfaceView.stopDisplayingDetectedMarker();
 }
 public void onBrowseMarkerSelected(DataMarker marker) {
   mMarkerSurfaceView.stopDisplayingDetectedMarker();
   stopMarkerDetectionProcess();
   displayMarkerDetail(marker);
 }
 // OnMarkerPopupWindowListener methods.
 public void onDismissedSelected(DataMarker marker) {
   mMarkerSurfaceView.stopDisplayingDetectedMarker();
 }
 public void onImageBrowseMarkerSelected(DataMarker marker) {
   mMarkerSurfaceView.stopDisplayingDetectedMarker();
 }
 private void initTWSurfaceViewListener() {
   mMarkerSurfaceView = (TWMarkerSurfaceView) findViewById(R.id.MarkerSurfaceView);
   mMarkerSurfaceView.setOnMarkerDetectedListener(this);
   mMarkerSurfaceView.setPreference(new HIPreferenceTableware(this));
 }
 private void startMarkerDetectionProcess() {
   mMarkerSurfaceView.startProcessing();
 }