Is anyone aware of a simple example that uses the cursor adapter? Here's what I'm doing and it's crashing with the runtime exception. I'm sure it's something simple I remember that I'm a newbie and no common example of any list can be found which uses the cursor
thanks
...
The Public Ultimate Class provides the MyListActivity list extension {Private Class MyCursorAdapter CursorAdapter {public MyCursorAdapter extension (reference context, cursor cursor) {super (context, cursor); // CRASH ...
Creating Protected Zero (Bundle Saved Instantestate) {super.onCreate (SavedInstanceState); SetContentView (R.layout.main); MyDB_ = New MyDB (this); MyDB_.open (); Cursor cursor = myDB_.read (); StartManagingCursor (cursor); MyCursorAdapter Adapter = New MyCursorAdapter (this, cursor); ...
Notepad Tutorials in Android Developers With a CursorAdapter you can find the relevant section of the tutorial here:
Comments
Post a Comment