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

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 - SimpleAdapter screen refresh

SimpleAdapter screen refresh

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

SimpleAdapter screen refresh

Postby eee333 » Tue Apr 01, 2008 11:23 pm

Hello again!

I've been making great progress learning java and the android sdk. Fun stuff.

I did some code modification from this "customlist" tutorial found here, and things are working well, with one little quirk.

In my app, I am populating the list with data from an xml file fetched from an external server. When I add to the list from within android, and the screen updates, it adds the new list on top of the old list. The behavior I want is to wipe the old list, and start fresh.

Can anyone give me a clue how to do this with a SimpleAdapter?

Thanks so much!
eee333
Freshman
Freshman
 
Posts: 9
Joined: Tue Mar 25, 2008 10:35 pm

Top

Postby kiran » Wed Apr 02, 2008 5:01 am

Hi,
you can try list.clear() to clear all data in the list and then populate it with the new list.
Regards,
Kiran.
:) smile it is the key that fits the lock of everybody's heart
User avatar
kiran
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Thu Nov 22, 2007 11:36 am
Location: India

Top

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest