I have a class called MainActivity.java that call an AsyncTask class. The last class have a findViewById() that in execution retur
You did not specify what parameter you pass to Connection.java AsyncTask.
One of my student is also having same problem.
Although he is using Volley Library for HttpConnection (posting data) and main issue was:
he is writing URL directly without the http protocol prefix i.e.
String post_url ="api/do_post";
Simply add http/https at front of your post url:
String post_url ="http://api/do_post";