Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to enumerate files in app's folder on actual G1?

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.010 seconds, using GeSHi 1.0.8.4


and then

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. File fs[] = f.listFiles()
Parsed in 0.010 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 2 guests