title: ListView and hidden Id. How it is possible?
body: <p>I'm developing an application for android and now I have implemented a ListView that shows a list of courses, connected to a database.</p>
  
  <p>I would like to know how to include, with the name, an hidden id (that come from the db) so that once the user click on the elements the app goes to the relative view of the selected courses.</p>
  
  <p>And how can I maintain the id during the navigation inside the course-view?</p>
  
  <p>At the moment my code just load the name of the courses from the db and set in the list view:</p>
  
  <pre><code>ArrayAdapter&lt;String&gt; result = new ArrayAdapter&lt;String&gt;(CourseActivity.this, android.R.layout.simple_list_item_1);
  
  for (CourseRecord c : get()) 
   result.add(c.getFullname());
  
  lv.setAdapter(result);
  </code></pre>
  
  <p>obviously I'm able to do also c.getid() but I don't where to put the id.</p>
  
  <p>Thank you very much.</p>
  
  <p>P.S.: Maybe does someone have also a really nice graphics of list view? </p>