I'd like to extend "Contact-List Caller" sample to add a list of available phone types/numbers for selected person. So I need another activity and pass selected person ID to it.
The example there uses
Using java Syntax Highlighting
- intent.setData(Foos.CONTENT_URI.addId(fooID));
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
while the "Passing Data to Activities" tutorial on this forum uses Bundle to pass data.
What is the difference? How to get data in an activity when it's passed using intent.setData?
BTW. Is the id parameter in onListItemClick by any chance ID of the selected element in a database?
Thanks in advance!


