title: Listview shows duplicated items when scrolling
body: <p>I am wondering about this problem that I am encountering in Android.</p>
  
  <p>I populate the <code>ArrayAdapter</code> from <code>ArrayList</code>. The entries are fine and unique but when I scroll down the <code>listview</code> it keeps reading the existing elements. </p>
  
  <p>How can I avoid this?</p>
  
  <p>Here is my code.   </p>
  
  <pre><code>ArrayList&lt;String&gt; channelname = new ArrayList&lt;String&gt;();
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_channels);
  
        listchannels();
  
        ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.mylistchannel,R.id.Channelname,channelname);
        setListAdapter(adapter);
  }
  
  public void listchannels()
  {
        InputStreamReader inputreader = new InputStreamReader(testFile.getReadStream());
        BufferedReader buffreader = new BufferedReader(inputreader);
  
        do {
              key = buffreader.readLine();
              if(key != null)
                  value = buffreader.readLine();
              channelname.add(key);                
        } while (key != null &amp;&amp; value != null);
  }
  </code></pre>