Hi all,

I am trying to Fetch the data from SQLite database Onto Listview using
SimpleCursorAdapter()
But till I cant see List on Screen
Pls Help me .



Following is  a code sample

ContentResolver resolver = getContentResolver();
                String[] projection = new String[] {mycontent_prvider.DATE,
                                                                                
  mycontent_prvider.MONTH,
                                                                                
  mycontent_prvider.YEAR,
                                                                                
  mycontent_prvider.TITLE};


                Cursor c = resolver.query(mycontent_prvider.CONTENT_URI, 
projection,
null,null,null);
                startManagingCursor(c);

                                ListAdapter adapter = new 
SimpleCursorAdapter(this,
R.layout.custom_list, c,
                                        projection,
                                                          new int[]{R.id.text1, 
R.id.text2, R.id.text3, R.id.text4});
                        setListAdapter(adapter);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to