I have a problem with this on Eclipse
OnItemClickListener onClick = new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Toast.makeText(getApplicationContext(), adapter.getItem(position), Toast.LENGTH_LONG);
Log.i("ITEM CLICK", adapter.getItem(position));
}
};
Eclipse is telling me that onItemClick must override a superclass method... and i Have to remove @Override annotation. But it's overriding a method... or isn't it?
Thanks