I want to extend ArrayAdapter but call
ArrayAdapter.createFromResource(context,textArrayResId,textViewResId);
instead of
super(context,textArrayResId,textViewResId)
inside myArrayAdapter constructor, but I'm always getting a there is no default constructor available in android.widget.ArrayAdapter error.
It looks like that having to call super is obligatory, so when I use it instead, the code compiles fine. Is what I ask to do possible ?
public class myArrayAdapter<CharSequence> extends ArrayAdapter {
public myArrayAdapter(Context context, int textArrayResId, int textViewResId) {
// super(context,textArrayResId,textViewResId);
ArrayAdapter.createFromResource(context,textArrayResId,textViewResId);
}
}