Handler

public void handleMessage(Message msg){
            closeProgressDialog();
            if(msg.what==Constant.SUCCESS){
                if(msg.obj==null){
                    CommonUtil.showInfoDialog(context, getString(R.string.net_error));
                }else{
                    callBack.processData(msg.obj, true);
                }
            }else if(msg.what==Constant.NET_FAILED){
                CommonUtil.showInfoDialog(context, getString(R.string.net_error));
            }
        }

posted @ 2013-03-14 12:03  农民阿姨  阅读(87)  评论(0编辑  收藏  举报