title: How can I display a specific folder in Android Gallery3D (cooliris)?
body: <p>I'm using <a href="https://github.com/CyanogenMod/android_packages_apps_Gallery3D/tree/froyo-stable" rel="nofollow">Gallery3D (froyo-stable)</a></p>
  
  <p>I'm trying to make a little app that displays only images from a specific folder in a gallery view.</p>
  
  <pre><code>Uri targetUri = Media.EXTERNAL_CONTENT_URI;
  String folderPath = Environment.getExternalStorageDirectory().toString() + "/DCIM/";
  int folderBucketId = folderPath.toLowerCase().hashCode();
  targetUri = targetUri.buildUpon().appendQueryParameter("bucketId", String.valueOf(folderBucketId)).build();
  </code></pre>
  
  <p>In <code>initializeDataSource()</code></p>
  
  <pre><code>// Creating the DataSource objects.
  final LocalDataSource localDataSource = new LocalDataSource(Gallery.this, targetUri.toString(), false);
  </code></pre>
  
  <p>But I have error</p>
  
  <pre><code>"Error finding album " + bucketId);
  </code></pre>
  
  <p>In <code>CacheService.loadMediaSets.</code>:</p>
  
  <pre><code> Log.e(TAG, "Error finding album " + bucketId);
  </code></pre>
  
  <p>How can I fix this?
  Thankyou</p>