title: Dynamically add items in list view
body: <p>I want to make a dynamic list view which gets the user credentials when I login for the first time and displays it in a list the next time I start the app. I know how to send the username from one intent to another. i haven't focused on the SQLite part yet, will do that later. I'm facing problems in creating the dynamic list view. 
  Found one very useful thread - <a href="https://stackoverflow.com/questions/4540754/add-dynamically-elements-to-a-listview-android">Dynamically add elements to a listView Android</a></p>
  
  <p>he used a button on the screen and called the method onClick to populate the list. Can i do it without the button? I want it to automatically happen once i am able to login.
  how can i use the statements in my code?</p>
  
  <pre><code>listItems.add(value);
  adapter.notifyDataSetChanged();
  </code></pre>
  
  <p>here value is the username i am getting from some other intent.<br>
  please help. thanks!   </p>