@Override
 public IGalleryFilter get(IGalleryFilter src) {
   if (src != null) {
     get((IGeoRectangle) src);
     mPath.setText(src.getPath());
     mDateFrom.setText(convertDate(src.getDateMin()));
     mDateTo.setText(convertDate(src.getDateMax()));
     mWithNoGeoInfo.setChecked(src.isNonGeoOnly());
     showLatLon(src.isNonGeoOnly());
   }
   return this;
 }
 private boolean fromGui(IGalleryFilter dest) {
   try {
     if (dest != null) {
       dest.get(mFilterValue);
     }
     return true;
   } catch (RuntimeException ex) {
     Toast.makeText(this, ex.getMessage(), Toast.LENGTH_LONG).show();
     return false;
   }
 }
  public static void showActivity(
      Activity context, IGalleryFilter filter, QueryParameter rootQuery) {
    mRootQuery = rootQuery;
    if (Global.debugEnabled) {
      Log.d(
          Global.LOG_CONTEXT,
          context.getClass().getSimpleName() + " > GalleryFilterActivity.showActivity");
    }

    final Intent intent = new Intent().setClass(context, GalleryFilterActivity.class);

    if (!GalleryFilterParameter.isEmpty(filter)) {
      intent.putExtra(EXTRA_FILTER, filter.toString());
    }

    context.startActivityForResult(intent, resultID);
  }