File Browser

All your problems with Audio, Video and Images.

File Browser

Postby myandport » Wed Jun 03, 2009 7:28 am

Hi all,

I m a beginner in this field and i want to develop an application called a File Browser. In this application i want to implement features like browsing up the contents of sd card. I m tryuong it from many dayz but couldn't get the right way to do that. So any one please help me out for the same. I m using an emulator with android sdk version 1.1.

Thanks a lot in advance
myandport
Freshman
Freshman
 
Posts: 6
Joined: Thu May 21, 2009 6:36 am

Top

Re: File Browser

Postby gunnar-medial » Wed Jul 08, 2009 12:30 am

myandport wrote:Hi all,

I m a beginner in this field and i want to develop an application called a File Browser. In this application i want to implement features like browsing up the contents of sd card. I m tryuong it from many dayz but couldn't get the right way to do that. So any one please help me out for the same. I m using an emulator with android sdk version 1.1.

Thanks a lot in advance


Check out the java.io.File class :
http://developer.android.com/reference/ ... /File.html

You create a File object on a path
File(String path)
and then use the File methods for browsing the content.
For the card path it is best to use
Environment.getExternalStorageDirectory() and you get a File reference directly.

See http://developer.android.com/reference/ ... nment.html

Some generic Java File example code here: http://www.exampledepot.com/egs/java.io/GetFiles.html

During debugging you can use printout traces
System.out.println("string);
and watch the output of your app by redirecting stdout printouts to the log.
See http://developer.android.com/guide/deve ... s/adb.html
gunnar-medial
Freshman
Freshman
 
Posts: 7
Joined: Sun Jul 05, 2009 9:24 pm
Location: Stockholm, Sweden

Postby nmc » Wed Jul 08, 2009 10:01 am

Did you try something obvious like searching this forum for "file browser"?
One of the results would be: http://www.anddev.org/android_filebrowser__v20-t101.html
nmc
Senior Developer
Senior Developer
 
Posts: 154
Joined: Thu Nov 27, 2008 8:30 pm
Location: Germany

Postby gunnar-medial » Wed Jul 08, 2009 1:16 pm

:oops: One should not forget that this race began in 2007, and a file browser should have been among the first topics to think of, and indeed was :wink:
gunnar-medial
Freshman
Freshman
 
Posts: 7
Joined: Sun Jul 05, 2009 9:24 pm
Location: Stockholm, Sweden

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 10 guests