//异步加载数据
public interface MyCallBase{
void getdata(String str);
}
public static void myAsyncTask(String url, final MyCallBase myCallBase){
new AsyncTask<String , Void , String>(){
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
myCallBase.getdata(s);
}
@Override
protected String doInBackground(String... strings) {
String newdata = HttpUtil.getNewdata(strings[0]);
return newdata;
}
}.execute(url);
}