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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:29:53+00:00 2026-06-13T05:29:53+00:00

Hello i have the below code to open the gallery so that user picks

  • 0

Hello i have the below code to open the gallery so that user picks an image.

Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select file to upload "), 1);

I get the gallery and file explorer to choose from. How can I get only the android built in gallery.
I need this because I dont want the user to choose something other than images. Thanks

  • 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-06-13T05:29:55+00:00Added an answer on June 13, 2026 at 5:29 am

    I don’t think it’s possible. The file explorer tells Android that it takes the same Intents to start as the Gallery, so Android displays a dialog for the user to select which one to use.

    You’ll have to check their selection in your app once they pick it to make sure it’s a picture, and if it’s not then tell them and make them pick again.

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

Sidebar

Related Questions

Hello to open Application from URL i have code below <intent-filter> <action android:name=android.intent.action.VIEW></action> <category
Hello I have the code below that for some reason is not working: I
Hello i have the code below <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
I have code as below: var s : String = hello world var xml
hello I have my code that connects to my ftp server $conn_id = ftp_connect($ftp_server);
Hello Stack i have the below code and it only seems to loop once,
I currently have the below function within my code:- def openFiles(): file1 = open('file1.txt',
I have the below Code SELECT * FROM table WHERE MATCH(message) AGAINST ('Hello*') If
I have below code in html <div id=divTest> Hello <input type=text id=txtID/> <input type=text
Hi Suppose I have the code below: <div class=Hello> <div class=inner>Hello</div> </div> <div class=Goodbye>

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.