需要使用POST
使用一个参数进行简单的org.apache.http.HttpRequest
请求
使用Smali
代码还是将Java
转换为Smali
之类的东西?
像这样的代码,但是在斯马里语中。
HttpClient httpclient = HttpClients.createDefault();
HttpPost httppost = new HttpPost("http://www.mywebsite.com");
List<NameValuePair> params = new ArrayList<NameValuePair>(1);
params.add(new BasicNameValuePair("param-1", "12345"));
httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
HttpResponse response = httpclient.execute(httppost);