Passing row id of a list to another activity
问题 I have two activity. When the user clicks on the medicine name on the list, it will go to second activity and display the details of the medicine. For the first activity, below is my code: public class MedicineView extends Activity implements AdapterView.OnItemClickListener { private SQLiteDatabase database; private ArrayList<String> result = new ArrayList<String>(); private ArrayList<Long> idList = new ArrayList<Long>(); private ArrayAdapter<String> adapter; @Override protected void onCreate