 <p>You are passing the values through intent correctly. I think you are getting problems while getting the passed values. Try this and this works for me.</p> <p>You have to use a bundle for getting the values.</p> <pre><code>Intent intent = new Intent(); Bundle b = intent.getExtras(); int addTaskID = b.getInt("AddTask_Id, 0); </code></pre>