title: Get data from Listview? How?
body: <p>I have a database (db) from I get values (name, email address, phone number. etc) which I put in a list and displayed in a ListView. If I click on an item can I get the whole data from clicked item? Because I need ex. email address to send email. Can I extract from the item the data, because when get data from database is in a "Client" type. </p>
  
  <pre><code>List list = db.getAllClients();
  
      final ListView listview = (ListView) findViewById(R.id.listView_ID);
      listview.setClickable(true);
  
      ArrayAdapter adapter = new ArrayAdapter(this,
              android.R.layout.simple_list_item_1, list);
  
      listview.setAdapter(adapter);
      registerForContextMenu(listview);
  
      listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
          public void onItemClick(AdapterView&lt;?&gt; parentAdapter, View view,
                  int position, long id) {
  
                              // some code
  
  
          }
      });
  </code></pre>