ZigiZ
ZigiZ

Reputation: 2520

How to browse for file in Android?

In my App, I need to browse for local/external storage HTML files and display them on a WebView.

How do I activate such Intent action to popup the build-in file manager and return a result as the full path to the file selected?

Cheers.

Upvotes: 0

Views: 486

Answers (1)

marcinj
marcinj

Reputation: 49976

There are no standard app doing that, you must write your own solution. You should use File.listFiles(); for listing files in given directory, together with Environment.getExternalStorageDirectory to get path to external storage.

Upvotes: 1

Related Questions