title: Android Gallery - how to get paths to all thumbnails of a selected image?
body: <p>I get from Gallery through a SEND_MULTIPLE action selected desired images. For each image I achieve an Uri like:</p>
  
  <pre><code>content://media/external/images/media/11
  </code></pre>
  
  <p>My intention is to encrypt the selected image. For this reason I extract at first the path to the file by:</p>
  
  <pre><code>String[] proj = { MediaColumns.DATA };
  Cursor actualimagecursor = context.managedQuery(uri, proj, null, null, null);
  int actual_image_column_index = actualimagecursor.getColumnIndexOrThrow(MediaColumns.DATA);
  actualimagecursor.moveToFirst();
  String img_path = actualimagecursor.getString(actual_image_column_index);
  </code></pre>
  
  <p>In this example, I get </p>
  
  <pre><code>/sdcard/DCIM/11.jpg
  </code></pre>
  
  <p>Now I am able to handle the file (in this case to perform encryption).</p>
  
  <p>The problem remains, that Gallery cashes thumbnails of the file. Therefore, I would like to encrypt them also.</p>
  
  <p>For this reason, I need also for all thumbnails, that represent the image, the associated file paths. How to achieve that? I don't have experiences with the underlying data base. I would be grateful if someone could send a short example.</p>
  
  <p>Is there a general way to handle this (independed of the phone)? In the next step, I want to extend the approach also for video files. Is there a difference on how to handle this problem?</p>
  
  <p>Thanks in advance!<br>
  Arik M.</p>