リストビュー アダプタに問題があります。
以下の私のコードを確認してください:
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
    // TODO Auto-generated method stub
    String selected;
    selected = parent.getItemAtPosition(position).toString();
    if( selected == "Apple" ){
        Intent apple = new Intent(Fruits.this, Apples.class);
        startActivity(apple);
    }
    else if( selected == "Apricot" ){
        Intent apricot = new Intent(Fruits.this, Apricots.class);
        startActivity(apricot);
    }
    else if( selected == "Avocado" ){
        Intent avocado = new Intent(Fruits.this, Avocado.class);
        startActivity(avocado);
    }
} // end of OnItemClick method
行を選択するたびに、この行で nullpointerexception がスローされます。
        selected = parent.getItemAtPosition(position).toString();
ここで何が問題なのですか?助けてください。ありがとう。