How to enumerate files in app's folder on actual G1?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

How to enumerate files in app's folder on actual G1?

Postby Tertium » Fri Mar 13, 2009 1:58 pm

Hi!
Do you know how to enumerate files in app's folder on actual G1 (not emulator or devphone)? Because normally app haven't direct access to file system, you can't do something like:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. File f = new File("./data/data/mypack.myapp/files")
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


and then

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. File fs[] = f.listFiles()
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


I just want to know all the filenames in my app's folder, and then I can operate via Hub.MainContext.openFileInput/Hub.MainContext.openFileOutput.

Any suggections?
Tertium
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Dec 05, 2008 12:43 am

Top

Postby Tertium » Mon Mar 16, 2009 11:20 am

It seems that I should just use known names, e.g. numbers
Tertium
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Dec 05, 2008 12:43 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests