freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

安卓基于android平臺的3g氣象軟件畢業(yè)論文-資料下載頁

2025-10-26 06:27本頁面

【導(dǎo)讀】安卓基于Android平臺的3G氣象軟件畢業(yè)論文。用戶能夠隨時隨地查詢互聯(lián)網(wǎng)所提供的服務(wù)一種高效的辦法就是將應(yīng)用系統(tǒng)的。功能拓展到手機終端上讓手機能夠通過移動網(wǎng)以及互聯(lián)網(wǎng)訪問Web網(wǎng)站并處理。在如今這個智能手機系統(tǒng)群雄紛爭的時候2020年Google推出了一款名為。Android的開源智能手機操作系統(tǒng)它采用Linux內(nèi)核開放手機聯(lián)盟OHA成員可。以任意使用和修改SDK包系統(tǒng)的開源性使其具有良好的拓展性這款軟件包括了。操作系統(tǒng)用戶界面和應(yīng)用程序即智能手機工作所需要的全部軟件Android的最。大特點是其開放性體系架構(gòu)不僅具有非常好的開發(fā)調(diào)試環(huán)境而且還支持各種可。于軟件從業(yè)人員來說Android平臺具有無限的吸引力。本文就在分析討論Android手機軟件開發(fā)技術(shù)原理的基礎(chǔ)上開發(fā)出能為用。幅增長其中第三季度安卓占全球智能手機市場的255僅次于塞班成為第二大智。面設(shè)計缺失塞班的開源并無實際意義錯失發(fā)展良機據(jù)Informa預(yù)測2020年安卓。手機銷量將超過諾基亞塞班手機屆時安卓將

  

【正文】 action androidname andonAPPWIDGET_UPDATE intentfilter metadata 指明屬性文件 metadata androidname andider androidresource xmlweatherwidget metadata 設(shè)置頁面 ConfigureActivity ConfigureActivity 繼承 Activity 并且實現(xiàn)了 ViewOnClickListener 接口AppWidget第一次啟動之前會先運行 ConfigureActivity會出現(xiàn)設(shè)置頁面用戶進行設(shè)置點擊保存按鈕就會將設(shè)置好的參數(shù)會存儲到 SQLite 中核心代碼如下 OnClick 事件 public void onClick View v switch vgetId case ave city editCitygetText toString updatetime IntegerparseInt editUpdatetimegetText toString ContentValues values new ContentValues valuesput BaseColumns_ID widgetId valuesput WidgetEntityPOSTALCODE city valuesput WidgetEntityUPDATE_MILIS updatetime valuesput WidgetEntityLAST_UPDATE_TIME 1 valuesput WidgetEntityIS_CONFIGURED 1 ContentResolver resolver getContentResolver 通過 ContentResolver 對象存儲數(shù)據(jù) resolverinsert WeatherWidgetsCONTENT_URI values ForecastServiceaddWidgetIDs new int[] widgetId 啟動獲取天氣預(yù)報信息的 startService new Intent this ForecastServiceclass setConfigureResult ActivityRESULT_OK finish break ConfigureActivity 的布局文件是 reslayoutconfigurexml 采用了LinearLayout 的布局方式代碼如下 LinearLayout xmlnsandroid chapkresandroid androidlayout_height fill_parent androidlayout_width fill_parent androidorientation vertical TextView androidid idTextView01 androidlayout_height wrap_content androidtext stringlabelCity androidlayout_width fill_parent 編輯框城市 EditText androidlayout_height wrap_content androidtext Shenzhen androideditable true androidlayout_width fill_parent androidid ideditCity TextView androidlayout_height wrap_content androidlayout_width fill_parent androidid idlableUpdateTime androidtext stringlableUpdateTime 編輯框更新頻率 EditText androidlayout_height wrap_content androidid ideditUpdatetime androidtext 2 androidlayout_width fill_parent 保存按鈕 Button androidlayout_height wrap_content androidid idbtnSave androidtext stringbtnSave androidlayout_width fill_parent 詳細頁面 DetailForecastActivity DetailForecastActivity 主要用來顯示詳細的天氣信息包括當(dāng)天和未來四天的天氣信息為了能夠以列表的形勢顯示多行數(shù)據(jù)并制定每行數(shù)據(jù)的布局使用了 ListActivity ListActivity 可以不通過 setContentView 設(shè)置布局也不必重載onCreate 方法而直接將顯示列表加載到 ListActivity 增加了使用的便利性在此工程中仍然使用 setContentView 設(shè)置布局這樣做的好處是可以在界面中設(shè)置更為復(fù)雜的顯示元素核心代碼如下 繼承 ListActivity public class DetailForecastActivity extends ListActivity private ListAdapter listAdapter Called when the activity is first created Override public void onCreate Bundle savedInstanceState superonCreate savedInstanceState 設(shè)置布局文件 detailxml setContentView il 獲取游標(biāo)訪問數(shù)據(jù)庫 Cursor forecastCursor managedQuery forecastUri ForecastEntityforecastProjection null null null listAdapter new ForecastAdapter this forecastCursor 列表適配器代碼 private class ForecastAdapter extends ResourceCursorAdapter public ForecastAdapter Context context Cursor c 設(shè)置布局文件 detailitemsxml super context ilitems c 綁定 View Override public void bindView View view Context context Cursor c ImageView icon ImageView viewfindViewById ailImage TextView day TextView viewfindViewById yText TextView condition TextView viewfindViewById nditionText TextView temp TextView viewfindViewById mpCText ForecastUtilgetDetailForecastIcon 判斷使用哪個圖標(biāo) iconsetImageResource ForecastUtilgetDetailForecastIcon cgetString 4 daysetText cgetString 1 conditionsetText cgetString 5 tempsetText cgetInt 2 cgetInt 3 在上述代碼中涉及布局文件 detailxml和 detailitemxml為節(jié)約篇幅此處不贅述 55 動態(tài)特效 動態(tài)特效是指如果天氣為多云或雨天時就會在 detailxml 布局中出現(xiàn)漂浮的云或下落的雨滴如果天氣為晴時就會在 detailxml 布局中出現(xiàn)透明度逐漸變化的太陽圖標(biāo)等通過 DetailForecastActivityupdateAnimtation 方法判斷具體顯示哪個動畫動畫效果是通過 XML文件來實現(xiàn)的按照 XML文檔的結(jié)構(gòu)來介紹Animtation 其有以下四種類型 由于篇幅限制選實現(xiàn)下落雨滴的 translaterain03xml 進行分析代碼 如下所示 下落雨滴動態(tài)效果 xml version 10 encoding utf8 set xmlnsandroid chapkresandroid Y 不變 X 從 100 到 420 重復(fù)無限次 translate androidrepeatCount 1 androidfromXDelta 100 androidtoXDelta 420 androidfromYDelta 50 androidtoYDelta 50 androidduration 15000 第六章 系統(tǒng)測試 至此已經(jīng)完成了 tyweather工程的代碼編寫工作在這一章節(jié)對 tyweather工程進行測試步驟及結(jié)果如下 啟動 Android 虛擬機 在工程名 tyweather 上點右鍵然后選擇 Run As 然后選擇 Android Application Android 虛擬機啟動較慢如下圖所示 啟動 App Widget 應(yīng)用程序 長按屏幕空白處選擇 Widget 然后選擇天氣預(yù)報 如下圖所示 2 設(shè)置界面對要顯示天氣預(yù)報的城市及更新頻率進行設(shè)置如下圖所示 3 設(shè)置好后就進入顯示頁面顯示頁面通過文字和圖片顯示當(dāng)前的天氣情況包括日期時間城市最高溫度最低溫度當(dāng)前溫度等如下圖所示 4 點擊顯示頁面就會進入詳細界面詳細頁面通過文字圖片動畫顯示當(dāng)前的天氣情況包括城市當(dāng)前天氣溫度風(fēng)向風(fēng)速濕度同時顯示今后四天的天氣情況如下圖所示 長按顯示頁面并拖動到垃圾箱即可將程序刪除如下圖所示 總結(jié) 經(jīng)過數(shù)個月的努力 Android 平臺 3G 手機氣象軟件終于完成了由于對 JAVA濃厚的興趣引發(fā)了我對 Android 的好奇心從一開始什么都不懂一直摸索著運用了很多高級技術(shù)完成了這個軟件 在這個過 程中我學(xué)會了很多知識比如 Android 環(huán)境的搭建IntentActivityServiceContentProviderSQLite 等但我學(xué)會的最重要的一點是利用現(xiàn)有的資源去解決問題在圖書館在網(wǎng)絡(luò)上尋找答案 雖然這個軟件目前運行良好但是我認為代碼的健壯行還很差在整個工程的構(gòu)思方面也不足用戶操作界面還不夠靈活這些問題還需要今后逐一解決與此同時這個軟件還可以進一步擴展例如新聞模塊百寶箱等是功能更加強大帶給用戶更好的體驗與生活的便捷 參考文獻 [1] 靳巖姚尚朗 Google Android 開發(fā)入門與實戰(zhàn)人民 郵電出版社 [2] 景保玉 2020 中國移動應(yīng)用開發(fā)現(xiàn)狀與趨勢大調(diào)查 2020 年 01 月 12 日 [3] Michael JYoung 輕松搞定 XML 林嘉勝譯 2020 年 01 月 08 日 [4]英美鮑格斯坦 BergstenH 著林琪朱濤江 譯 JSP 設(shè)計第三版 OReilly Java 系列 [M]北京中國電力出版社 2020 年 1
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1