git-syl / HttpUtils

HttpUtils Asynchronous and synchronous get post file uploads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpUtils

HttpUtils with Asynchronous and synchronous.Support get post requests, file upload

How to use: Upload File

      HttpUtils.doPostFileAsyn(new File(SDCardUtils.getSDCardPath() + "test1.jpg"),
                "http://172.16.100.106:8080/UploadFile.ashx",
                new HttpUtils.CallBack() {
                    @Override
                    public void onRequestComplete(final String result) {
                        runOnUiThread(new Runnable() {
                            @Override
                            public void run() {
                                Toast.makeText(MainActivity.this, result, Toast.LENGTH_LONG).show();
                            }
                        });
                    }
                });

About

HttpUtils Asynchronous and synchronous get post file uploads


Languages

Language:Java 100.0%