CursorAdapter can't be instantiated?

Hmm.... let's see: First we open reference page for CursorAdapter Then we look at header, and we can read: public abstract class CursorAdapter Abstract classes can't be instantiated in Java (and in any other language implementing that concept) it's feature not a bug. Few lines more we can find link to SimpleCursorAdapter which is not abstract. So simple solution is "just use SimpleCustomAdapter instead of abstract CursorAdapter SimpleCursorAdapter exists in Android API since Android 1.0 (API lvl1).

Hmm.... let's see: First we open reference page for CursorAdapter. Then we look at header, and we can read: public abstract class CursorAdapter Abstract classes can't be instantiated in Java (and in any other language implementing that concept) it's feature not a bug. Few lines more we can find link to SimpleCursorAdapter which is not abstract.So simple solution is "just use SimpleCustomAdapter instead of abstract CursorAdapter.

SimpleCursorAdapter exists in Android API since Android 1.0 (API lvl1).

1 SimpleCursorAdapter's constructor is API level 11. My project's build target is 1.6 . Thanks – iturki Jul 6 at 9:59 Is it possible to use it?

– iturki Jul 6 at 10:08 In my documentation, SimpleCursorAdapter is marked as "Since: API Level 1" - so, yes - you can use it. – piotrpo Jul 6 at 10:39 The only constructor in the class is API level 11. Does this change anything?

– iturki Jul 6 at 11:02 No it doesn't you as mentioned above SCA is present from Android's beginning – piotrpo Jul 6 at 16:15.

First we open reference page for CursorAdapter. Abstract classes can't be instantiated in Java (and in any other language implementing that concept) it's feature not a bug. Few lines more we can find link to SimpleCursorAdapter which is not abstract.

So simple solution is "just use SimpleCustomAdapter instead of abstract CursorAdapter. SimpleCursorAdapter exists in Android API since Android 1.0 (API lvl1).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions