社区
下载资源悬赏专区
帖子详情
Android 天气预报获取下载
weixin_39821746
2019-12-02 11:30:16
Android HTTP通信 获取城市天气,注意:城市输入时用拼音
相关下载链接:
//download.csdn.net/download/qq_38900828/10424197?utm_source=bbsseo
...全文
18
回复
打赏
收藏
Android 天气预报获取下载
Android HTTP通信 获取城市天气,注意:城市输入时用拼音 相关下载链接://download.csdn.net/download/qq_38900828/10424197?utm_source=bbsseo
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Android
天气预报
实验报告
Android
天气预报
实验报告模板 public class SetCityActivity extends Activity { //定义的一个自动定位的列表 private ListView gpsView; //定义的一个省份可伸缩性的列表 private ExpandableListView provinceList; //定义的用于过滤的文本输入框 private TextView filterText; //定义的一个记录城市码的SharedPreferences文件名 public static final String CITY_CODE_FILE="city_code"; //城市的编码 private String[][] cityCodes; //省份 private String[] groups; //对应的城市 private String[][] childs; //自定义的伸缩列表适配器 private MyListAdapter adapter; //记录应用程序widget的ID private int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.set_city); gpsView = (ListView)findViewById(R.id.gps_view); provinceList= (ExpandableListView)findViewById(R.id.provinceList); //设置自动定位的适配器 gpsView.setAdapter(new GPSListAdapter(SetCityActivity.this)); //==============================GPS================================= //当单击自动定位时 gpsView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { TextView localeCity = (TextView)view.findViewById(R.id.locateCityText); localeCity.setText("正在定位..."); final LocateHandler handler = new LocateHandler(localeCity); //添加一个线程来处理定位 new Thread(){ public void run() { Map
cityMap= getLocationCityInfo(); //记录匹配的城市的索引 int provinceIndex = -1; int cityIndex = -1; //传给处理类的数据封装对象 Bundle bundle = new Bundle(); if(cityMap!=null) { //得到图家名 String country = cityMap.get(LocationXMLParser.COUNTRYNAME); //只匹配中国地区的天气 if(country!=null&&country.equals("中国")){ //得到省 String province = cityMap.get(LocationXMLParser.ADMINISTRATIVEAREANAME); //得到市 String city = cityMap.get(LocationXMLParser.LOCALITYNAME); //得到区县 String towns = cityMap.get(LocationXMLParser.DEPENDENTLOCALITYNAME); Log.i("GPS", "============"+province+"."+city+"."+towns+"=============="); //将GPS定位的城市与提供能查天气的城市进行匹配 StringBuilder matchCity = new StringBuilder(city); matchCity.append("."); matchCity.append(towns); //找到省份 for(int i=0; i
android
天气预报
程序
android
天气预报
程序源码 实现了全国各城市天气信息的
获取
可以展示最近六天的天气状况 对于
android
学习者有很大的帮助
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计).zip
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计)
天气预报
介绍做的一个
天气预报
demo,界面美观,实现了自动
获取
当前位置天气信息、根据天气更换背景图、更换城市、热门城市列表、记住设置的地址等功能。软件架构使用了
android
开发。城市管理界面:在这里可以对添加的城市进行管理 - 搜索更多城市页面:可以添加想要查看的城市 - 删除城市页面:可以删除已经添加的城市信息 - 更多设置页面:可以设置壁纸、查看版本信息和分享软件 功能非常全面,而且各个界面也很美观,项目的具体演示可以参考我主页对应的博客,代码有详细注释。
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计
Android
Studio实现
天气预报
APP系统源码(也可做
Android
本科毕业设计
Android
天气预报
Android
天气预报
的制作,其中用到了okhttp访问网络以及用到Gosn解析json数据。
android
天气预报
应用
包括天气趋势折线图,具体介绍http://blog.csdn.net/a15345189498/article/details/8952215
下载资源悬赏专区
13,655
社区成员
12,611,295
社区内容
发帖
与我相关
我的任务
下载资源悬赏专区
CSDN 下载资源悬赏专区
复制链接
扫一扫
分享
社区描述
CSDN 下载资源悬赏专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章