The constructor CursorAdapter(Context, Cursor, int) is undefined..?
<p>Please help me with this error</p>

<pre><code>public class CustomAdapter extends CursorAdapter {

public CustomAdapter(Context context,Cursor c,int flags) {
    **super(context,c,flags);** EEROR ON THIS LINE

}

Thread thread = new Thread() {

        public void run() {

            customAdapter = new CustomAdapter(MyActivity.this, databaseHelper.getAllData(), CursorAdapter.NO_SELECTION);

            listView.setAdapter(customAdapter);
        }
</code></pre>

<p>The log:</p>

<pre><code>10-23 12:37:14.617: E/AndroidRuntime(668): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
10-23 12:37:14.617: E/AndroidRuntime(668):  at android.os.Handler.&lt;init&gt;(Handler.java:121)
10-23 12:37:14.617: E/AndroidRuntime(668):  at android.widget.CursorAdapter$ChangeObserver.&lt;init&gt;(CursorAdapter.java:449)
10-23 12:37:14.617: E/AndroidRuntime(668):  at android.widget.CursorAdapter.init(CursorAdapter.java:170)
10-23 12:37:14.617: E/AndroidRuntime(668):  at android.widget.CursorAdapter.&lt;init&gt;(CursorAdapter.java:116)
10-23 12:37:14.617: E/AndroidRuntime(668):  at com.example.databasesim.CustomAdapter.&lt;init&gt;(CustomAdapter.java:18)
10-23 12:37:14.617: E/AndroidRuntime(668):  at com.example.databasesim.MyActivity$1.run(MyActivity.java:39)
</code></pre>
