This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Letting the User choose a file." Watch "Letting the User choose a file." New topic

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

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.
I agree. Here's the link:
subject: Letting the User choose a file.
Similar Threads
Filename selection window
Multiple File Upload using Struts
Can I select and put multiple file names in to an array?
JFileChooser - Do not allow any input in the textfield
Selecting a Directory in Input type = file