title: how to correctly call setListAdapter
body: <p>I've searched how to solve this problem a lot, but i did not get any result. the only help that i need is, please take a look at this question asked on stackoverflow and on answer; </p>
  
  <p>here is the question from <a href="https://stackoverflow.com/questions/12063757/android-using-setlistadapter-without-extending-listactivity">this</a> link: </p>
  
  <p>"my activity does not extend ListActivity so this line throws an error. setListAdapter(fileList); it is supposed to populate a listview..."</p>
  
  <pre><code>    ArrayAdapter&lt;String&gt; fileList =
              new ArrayAdapter&lt;String&gt;(this, R.layout.row, item);
  setListAdapter(fileList);
  </code></pre>
  
  <p>the answer to this question is: </p>
  
  <p>Obtain the reference of your <code>ListView</code> using <code>findViewById(int)</code>. Then call the method <code>ListView.setAdapter(ListAdapter)</code> on that reference with your adapter as the parameter.</p>
  
  <p>now here is my code: </p>
  
  <pre><code>ArrayAdapter&lt;String&gt; adapter =
       new ArrayAdapter&lt;String&gt;(this, R.layout.reminder_row, R.id.text1, items);
  
      setListAdapter(adapter); 
  
  }
  </code></pre>
  
  <p>considering the Q/A, could someone please explain how exactly do i write it in the correct way. Any help would be very much appreciated.</p>