Activity如何获取BroadcastReceiver从服务器请求回来的值 本帖最后由 speshowfeng 于 2014-07-02 14:46:09 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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 ){ }这样写不可以? 没看明白你想做什么。 我就是想把那个onResponse方法里面的loc拿出来,在下面的那个mothed方法里使用,你那样正好相反了,我要在mothed这个方法里判断一下那个loc是不是在一定的范围内, 请问mount命令挂载img的操作? 如何在不给别人源码的情况下也可以正常编译内核 android expandablelistview让他直接显示子目录 一个Activity里一个Listview如何切换成一个textview 关闭socket异常 菜鸟求问:移动端和网站的数据接收有什么优劣的区别? ListView 横向滑动的问题 WebService异常 android 评论功能如何实现 请教一个MTK平台sensor驱动的问题 关于Android camera后台运行的问题 新手请教安卓下怎样安装svn命令?
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 ){
}这样写不可以? 没看明白你想做什么。
我就是想把那个onResponse方法里面的loc拿出来,在下面的那个mothed方法里使用,你那样正好相反了,我要在mothed这个方法里判断一下那个loc是不是在一定的范围内,