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

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 - unable to display list in emulator

unable to display list in emulator

Put your problem here if it does not fit any of the other categories.

unable to display list in emulator

Postby abhilash » Fri Feb 22, 2008 11:29 am

hi
i have connected to sqlite and i am getting some information from it and i stored them in the form of arraylist now i should i print that on emulator
abhilash
Developer
Developer
 
Posts: 26
Joined: Fri Feb 22, 2008 11:21 am
Location: HYDERABAD

Top

Postby baskar » Fri Feb 22, 2008 1:45 pm

Hi,


Use this link..
display the data from sqlite.
http://www.anddev.org/working_with_the_ ... -t319.html
i think it is use full one for u..

Regards,
Baskar
baskar
Developer
Developer
 
Posts: 46
Joined: Wed Dec 26, 2007 6:03 am
Location: India

Postby plusminus » Fri Feb 22, 2008 2:12 pm

@baskar
I think he already received the data and now wants to display it.

@abhilash
you should extend ListActivity and then call sth. similar to this:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.setListAdapter(new ArrayAdapter<String>(this, android.R.layout.activity_list_item, myArrayList));
Parsed in 0.010 seconds, using GeSHi 1.0.8.4

(unsure on the second parameter)

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby chouputra » Mon Feb 25, 2008 10:08 am

I have been playing with the ListActivity as well and the ArrayAdapter is not limited to String. It can an object as well but make sure your object has toString(). When you call getSelectedItem() it will return the object being selected item from your list.

plusminus wrote:@baskar
I think he already received the data and now wants to display it.

@abhilash
you should extend ListActivity and then call sth. similar to this:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.setListAdapter(new ArrayAdapter<String>(this, android.R.layout.activity_list_item, myArrayList));
Parsed in 0.010 seconds, using GeSHi 1.0.8.4

(unsure on the second parameter)

Regards,
plusminus
chouputra
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Feb 20, 2008 3:44 am
Location: Jakarta, Indonesia

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 9 guests