SlideShare une entreprise Scribd logo
1  sur  14
Android       应   发
          术
发环


Java SDK 1.6

Android SDK

IED - Eclipse

Android   发     Eclipse   - ADT
发环   览
src      java    码    录
                              Android 项   构
assets - 资           录

res - 资          录

      layout - UI

      drawable       图    资

      menu           单树   义
src      java    码    录
                                   Android 项   构
 assets - 资           录

 res - 资          录

       layout - UI

       drawable       图    资

       menu           单树   义


AndroidManifest.xml - 应        义   单
AndroidManifest.xml
 manifest

    use-permission

    application

       activity

       service

       provider

       receiver
Android 项
Activity - UI

Service         务

Receiver    监   统
Android 项
Activity - UI

Service           务

Receiver      监   统


  AndroidManifest.xml



    Context
Context               间          协

startActivity(Intent) -   Activity

startService(Intent)       Service

stopService(Intent) -

sendBroadcast(Intent) -     Receiver

getContentResolver -      Provider
Android                                  App
 Eclipse    IED        优

 Eclipse Platform      发        业        户

                  义             间   沟   协议

                  义扩        头            实现    扩
       头                   过扩        沟             对
     谁
Intent            构

Intent(String action)

   调         App Activity时

Intent(Context context, Class acvtivityClass)

   调   App        Activity时

Intent.putExtra(String key, * value)

                         标Activity
Android为应                                       资


    库   Context.getDatabasePath()

    设
PreferenceManager.getDefaultSharedPreferences(Context)

  态资          Context.getResources()
谢谢观
Acitvity
      &
 样Layout

Contenu connexe

Similaire à Tec android-01

Android应用开发 - 沈大海
Android应用开发 - 沈大海Android应用开发 - 沈大海
Android应用开发 - 沈大海Shaoning Pan
 
Android resource-management
Android resource-managementAndroid resource-management
Android resource-managementLucas Xu
 
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式Shengyou Fan
 
Thinking in React by Deot
Thinking in React by Deot Thinking in React by Deot
Thinking in React by Deot 荣德 周
 
Android進階UI控制元件
Android進階UI控制元件Android進階UI控制元件
Android進階UI控制元件艾鍗科技
 
移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发fangdeng
 
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用Shengyou Fan
 
Android 介面設計
Android 介面設計Android 介面設計
Android 介面設計PingLun Liao
 
Android 响应式 UI 实践
Android 响应式 UI 实践 Android 响应式 UI 实践
Android 响应式 UI 实践 Shawn Wang
 
ASP.NET Core 2.1設計新思維與新發展
ASP.NET  Core 2.1設計新思維與新發展ASP.NET  Core 2.1設計新思維與新發展
ASP.NET Core 2.1設計新思維與新發展江華 奚
 
Android動態ui介面設計
Android動態ui介面設計Android動態ui介面設計
Android動態ui介面設計艾鍗科技
 
基于Ivy ant的java构建初探
基于Ivy ant的java构建初探基于Ivy ant的java构建初探
基于Ivy ant的java构建初探Anson Yang
 
用JAX-RS和Jersey完成RESTful Web Services
用JAX-RS和Jersey完成RESTful Web Services用JAX-RS和Jersey完成RESTful Web Services
用JAX-RS和Jersey完成RESTful Web Servicesjavatwo2011
 
用HTML5新特性开发移动app
用HTML5新特性开发移动app用HTML5新特性开发移动app
用HTML5新特性开发移动appYujie Jiang
 
2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aksRoberson Liou
 
Huangjing renren
Huangjing renrenHuangjing renren
Huangjing renrend0nn9n
 
Android -汇博
Android -汇博Android -汇博
Android -汇博dlqingxi
 
移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发完颜 小卓
 
初窺 Flutter 開發.pdf
初窺 Flutter 開發.pdf初窺 Flutter 開發.pdf
初窺 Flutter 開發.pdfgdscnycu
 
通行证项目技术分享
通行证项目技术分享通行证项目技术分享
通行证项目技术分享Tony Deng
 

Similaire à Tec android-01 (20)

Android应用开发 - 沈大海
Android应用开发 - 沈大海Android应用开发 - 沈大海
Android应用开发 - 沈大海
 
Android resource-management
Android resource-managementAndroid resource-management
Android resource-management
 
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
 
Thinking in React by Deot
Thinking in React by Deot Thinking in React by Deot
Thinking in React by Deot
 
Android進階UI控制元件
Android進階UI控制元件Android進階UI控制元件
Android進階UI控制元件
 
移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发
 
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用
以 Kotlin Multiplatform Mobile (KMM) 開發跨平台行動應用
 
Android 介面設計
Android 介面設計Android 介面設計
Android 介面設計
 
Android 响应式 UI 实践
Android 响应式 UI 实践 Android 响应式 UI 实践
Android 响应式 UI 实践
 
ASP.NET Core 2.1設計新思維與新發展
ASP.NET  Core 2.1設計新思維與新發展ASP.NET  Core 2.1設計新思維與新發展
ASP.NET Core 2.1設計新思維與新發展
 
Android動態ui介面設計
Android動態ui介面設計Android動態ui介面設計
Android動態ui介面設計
 
基于Ivy ant的java构建初探
基于Ivy ant的java构建初探基于Ivy ant的java构建初探
基于Ivy ant的java构建初探
 
用JAX-RS和Jersey完成RESTful Web Services
用JAX-RS和Jersey完成RESTful Web Services用JAX-RS和Jersey完成RESTful Web Services
用JAX-RS和Jersey完成RESTful Web Services
 
用HTML5新特性开发移动app
用HTML5新特性开发移动app用HTML5新特性开发移动app
用HTML5新特性开发移动app
 
2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks
 
Huangjing renren
Huangjing renrenHuangjing renren
Huangjing renren
 
Android -汇博
Android -汇博Android -汇博
Android -汇博
 
移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发移动互联网时代的Mobile app设计和开发
移动互联网时代的Mobile app设计和开发
 
初窺 Flutter 開發.pdf
初窺 Flutter 開發.pdf初窺 Flutter 開發.pdf
初窺 Flutter 開發.pdf
 
通行证项目技术分享
通行证项目技术分享通行证项目技术分享
通行证项目技术分享
 

Tec android-01

  • 1. Android 应 发 术
  • 2. 发环 Java SDK 1.6 Android SDK IED - Eclipse Android 发 Eclipse - ADT
  • 3. 发环
  • 4. src java 码 录 Android 项 构 assets - 资 录 res - 资 录 layout - UI drawable 图 资 menu 单树 义
  • 5. src java 码 录 Android 项 构 assets - 资 录 res - 资 录 layout - UI drawable 图 资 menu 单树 义 AndroidManifest.xml - 应 义 单
  • 6. AndroidManifest.xml manifest use-permission application activity service provider receiver
  • 7. Android 项 Activity - UI Service 务 Receiver 监 统
  • 8. Android 项 Activity - UI Service 务 Receiver 监 统 AndroidManifest.xml Context
  • 9. Context 间 协 startActivity(Intent) - Activity startService(Intent) Service stopService(Intent) - sendBroadcast(Intent) - Receiver getContentResolver - Provider
  • 10. Android App Eclipse IED 优 Eclipse Platform 发 业 户 义 间 沟 协议 义扩 头 实现 扩 头 过扩 沟 对 谁
  • 11. Intent 构 Intent(String action) 调 App Activity时 Intent(Context context, Class acvtivityClass) 调 App Activity时 Intent.putExtra(String key, * value) 标Activity
  • 12. Android为应 资 库 Context.getDatabasePath() 设 PreferenceManager.getDefaultSharedPreferences(Context) 态资 Context.getResources()
  • 14. Acitvity & 样Layout

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n