[android-beginners] Re: CursorAdapter

2008-06-08 Thread Romain Guy
No, the SimpleCursorAdapter documentation says that the views *created* by the adapter should be TextViews and ImageViews (but it is not mandatory.) You can use a SimpleCursorAdapter in a ListView. As it was said before, you cannot instanciate a CursorAdapter directly since it's an abstract class.

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Sylvester Steele
Mark Murphy wrote: Is android.widget.CursorAdapter available via an import statement? yes -- Is myCursor declared as a Cursor? Is myActivity declared as an Activity or some other subclass of Context? yes -- Are you on the M5 version of the SDK? It's possible that constructor was not availab

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Sylvester Steele
I think you can only use Cursors for stuff > you I do receive a query. the simple cursor adapter http://code.google.com/android/reference/android/widget/SimpleCursorAdapter.html page says that it is to be used for textView etc and not ListView. The cursorAdapter class according to http://code.g

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Mark Murphy
Danny wrote: > http://code.google.com/android/reference/android/widget/CursorAdapter.html > > isn't CursorAdapter an abstract class? egad! *smacks forehead* Gotta make me a Greasemonkey script that highlights abstract classes in red, or uses the long-lost tag, or something... ;-) SimpleCurs

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Danny
http://code.google.com/android/reference/android/widget/CursorAdapter.html isn't CursorAdapter an abstract class? I would still consider myself a newbie when it comes to ListView, Adapters, and Cursors, but I think you can only use Cursors for stuff you queried. If you're making a generic list

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Mark Murphy
Sylvester Steele wrote: > Can you elaborate on how it is not working? > > ABC= new __CursorAdapter__ (myCursor, myActivity); > > __ -> redline under that. message: can not instantiate the type > CursorAdapter I am guessing that you are using Eclipse. I don't use it myself and so can only guess

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Sylvester Steele
Can you elaborate on how it is not working? ABC= new __CursorAdapter__ (myCursor, myActivity); __ -> redline under that. message: can not instantiate the type CursorAdapter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[android-beginners] Re: CursorAdapter

2008-06-08 Thread Mark Murphy
Sylvester Steele wrote: > Hi, > > The cursorAdapter constructor format is really simple but its just not > working! > private CursorAdapter ABC; > ABC= new CursorAdapter (myCursor, myActivity); > > note: the activity is passed on to this class from another class > > the myCursor is not initiali

[android-beginners] Re: CursorAdapter - Need example

2008-05-20 Thread Mark Murphy
Peter Kevin Reeves wrote: > Are there any good examples on how to write a CursorAdaptor? Has > anyone (outside of Google) successfully written a CursorAdaptor? > > I'm working with a ListActivity and need to map an icon ID in my > SqlLite table to an actual icon image. My CursorAdaptor should tak