本帖最后由 speshowfeng 于 2014-07-02 14:46:09 编辑

解决方案 »

  1.   


    public void onResponse(Response<?> response) {
    progressDialog.hide();
    Location loc = (Location) response.getData();
    // String x = loc.getMapXcord()+"";
    // String y = loc.getMapYcord()+"";
    // Log.e("地图的坐标",x+"::::::::"+y);
    // Intent locValue = new Intent();
    // locValue.putExtra(x, "xValue");
    // locValue.putExtra(y, "yValue");
    showLocation(loc);
    mothed(loc);
    }
    });
     public void mothed(Location loc ){
         
           }这样写不可以? 没看明白你想做什么。
      

  2.   


    我就是想把那个onResponse方法里面的loc拿出来,在下面的那个mothed方法里使用,你那样正好相反了,我要在mothed这个方法里判断一下那个loc是不是在一定的范围内,