Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6037283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:03:01+00:00 2026-05-23T06:03:01+00:00

I am using the Gallery3D -Code but want it to only display images from

  • 0

I am using the Gallery3D-Code but want it to only display images from a sub-folder on the SD, not all of the images that are stored on it. To do this, I tried to change

public static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI;

to

public static final Uri STORAGE_URI = Uri.fromFile(new File(ROOT_DIR));,

where
String ROOT_DIR = Environment.getExternalStorageDirectory().toString() + "/mySubDirectory";

but I guess this is transforming a content://-Uri to a file://-Uri and this may be a problem?

In any case, it doesn’t work :-(! Instead of just showing images from the ROOT_DIR-directory and its sub-directories, it shows no images at all (“Gallery empty”). Could anyone point me in the right direction as to what I am doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:03:02+00:00Added an answer on May 23, 2026 at 6:03 am

    I’ve also (later) asked this question on the Android Developer Google Group and the consensus there was that with the current structure of the Gallery3D code, my goal isn’t possible and I would have to change the images-source to a (custom) database in which my image-paths are stored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following code, but my progress bar is not displaying in the
I am using a bespoke Jquery/PHP gallery script which pulls images from a Flickr
I'm trying to load images from the specific folder in sd card.i saved images
In my app i am using this code to get Image from Gallery and
What i want is that i want this portion of html code to be
I am using the below code for saving an image to SD Card. But
I hid my notification bar and title bar using below code. But Now, I
I want to create a Gallery that displays a very large number of images.
I am creating several image dynamically using the following code: function refresh_gallery(galleryidentifier, albumid) {
Using ASP.NET MVC there are situations (such as form submission) that may require a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.