android.os.NetworkOnMainThreadException
This question already has an answer here:
you can put the below code in oncreate. but it wont solve the problem it will only hide it.
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
what you actually need to do is put network related code in your createExpandableListViewDialog();
(the http request part) inside a background thread.