title: List<String> log = new ArrayList<String>();
body: <p>I have been trying to use <code>ArrayList.add</code>, when I was putting just <code>.add("some data")</code> it worked fine, when I tried assigning the id - <code>.add(1, "some data");</code> I keep getting the error when I try running the app - "The application MobileApp(process com.example.mobileapp) has stopped unexpectedly. Please try again.".</p>
  
  <p>This is the next code that I am running:</p>
  
  <pre><code>    List&lt;String&gt; log = new ArrayList&lt;String&gt;();
      log.add(1, "some data");
  </code></pre>
  
  <p>This works fine:</p>
  
  <pre><code>    List&lt;String&gt; log = new ArrayList&lt;String&gt;();
      log.add("some data");
  </code></pre>
  
  <p>What I want to achieve from this:</p>
  
  <ol>
  <li><code>ListView</code> will have list of items, each item would have specific "id".</li>
  <li>On click this "id" will be picked up and user is moved to different layout where further information is shown on item with selected "id".</li>
  </ol>