I was following one of the answers in this link, and I found it rejecting my code, and not letting me compile due to an error stating "The constructor ArrayAdapter(Context, int, int, String[][]) is undefined". Anyone have any ideas? I am taking my data from a two diminutional array, please forgive me I am quite new at this. Thanks!
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_2, android.R.id.text1, values[][]) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view = super.getView(position, convertView, parent);
TextView text1 = (TextView) view.findViewById(android.R.id.text1);
TextView text2 = (TextView) view.findViewById(android.R.id.text2);
//not yet ready altered for my code
text1.setText(persons.get(position).getName());
text2.setText(persons.get(position).getAge());
return view;
}
};