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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Android 天气提醒程序源码-IT计算机-毕业设计.zip (120个子文件)
resources.ap_ 156KB
uad-WeatherReporter.apk 185KB
ReportViewDetail.class 9KB
WeatherCondition.class 7KB
WeatherRecord.class 7KB
WeatherAlertService.class 7KB
DBHelper.class 6KB
ReportViewSavedLocations.class 6KB
ReportSpecifyLocation.class 5KB
YWeatherHandler.class 5KB
YWeatherFetcher.class 4KB
ReportViewDetail$1.class 4KB
WeatherAlertService$3.class 4KB
WeatherAlertService$1.class 2KB
ReportViewSavedLocations$1.class 2KB
WeatherForecast.class 2KB
R$drawable.class 2KB
DBHelper$DBOpenHelper.class 2KB
ReportSpecifyLocation$1.class 2KB
ReportViewDetail$3.class 2KB
WeatherAlertServiceReceiver.class 2KB
R$string.class 1KB
ReportViewDetail$2.class 1KB
ReportViewSavedLocations$2.class 1KB
DBHelper$Location.class 1KB
WeatherAlertService$2.class 1KB
ReportSpecifyLocation$3.class 983B
R$id.class 975B
LocationHelper.class 894B
ReportSpecifyLocation$2.class 880B
R.class 619B
R$style.class 576B
R$layout.class 556B
Constants.class 483B
R$attr.class 355B
.classpath 296B
classes.dex 54KB
cond33.gif 3KB
cond43.gif 3KB
cond27.gif 3KB
cond31.gif 3KB
cond17.gif 3KB
cond4.gif 3KB
cond35.gif 3KB
cond3.gif 3KB
cond28.gif 3KB
cond7.gif 2KB
cond16.gif 2KB
cond41.gif 2KB
cond42.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
cond38.gif 2KB
cond37.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
cond24.gif 2KB
cond23.gif 2KB
cond15.gif 2KB
cond46.gif 996B
cond45.gif 980B
cond47.gif 972B
ReportViewDetail.java 14KB
WeatherAlertService.java 9KB
WeatherCondition.java 8KB
DBHelper.java 8KB
WeatherRecord.java 7KB
R.java 7KB
YWeatherHandler.java 6KB
ReportSpecifyLocation.java 5KB
ReportViewSavedLocations.java 4KB
YWeatherFetcher.java 4KB
WeatherForecast.java 1KB
WeatherAlertServiceReceiver.java 771B
LocationHelper.java 742B
Constants.java 249B
1_120818171622_1.jpg 34KB
1_120818171622_2.jpg 16KB
共 120 条
- 1
- 2
资源评论
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功