我正在调用soap webservice,需要显示返回的内容。但我不能这样做,因为AsyncTask很复杂,我不知道如何正确使用它。请告诉我如何通过asynctask从被调用的函数返回数据?
以下是我的代码
public class WebserviceTool {
private final String NAMESPACE = "http://tempuri.org/";
private final String URL = "http://192.168.0.11:9289/Service1.asmx";
private final String SOA
好的,这段代码就在Android开发者站点上,它将ImageView设置为Bitmap。
class BitmapWorkerTask extends AsyncTask<Integer, Void, Bitmap> {
private final WeakReference<ImageView> imageViewReference;
private int data = 0;
public BitmapWorkerTask(ImageView imageView) {
// Use a WeakReference to ensure the ImageVi