Launch Activity for a certain record
Posted
by OceanBlue
on Stack Overflow
See other posts from Stack Overflow
or by OceanBlue
Published on 2010-06-02T00:10:50Z
Indexed on
2010/06/02
0:13 UTC
Read the original article
Hit count: 548
android
I have an screen that displays all the names in the Contacts in a ListView.
When the user clicks on a name, I want to launch another Activity which display the details of the selected Contact (Phone number/ email) in another screen. How do I display details for the selected row. (i.e When starting the intent how do I send over the row_id of the item selected)?
I've tried the following code:
Intent i = new Intent(this, ContactDetails.class);
startActivity(i);
© Stack Overflow or respective owner