ListView, prevent adding new items
<p>i have my listview activity that works pretty fine but i have an annoying problem.
Whenever it resumes it adds the same items in the the list and that ist gets bigger. I just want it to keep the values i feeded at first.
How can i do that?
here is my activity</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.custom_list_view);

         adapter = new SimpleAdapter(
                this,
                list,
                R.layout.custom_row_view,
                new String[] {"pen","price","color"},
                new int[] {R.id.text1,R.id.text2, R.id.text3}
                );


        populateList();
        setListAdapter(adapter);
    }
</code></pre>

<p>And here is my arrayList:</p>

<pre><code>static final ArrayList&lt;LinkedHashMap&lt;String,String&gt;&gt; list = 
        new ArrayList&lt;LinkedHashMap&lt;String,String&gt;&gt;(); 

    private void populateList() {
        LinkedHashMap&lt;String,String&gt; temp = new LinkedHashMap&lt;String,String&gt;();
        temp.put("pen","                             Mission name");    
        list.add(temp);
        LinkedHashMap&lt;String,String&gt; temp1 = new LinkedHashMap&lt;String,String&gt;();
        temp1.put("pen","                            Map activity");        

        list.add(temp1);
        LinkedHashMap&lt;String,String&gt; temp2 = new LinkedHashMap&lt;String,String&gt;();
        temp2.put("pen","                            Check sensors");       
        list.add(temp2);

        LinkedHashMap&lt;String,String&gt; temp3 = new LinkedHashMap&lt;String,String&gt;();
        temp3.put("pen","                            Infrared Image");
        list.add(temp3);

        LinkedHashMap&lt;String,String&gt; temp4 = new LinkedHashMap&lt;String,String&gt;();
        temp4.put("pen","                            Radar Image");
        list.add(temp4);

        LinkedHashMap&lt;String,String&gt; temp5 = new LinkedHashMap&lt;String,String&gt;();
        temp5.put("pen","                            Visual image");
        list.add(temp5);

        LinkedHashMap&lt;String,String&gt; temp6 = new LinkedHashMap&lt;String,String&gt;();
        temp6.put("pen","                            suscribe to Viewer");
        list.add(temp6);
    }
</code></pre>
