I'm trying to create my ArrayAdapter in order to click an element in my list and get it with all the results. This is what I'm doing.
public ArrayAdapter<UserPojo> getAdapter(Context adapterContext) {
    return new ArrayAdapter<UserPojo>(adapterContext,android.R.layout.simple_list_item_1,getmList());
}
public LinkedList<String> getmList() {
    mQueryDatabase.addListenerForSingleValueEvent(new ValueEventListener() {
        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            fetchData(dataSnapshot);
        }
        @Override
        public void onCancelled(DatabaseError databaseError) {
        }
    });
    return mList;
}
And here is where I use it in order to click an element and get the results of it
public void clickListItems(ListView listView,final DatabaseReference mRootDatabase) {
    listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
            Toast.makeText(mContext, "Clicked: " + getmList().get(position), Toast.LENGTH_SHORT).show();
            userPojo = getAdapter(mContext).getItem(position);
            Intent intent = new Intent(mContext, UserEdit.class);
            intent.putExtra("uid", mRootDatabase.getKey());
            intent.putExtra("Name",getAdapter(mContext).getItem(position).getName());
            intent.putExtra("Email", getAdapter(mContext).getItem(position).getEmail());
            intent.putExtra("Pay", getAdapter(mContext).getItem(position).getPay());
            intent.putExtra("LastCon", getAdapter(mContext).getItem(position).getLastCon());
            intent.putExtra("FirstCon", getAdapter(mContext).getItem(position).getFirstCon();
            mContext.startActivity(intent);
        }
    });
}
The problem I'm facing is at this line
new ArrayAdapter(adapterContext,android.R.layout.simple_list_item_1,getmList());
Saying this
Cannot resolve constructor 'ArrayAdapter(android.content.Context,int,LinkedList'
 
     
    