""
目錄
理論論文
第一章安卓概述.....................................3
1.1移動(dòng)設(shè)備開發(fā)平臺.....................................四
1.1.1 ..............................移動(dòng)信息設(shè)備系統(tǒng)4
1.1.2 ......................................,開放手機(jī)聯(lián)盟5
1.2 Android簡介...............................................七
1 . 2 . 1 Android的歷史....................................七
1 . 2 . 2 Android的優(yōu)缺點(diǎn)................................9
1 . 2 . 3 Android平臺的技術(shù)架構(gòu)..................10
1.3安卓應(yīng)用程序構(gòu)成.............................11
1.3.1活動(dòng)(活動(dòng)).....................................12
1.3.2廣播接收器(broadcast receiver)........12
1.3.3 ......................................服務(wù)12
1.3.4 ...........of ContentProvider)...........13
1.4第一款A(yù)ndroid應(yīng)用................................13
1.4.1創(chuàng)建新的Android項(xiàng)目.............13
1.4.2運(yùn)行Android應(yīng)用.....................19
本章總結(jié)如下............................................................20
運(yùn)動(dòng)............................................................20在本章中
第二章活動(dòng)...................................21
2.1活動(dòng)介紹.............................................22
2.1.1 ..............................活動(dòng)生命周期22
2.1.2創(chuàng)建和注冊活動(dòng)..........................28
2.1.3 ..............................活動(dòng)啟動(dòng)模式29
2.1.4 ..............................活動(dòng)跳轉(zhuǎn)模式31
2.2 Android使用中的資源.............................37
2.2.1字符串資源........................................39
2.2.2圖片資源............................................41
本章總結(jié)如下............................................................42
運(yùn)動(dòng)............................................................42在本章中
第3章用戶界面...........................................43
3.1用戶界面元素分類...................................44
3.1.1 .................................視圖組件44
3.1.2 .......................視圖組44
3.1.3布局管理(布局)..............................45
3.2事件處理機(jī)制...........................................46
3.3布局管理(布局).....................................52
3.3.1線性布局....................53
3.3.2相對布局..................56
3.3.3表格布局......................58
3.3.4絕對布局................61
3.3.5框架布局....................62
3.3.6網(wǎng)格布局.......................63
3.4吐司和對話框........................64
3.4.1吐司.................................65
3.4.2對話框................................................66
3.5通用小部件組件......................................76
3.5.1小部件組件常規(guī)屬性........................76
3.5.2文本框(文本視圖)..............................76
3.5.3按鈕.......................................77
3.5.4編輯文本................................78
3.5.5復(fù)選框.............................78
3.5.6無線電組..................79
3.5.7下拉列表(微調(diào)器).............................79
3.5.8圖像視圖.......................86
3.5.9滾動(dòng)視圖........................87
3.5.10 GridView........................92
3.5.11列表視圖.........................96
3.5.12回收器視圖...............100
3.6菜單.........................................................105
3.6.1選項(xiàng)菜單...................105
3.6.2 ..............上下文菜單107的
3.6.3彈出菜單................110
3.7行動(dòng)吧.................................................114
3.7.1顯示和隱藏動(dòng)作欄.....................114
3.7.2修改圖標(biāo)和標(biāo)題..............................115
3.7.3添加操作按鈕.............................116
3.7.4添加導(dǎo)航按鈕..................................118
3.7.5添加操作視圖..............................118
3.8適配器......................................119
3.8.1 ArrayAdapter).............120
3.8.2簡單適配器)............122
3.8.3簡單光標(biāo)適配器
(SimpleCursorAdapter).....................123
3.8.4用戶定義的適配器(基本適配器)...........125
本章總結(jié)如下..........................................................127
運(yùn)動(dòng)..........................................................128在本章中
第四章意圖...................................129
4.1意圖概述...............................................130
4.1.1 ................................意圖合成屬性130
4.1.2使用意圖啟動(dòng)組件.......................137
4.2意向數(shù)據(jù)傳輸.......................................142
4.2.1 ........................................意圖傳輸值143
4.2.2 ......................................由束146傳輸
4.3設(shè)置活動(dòng)權(quán)限..................................149
本章總結(jié)如下..........................................................152
運(yùn)動(dòng)..........................................................152在本章中
第五章廣播...........................153
5.1廣播簡介........................................154
5.1.1 .............................在廣播154的三個(gè)元素中
5.1.2 .........................廣播生命周期154
5.1.3廣播分類.................................154
5.2廣播接收器....................................155
5.2.1廣播接收器注冊于....................155
5.2.2廣播接收器優(yōu)先級................161
本章總結(jié)如下..........................................................162
運(yùn)動(dòng)..........................................................162在本章中
第六章服務(wù)................................163
6.1服務(wù)介紹............................................164
6.2服務(wù)功能............................................164
6.3服務(wù)的實(shí)施............................................165
6.3.1創(chuàng)建................................服務(wù)等級165
6.3.2啟動(dòng)服務(wù).....................................166
6.3.3停止服務(wù).....................................169
6.3.4服務(wù)示例.....................................169
6.4 Android系統(tǒng)服務(wù)...................................175
本章總結(jié)如下..........................................................181
運(yùn)動(dòng)..........................................................182在本章中
第7章數(shù)據(jù)存儲(chǔ).........................................183
7.1數(shù)據(jù)存儲(chǔ)簡介.........................................184
7.2共享參考存儲(chǔ)模式....................184
7.2.1共享引用的訪問接口...184
7.2.2應(yīng)用.....................在共享首選項(xiàng)186中
7.3文件存儲(chǔ)模式..........................................191
7.3.1文件操作...........................................192
7.3.2文件申請...........................................192
7.4 SQLite存儲(chǔ)模式.....................................197
7 . 4 . 1 SQLite簡介......................................197
7.4.2 SQLite數(shù)據(jù)庫操作..........................197
7.4.3 SQLiteOpenHelper...........................202
7.5數(shù)據(jù)共享內(nèi)容提供商......................208
7.5.1內(nèi)容提供商................................208
7.5.2內(nèi)容解析器................................209
內(nèi)容提供商應(yīng)用程序.......................211
本章總結(jié)如下..........................................................213
本章練習(xí)..........................................................214
第八章片段...........................215
8.1片段簡介.........................................216
8.1.1片段的作用..............................216
8.1.2碎片的特征..............................217
8.1.3 ..........................片段生命周期217
8.2創(chuàng)建片段.........................................222
8.2.1靜態(tài)創(chuàng)建..........................................222
8.2.2創(chuàng)建..........................................動(dòng)態(tài)224
本章總結(jié)如下..........................................................230
運(yùn)動(dòng)..........................................................230在本章中
第九章網(wǎng)絡(luò)傳播.........................................231
9.1網(wǎng)絡(luò)通信簡介.........................................232
9.2插座通信.............................................232
9.2.1插座和服務(wù)器插座....................232
9.2.2插座應(yīng)用......................................234
9.3 HTTP網(wǎng)絡(luò)編程......................................241
9.3.1 HttpURLConnection.........................241
9.3.2 HttpClient..........................................246
9.4網(wǎng)絡(luò)工具包.....................................................248
9.4.1介紹.....................................使用WebKit 249
9.4.2網(wǎng)絡(luò)視圖組件..........................250
9.5 JSON數(shù)據(jù)..............................................252
9.5.1本地分析..........................................253
9.5.2 GSON決議......................................258
9.6異步任務(wù)異步任務(wù)..............................260
本章總結(jié)如下..........................................................265
運(yùn)動(dòng)..........................................................266在本章中
第十章消息處理機(jī)制.............................267
10.1消息處理機(jī)制簡介...............................268
10.1.1 ............................子線程打開模式268
10.1.2消息處理機(jī)制示例........................269
10.2消息處理機(jī)制的詳細(xì)說明...............................273
10.2.1信息..........................................273
10.2.2消息隊(duì)列................................274
10.2.3活套.............................................274
10.2.4處理程序...........................................278
本章總結(jié)如下..........................................................285
運(yùn)動(dòng)..........................................................285在本章中
第十一章安卓特色開發(fā)......................287
11.1傳感器...................................................288
11.1.1傳感器簡介....................................288
11.1.2傳感器應(yīng)用....................................290
11.2地圖和定位...........................................292
11.2.1百度地圖SDK介紹......................292
11.2.2使用百度地圖SDK開發(fā)
定位功能........................................292
11.3動(dòng)作欄擴(kuò)展功能..............................298
本章總結(jié)如下..........................................................301
運(yùn)動(dòng)..........................................................302本章
實(shí)用文章
練習(xí)1安卓概述..................................305
實(shí)踐指南..........................................................305
實(shí)踐1.1發(fā)展環(huán)境與建筑............................305
練習(xí)1.2創(chuàng)建AVD(Android模擬器)...309
實(shí)踐1.3 DDMS........................................311
知識發(fā)展..........................................................312
拓展訓(xùn)練..........................................................313
練習(xí)2活動(dòng)..................................314
實(shí)踐指南..........................................................314
練習(xí)2.1訂購系統(tǒng)的功能結(jié)構(gòu)分析............314
練習(xí)2.2創(chuàng)建訂購系統(tǒng)項(xiàng)目....................315
練習(xí)2.3創(chuàng)建訂購系統(tǒng)實(shí)體類................316
知識發(fā)展..........................................................318
拓展訓(xùn)練..........................................................323
練習(xí)3用戶界面..........................................324
實(shí)踐指南..........................................................324
練習(xí)3.1創(chuàng)建登錄界面............................324
練習(xí)3.2創(chuàng)建主菜單界面........................330
知識發(fā)展..........................................................334
拓展訓(xùn)練..........................................................351
練習(xí)4意圖....................................353
實(shí)踐指南..........................................................353
練習(xí)4.1改進(jìn)登錄功能............................353
練習(xí)4.2訂購功能....................................355
實(shí)踐4.3....................................結(jié)賬功能372
知識發(fā)展..........................................................383
拓展訓(xùn)練..........................................................384
練習(xí)5廣播..............................385
實(shí)踐指南..........................................................385
實(shí)踐和完善訂購功能....................................385
知識發(fā)展..........................................................388
拓展訓(xùn)練..........................................................391
實(shí)踐6服務(wù).................................392
實(shí)踐指南..........................................................392
練習(xí)更新數(shù)據(jù)功能..................................392
知識發(fā)展..........................................................397
拓展訓(xùn)練..........................................................402
練習(xí)7數(shù)據(jù)存儲(chǔ)..........................................403
實(shí)踐指南..........................................................403
練習(xí)7.1創(chuàng)建數(shù)據(jù)庫................................403
練習(xí)7.2數(shù)據(jù)更新功能............................405
練習(xí)7.3操作數(shù)據(jù)庫................................408
練習(xí)7.4訂購系統(tǒng)的配置功能................412
知識發(fā)展..........................................................418
拓展訓(xùn)練..........................................................426
練習(xí)8片段............................427
實(shí)踐指南..........................................................427
練習(xí)查表功能............................................427
知識發(fā)展..........................................................431
拓展訓(xùn)練..........................................................436
練習(xí)9網(wǎng)絡(luò)交流..........................................437
實(shí)踐指南..........................................................437
練習(xí)9.1服務(wù)器端程序............................437
練習(xí)9.2與服務(wù)器通信............................459
練習(xí)9.3登錄驗(yàn)證....................................462
練習(xí)9.4更新數(shù)據(jù)....................................468
練習(xí)9.5表格檢查功能....................................470
練習(xí)9.6訂單功能....................................477
練習(xí)9.7結(jié)賬功能....................................482
知識發(fā)展..........................................................485
拓展訓(xùn)練..........................................................486
練習(xí)10第三方框架...................................487
實(shí)踐指南..........................................................487
練習(xí)10.1黃油刀................................487
練習(xí)10.2畢加索......................................498
練習(xí)10.3 x utils.......................................502
拓展訓(xùn)練..........................................................529
附錄小部件列表..........................530
1.《程序設(shè)計(jì)導(dǎo)引及在線實(shí)踐 應(yīng)用型本科計(jì)算機(jī)《Android程序設(shè)計(jì)及實(shí)踐 》》援引自互聯(lián)網(wǎng),旨在傳遞更多網(wǎng)絡(luò)信息知識,僅代表作者本人觀點(diǎn),與本網(wǎng)站無關(guān),侵刪請聯(lián)系頁腳下方聯(lián)系方式。
2.《程序設(shè)計(jì)導(dǎo)引及在線實(shí)踐 應(yīng)用型本科計(jì)算機(jī)《Android程序設(shè)計(jì)及實(shí)踐 》》僅供讀者參考,本網(wǎng)站未對該內(nèi)容進(jìn)行證實(shí),對其原創(chuàng)性、真實(shí)性、完整性、及時(shí)性不作任何保證。
3.文章轉(zhuǎn)載時(shí)請保留本站內(nèi)容來源地址,http://f99ss.com/yule/1077437.html