This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Letting the User choose a file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Letting the User choose a file." Watch "Letting the User choose a file." New topic
Author

Letting the User choose a file.

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
How would I/is there any way to let the user select a file from my Application? For example, I'm making a book reading app, so I'd like to let the user be able to select an appropriate file. Is there any guaranteed way to give the user this ability?

Thank for the help.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I don't think there's a built-in widget for letting a user select a file - phone apps tend not to work with files a lot, or at least not to make it explicit to the user that they do. You could check out a few file managers (like IO Filemanager and AndExplorer) to see how they work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Letting the User choose a file.
 
Similar Threads
Selecting a Directory in Input type = file
Can I select and put multiple file names in to an array?
JFileChooser - Do not allow any input in the textfield
Filename selection window
Multiple File Upload using Struts