Unlocking Android - WeatherReporter
---------------------------------------------
Concept:
---------
Weather information application,
combined with location based weather alerting mechanism.
General idea, a hand-held type of weather radio that
updates it's own current location.
(And we had this example/idea around before the two or three similar apps
now in the Android App Store and before the Developer Challenge ;).)
Details:
---------
Uses an online weather API (Yahoo! Weather) to get weather details
for the current device location using providers, AND allows user to
specify other locations using postal code
(enhancement use an optional MapView for specified location input, or other).
Once a location is shown, with weather details, including forecast,
the user also has the option to enable or disable alerts for that
location (two location types, current device location - which updates
itself, and user specified locations).
If user enables alerts the application will use a Notification to
warn the user when severe weather is in either the current device
location, or one of their selected saved (and alert enabled) locations.
*Note - in dev mode the alert polling threshold is very low (15 seconds).
The plan is to make this default to every 4-6 hours in production mode
(and allow the user to change it if needed).
Android Specifics:
-------------------
Written with two main goals in mind: first - be very useful to the user,
second - exercise many of the Android architectural aspects.
Uses a background service to poll for weather conditions for alert enabled
locations. Service is started at boot via BroadcastReciever (and if not already
running is also started when first Activity is invoked).
Uses SQLite to store saved location information.
Uses a custom scheme and authority as a registered Intent to allow other
applications to invoke it easily with a "weather://com.msi.manning?loc=ZIP" style URI.
Tested with Android 1.1 and 1.5.
--------------------------------------
Checkout:
svn co http://unlocking-android.googlecode.com/svn/chapter4/trunk/WeatherReporter
Eclipse:
Setup a SVN repository for the UAD code project (http://unlocking-android.googlecode.com/svn).
Then checkout chapter4/trunk/WeatherReporter as an Eclipse project.
没有合适的资源?快使用搜索试试~ 我知道了~
Google Android揭秘
共463个文件
xml:138个
java:106个
png:53个
4星 · 超过85%的资源 需积分: 0 108 下载量 119 浏览量
2010-08-01
11:19:32
上传
评论 1
收藏 1.75MB ZIP 举报
温馨提示
作者: (美)Frank Ableson Charlie Collins Robi Sen 译者: 张波;高朝勤;杨越[同译者作品] 丛书名: 图灵程序设计丛书 出版社:人民邮电出版社 这是一本全面介绍Android 相关知识的图书,全书分为三个部分,由浅入深,从Android 初级知识,讲到一些关于核心编程的实用示例,最后还讨论了一些高级应用程序的话题。在介绍Android 编程的时候,各主题都使用了独立的示例来演示,这些示例也都可单独作为想在Android 编程中大展拳脚的编程新手或资深开发者的参考。 本书适合Android 开发人员和技术爱好者阅读。如果能从头到尾读完本书,读者将对Android 有深入的了解,从而能在Android 开发中大显身手。
资源推荐
资源详情
资源评论
收起资源包目录
Google Android揭秘 (463个子文件)
ISimpleMathService.aidl 158B
pullandroid.bat 7KB
godaytime.bat 487B
buildhellodynamic.bat 356B
buildhello.bat 160B
daytime.c 3KB
testcrt.c 735B
hello.c 204B
start.c 162B
.classpath 392B
.classpath 273B
.classpath 273B
.classpath 273B
.classpath 273B
.classpath 273B
.classpath 265B
.classpath 265B
.classpath 265B
.classpath 265B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 238B
.classpath 232B
.classpath 232B
.classpath 232B
.classpath 232B
.classpath 232B
.classpath 232B
.classpath 232B
.classpath 226B
joblist.dtd 458B
cond33.gif 3KB
cond43.gif 3KB
cond27.gif 3KB
cond31.gif 3KB
cond17.gif 3KB
cond3.gif 3KB
cond4.gif 3KB
cond35.gif 3KB
cond28.gif 3KB
cond7.gif 2KB
cond41.gif 2KB
cond42.gif 2KB
cond16.gif 2KB
cond30.gif 2KB
cond44.gif 2KB
cond1.gif 2KB
cond2.gif 2KB
cond10.gif 2KB
cond6.gif 2KB
cond18.gif 2KB
cond29.gif 2KB
cond36.gif 2KB
cond34.gif 2KB
cond37.gif 2KB
cond38.gif 2KB
cond5.gif 2KB
cond32.gif 2KB
cond12.gif 2KB
cond39.gif 2KB
cond40.gif 2KB
cond11.gif 2KB
cond14.gif 2KB
cond22.gif 2KB
cond8.gif 2KB
cond26.gif 2KB
cond21.gif 2KB
cond19.gif 2KB
cond9.gif 2KB
cond25.gif 2KB
cond13.gif 2KB
cond20.gif 2KB
cond23.gif 2KB
cond24.gif 2KB
cond15.gif 2KB
cond46.gif 996B
cond45.gif 980B
cond47.gif 972B
gpxexample.gpx 3KB
ReportViewDetail.java 14KB
MapViewActivity.java 14KB
CloseJob.java 11KB
HTTPRequestHelper.java 10KB
WeatherAlertService.java 9KB
WidgetProvider.java 9KB
NDBCHandler.java 8KB
ProviderExplorer.java 8KB
WeatherCondition.java 8KB
ReviewDetail.java 8KB
GoogleClientLogin.java 8KB
DBHelper.java 8KB
共 463 条
- 1
- 2
- 3
- 4
- 5
echoes2017
- 粉丝: 7
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页