Problem with onItemClick
<p>This might be really long and I'm sorry for the poor soul who reads through it all.</p>

<p>Goal: I want to create a Pokemon Pokedex application (Yeah I know very childish). I thought this would be great for a first application to build because there is tons of data to deal with. For those not familiar with Pokemon it's basically creatures in a list from #001 - #649. I want to display all the creatures in a list and have the user click on that creature. Once the creature is clicked on it will display statistics about it on a different screen. </p>

<p>Ok back to programming...</p>

<pre><code>package com.pokemon.pokdex;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;

public class PokedexActivity extends ListActivity {
     @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            setListAdapter(ArrayAdapter.createFromResource(getApplicationContext(),
                    R.array.pokemon_titles, R.layout.list_item));

            final String[] links = getResources().getStringArray(R.array.pokemon_stats);

            getListView().setOnItemClickListener(new OnItemClickListener() {

                @Override
                public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                        int position, long id) {
                    String content = links[position];
                }
            });
        }
}
</code></pre>

<p>I'm getting errors on  <code>getListView().setOnItemClickListener(new OnItemClickListener() {</code> where is says <code>OnItemClickListener()</code> and <code>View view</code>,. it says <code>The type new AdapterView.OnItemClickListener(){} must implement the inherited abstract method AdapterView.OnItemClickListener.onItemClick(AdapterView&lt;?&gt;, View, int, long)</code> for <code>OnItemClickListener()</code> and View cannot be resolved to a type for <code>View view,</code></p>

<pre><code>package com.pokemon.pokdex;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ArrayAdapter;

public class PokedexViewActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pokemon_stats);

        };
    }
</code></pre>

<p>On this file I'm getting an error on <code>setContentView(R.layout.pokemon_stats);</code> Here is the error <code>pokemon_stats cannot be resolved or is not a field</code></p>

<p>My string.xml file looks like
(this is where the pokemon will be set as well as the stats. I did the first pokemon below.) </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;string name="hello"&gt;Pokemon Pokedex&lt;/string&gt;
    &lt;string name="app_name"&gt;Pokedex&lt;/string&gt;
    &lt;string-array name="pokemon_titles"&gt;
    &lt;item&gt;#001 - Bulbasaur&lt;/item&gt;
&lt;/string-array&gt;
&lt;string-array name="pokemon_stats"&gt;
    &lt;item&gt;Grass Type&lt;/item&gt;
&lt;/string-array&gt;
&lt;/resources&gt;
</code></pre>

<p>My main.xml looks like </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>My list_item.xml looks like </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="24dp"
android:padding="6dp" /&gt;
</code></pre>

<p>Any help is appreciated and thank you if you made it this far :)</p>

<p>EDIT: Updated and added the exact errors I'm getting.</p>
