1

Custom Sorted Array List using ArrayAdapter undefined constructor

view story
linux-howto

http://stackoverflow.com – Here is my code: private class MyArrayAdapter extends ArrayAdapter<String> { private final SortedArrayList<String> values; private final LayoutInflater inflater; public MyArrayAdapter(Context context, SortedArrayList<String> values) { super(context, R.layout.item_layout, values); this.values = values; this.inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } The problem is: "The constructor ArrayAdapter(Context, int, SortedArrayList) is undefined" What can I do? Any suggestions? (HowTos)