thanx Krishna :) On 9/19/11, Krishna Prasad <krishnaprasadrs.1...@gmail.com> wrote: > @Override > public void onItemClick(AdapterView<?> parent, View arg1, int i, > long l) { > try { > > SimpleCursorAdapter simpleCursorAdapter = > (SimpleCursorAdapter) parent > .getAdapter(); > final Cursor cursor = simpleCursorAdapter.getCursor(); > > final int idColIndex = cursor.getColumnIndex("_id"); > > Save the value in a variable and use bundles > > > Bundle bundle = new Bundle(); > bundle.putString("any name",Id); > > Intent intent = new Intent(first activity.this, > second activity.class); > intent.putExtras(bundle); > startActivity(intent); > > On Mon, Sep 19, 2011 at 10:27 AM, Bishan <tvbis...@gmail.com> wrote: > >> I have wrote a program to get students names from database and display >> them, using ListActivity. and used OnItemClickListener to click on >> each items. >> >> now i want to do, when i click on a student name, display other >> information of student (age, sex, address) on another screen. >> >> how could i do this? >> >> pls guide me. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en