 <p>Recover the id and use in the second activity:</p> <pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { String rowid = String.valueOf(id) Bundle bundle = new Bundle(); bundle.putString("ID", rowid); intent.putExtras(bundle); startActivity(intent); } </code></pre> <p>Retrieve in second activity using:</p> <pre><code>String rowid= getIntent().getExtras().getString("ID"); </code></pre> <p>Don't forget to convert the id from string back to long and add 1 after you retrieve it in your second activity</p>