I been following online tutorials on how to insert data into a database from an android app and have everything working except this small part
List
I just ran into the same problem. The deprecated classes from org.apache.http have been removed in API 23.
I ended up using android.util.Pair. It works perfectly, and the code is shorter too:
List> params = new ArrayList<>();
params.add(new Pair<>("username", username));
params.add(new Pair<>("password", password));