There is a TreeMap:
TreeMap<String,String> tmap = new TreeMap<>(); tmap.put("Value_1", "Value"); getAccessPing getPing = new getAccessPing(); getPing.execute(tmap); Is AsyncTask
class getAccessPing extends AsyncTask <TreeMap ,String,Objects> { @Override protected Objects doInBackground(TreeMap... f) { Set<Map.Entry<String,String>> set = f.entrySet(); return null; } } It is clear that in DoInBackground TreeMap will not be transferred. Because doInBackground only accepts arrays. How to pass a TreeMap?