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
[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 - SimpleCursorAdapter Problem

SimpleCursorAdapter Problem

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

SimpleCursorAdapter Problem

Postby ak_ » Sun May 17, 2009 8:59 am

I have two cursor, one of them from contact content provider, other one from database. id fields are sycnhorinzed.
i want to show them in same column with two row in list.
i m think that i have to use simpleCursorAdapter, because arrayadapter and other adapters can not show two cursor in a list.
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. <span style="color: red">simpleCursorAdapter=new SimpleCursorAdapter(this,R.layout.row,matrixCursor,new String[]{matrixCursor.getColumnName(1),matrixCursor.getColumnName(2)},new int[]{R.id.TextView01,R.id.TextView02});</span>
Parsed in 0.012 seconds, using GeSHi 1.0.8.4

my problem is "simpleCursorAdapter.notifyDataSetChanged();" is not working.
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. protected void onResume() {
  2.  
  3.        
  4.  
  5.         cursor2.requery();
  6.  
  7.         cursor3=myDbAdapter.getAll();    
  8.  
  9.         System.out.println("ak_:Onresumed");
  10.  
  11.         simpleCursorAdapter.notifyDataSetChanged();
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


so my list is not refresing/updating altough all cursors all results are updating.
Is there any idea?
Software Developer
ak_
Freshman
Freshman
 
Posts: 4
Joined: Tue Apr 14, 2009 7:26 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 5 guests