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 - Pupulate a ListView

Pupulate a ListView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Pupulate a ListView

Postby Risike » Wed May 13, 2009 4:34 pm

Hi everybody !

Sorry for my bad english.

I'm learning Androïd developpement and I woulk like to create a simple file browser. I know how to list files of a directory in Java but I don't know how to populate a ListView with this table of files...

In my main.xml layout, I have a ListView named lvFiles.

In my main class I have a method called UpdateAll which refresh the current folder name in a TextView (it works) an populate the ListView with the name of all files and directories.

I don't understand how to use ListAdapters, even with the sample codes in the SDK folder...

So, how can I populate a ListView with a simple table of strings (String[]) ?

Then, how can I populate a ListView with images and strings ?

Thanks in advance.
Risike
Freshman
Freshman
 
Posts: 3
Joined: Wed May 13, 2009 1:23 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests