I have a ListView that displays, for each result, name, phone number, website and address in a manner that would look like:
Name
Address
Phone Number
Website
Currently my onClickListener looks something like this:
private AdapterView.OnItemClickListener onListClick = new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent = new Intent(Results.this, ResultDetail.class);
intent.putExtra("????????", ?????????);
}
};
I understand that I need to be passing the variables with putExtra, but am unsure of how to fetch the specific phone number or website value for the result I am working on.
Other questions that have been asked don't seem to focus on having multiple values per result, so if anyone has any help I would be grateful!
Edit: In case this is useful information, the listViews results are gathered using a cursor which an adapter uses to populate the list.