I have two string arrays, here s1[] contains a list of names and s2[] contains URL\'s associated with the respective name, now i need to populate ListView, with the names and on
class Link{
public String name;
public String link;
}
You can then create a custom listview which extends 'ArrayAdapter' and override 'getView' as well as 'onItemSelected'. In both of these method you will be able to get the item using the 'position' parameter.