title: extending cursorAdapter, what constructor to use
body: <p>I'm trying to fill a listview with a database query. I'm using a custom adapter that extends cursor adapter. I don't know what constructor to use. When i use the default one:</p>
  
  <pre><code>public AdapterListview(Context context, Cursor c) {
      super(context, c);
      // TODO Auto-generated constructor stub
  }
  </code></pre>
  
  <p>It works fine, but i'm getting a warning that is deprecated. I did some research and it looks like it is recommended to use the following and use 0 for the flags. </p>
  
  <pre><code>public AdapterListview(Context context, Cursor c, int flags) {
      super(context, c, flags);
      // TODO Auto-generated constructor stub
  }
  </code></pre>
  
  <p>But it looks like it is not supported for anything under API 11, and my project is targetting API 8. Nevertheless I tried it anyway and i get the following logcat error:</p>
  
  <pre><code>10-27 02:11:22.230: E/AndroidRuntime(491): FATAL EXCEPTION: main
  10-27 02:11:22.230: E/AndroidRuntime(491): java.lang.NoSuchMethodError: android.widget.CursorAdapter.&lt;init&gt;
  10-27 02:11:22.230: E/AndroidRuntime(491):  at com.mangodeveloper.mcathomie.AdapterListview.&lt;init&gt;(AdapterListview.java:14)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at com.mangodeveloper.mcathomie.ActivityStats.onCreate(ActivityStats.java:36)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.os.Handler.dispatchMessage(Handler.java:99)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.os.Looper.loop(Looper.java:123)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at android.app.ActivityThread.main(ActivityThread.java:3683)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at java.lang.reflect.Method.invokeNative(Native Method)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at java.lang.reflect.Method.invoke(Method.java:507)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  10-27 02:11:22.230: E/AndroidRuntime(491):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>So i feel at a loss for what i'm supposed to do.</p>