天天看点

callbacks

//定义一个接口

    public interface Icallbacks{

        void updateUiByjson(String jsonstr);

    }

  在AsyncTask的onPostExecute方法中调用去返回请求的数据

 protected void onPostExecute(String s) {

        super.onPostExecute(s);

        //解析,封装到bean,更新ui组件

        icallbacks.updateUiByjson(s);

    }