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 7278379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:51:59+00:00 2026-05-28T22:51:59+00:00

After reading some posts like this one: Choose File Dialog It appears that Android

  • 0

After reading some posts like this one:

Choose File Dialog

It appears that Android OS might not have a built-in dialog for “select a file” like we have on Windows OS. Is that correct?

If not, I need to create one for attaching files to an email (I’m creating an email client). There are enough samples for creating a directory list and showing it in a listview. What I can’t find is a way to know what folders/paths I should look in, or at least start with? For example, the built-in “Messaging” app on the emulator I am testing with brings up a list to start with that has options like “Audio, Images, Videos, Slideshows”, and then when I select one of those options it appears to be showing me all of those types of files, maybe from anywhere on the device, in one big list.

Is there some “accepted” or “common” way of doing this? I don’t want my app to be too different from others that users might be used to.

Also.. it seems like Android doesn’t generally have usefull file names on most of these files, most are just numbers, so I guess I’ll have to display thumbnails — seems like a lot of work, for a pretty common/basic task I would think would be part of the OS.

  • 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-28T22:52:00+00:00Added an answer on May 28, 2026 at 10:52 pm

    I think this is what GMail uses:

            Intent intent = new Intent();
            intent.setType("image/*");
            intent.setAction(Intent.ACTION_GET_CONTENT);
            startActivityForResult(Intent.createChooser(intent,"Select File"), AttachFileRequestCode);
    

    So I decided that will be good enough for me. For most people I think they will only get the “Gallery” app with this method, but at least “advanced” users have an option to install a 3rd party file explorer if they want to be able to select other files. I tried using / for the mime-type, but then the list included contacts and some other items that didn’t work well at all, so I left it image/* and it appears most file explorers will ignore that and let the user select any file type they want anyway.

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

Sidebar

Related Questions

After reading some posts, it seems like you can open a file for both
After reading some material on this subject I'm still not sure what the difference
That title may need some work. Perhaps after reading this, you may be able
Update: After some more reading I see that this problem is totally general, you
after reading the Zend documentation and some posts here I could not figure out
I've always used a *.h file for my class definitions, but after reading some
After some reading and R&D, I have came to conclusion that ? Forms in
I was reading some posts about closures and saw this everywhere, but there is
After reading some posts here on the advantages of using source control for a
I think this has been done many times before but despite reading some posts

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.