Any idea????

On Sun, May 17, 2009 at 5:13 AM, Adem KARAKOLLU <karako...@gmail.com> wrote:

> 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.
> simpleCursorAdapter=new
> SimpleCursorAdapter(this,R.layout.row,matrixCursor,new
> String[]{matrixCursor.getColumnName(1),matrixCursor.getColumnName(2)},new
> int[]{R.id.TextView01,R.id.TextView02});
> my problem is "simpleCursorAdapter.notifyDataSetChanged();" is not
> working.
>  protected void onResume() {
>
>      cursor2.requery();
>      cursor3=myDbAdapter.getAll();
>      System.out.println("ak_:Onresumed");
>      simpleCursorAdapter.notifyDataSetChanged();
>
> so my list is not refresing/updating altough all cursors all results are
> updating.
> Is there any idea?
>
> --
> ADEM KARAKOLLU
>
>


-- 
ADEM KARAKOLLU

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to