You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
697 B

package com.example.myapplication.base;
import org.xutils.common.Callback;
import org.xutils.http.RequestParams;
import org.xutils.x;
import androidx.appcompat.app.AppCompatActivity;
public class BaseActivity extends AppCompatActivity implements Callback.CommonCallback<String>{
public void loadData(String url){
RequestParams params = new RequestParams(url);
x.http().get(params,this);
}
@Override
public void onSuccess(String result) {
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
}
@Override
public void onCancelled(CancelledException cex) {
}
@Override
public void onFinished() {
}
}