"is not abstact and does not override abstract method."
<p>So I'm pretty new to android development and have been trying to piece together some code bits. Here's what I have so far:</p>

<pre><code>package com.teslaprime.prirt;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;
import java.util.ArrayList;
import java.util.List;

public class TaskList extends Activity {
  List&lt;Task&gt; model = new ArrayList&lt;Task&gt;();
  ArrayAdapter&lt;Task&gt; adapter = null;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Button add = (Button) findViewById(R.id.add);
    add.setOnClickListener(onAdd);

    ListView list = (ListView) findViewById(R.id.tasks);

    adapter = new ArrayAdapter&lt;Task&gt;(this,android.R.layout.simple_list_item_1,model);
    list.setAdapter(adapter);
    list.setOnItemClickListener(new OnItemClickListener() {
      public void onItemClick(View v, int position, long id) {
        adapter.remove(position);
      }
    });}

  private View.OnClickListener onAdd = new View.OnClickListener() {
    public void onClick(View v) {
      Task task = new Task();
      EditText name = (EditText) findViewById(R.id.taskEntry);

      task.name = name.getText().toString();

      adapter.add(task);
    }
  };
}
</code></pre>

<p>and here are the errors I'm getting:</p>

<pre><code>compile:
    [javac] /opt/android-sdk/tools/ant/main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to /home/chris-kun/code/priRT/bin/classes
    [javac] /home/chris-kun/code/priRT/src/com/teslaprime/prirt/TaskList.java:30: &lt;anonymous com.teslaprime.prirt.TaskList$1&gt; is not abstract and does not override abstract method onItemClick(android.widget.AdapterView&lt;?&gt;,android.view.View,int,long) in android.widget.AdapterView.OnItemClickListener
    [javac]     list.setOnItemClickListener(new OnItemClickListener() {
    [javac]                                                           ^
    [javac] /home/chris-kun/code/priRT/src/com/teslaprime/prirt/TaskList.java:32: remove(com.teslaprime.prirt.Task) in android.widget.ArrayAdapter&lt;com.teslaprime.prirt.Task&gt; cannot be applied to (int)
    [javac]         adapter.remove(position);
    [javac]                ^
    [javac] 2 errors

BUILD FAILED
/opt/android-sdk/tools/ant/main_rules.xml:384: Compile failed; see the compiler error output for details.

Total time: 2 seconds
</code></pre>

<p>any ideas?</p>
