Use android network module — HttpURLConnection to replace the libcurl on the android platform

Please remove unneeded code.