- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Android基础之内部培训
May 30, 2007 V2.0 Android Study Agenda Building Blocks Application Model UI IPC Security QA Building Blocks What an application would do Display UI Let user navigate from one UI to another Provide services Act due to cared events Store, retrieve, share data What does android provide Activity Service Intents Broadcast Receiver Notification Content Provider Manifest file Activity What does an activity do ? Display A single screen of your application Respond for events How to move to another screen ? start a new activity How is the previous screen(activity) ? Paused and put onto a history stack History stack Android retains history stacks for each application launched from the home screen. Allow user to navigate through screens back and forth smoothly Activity key methods public void startActivity(Intent intent); protected void onCreate(Bundle savedInstanceState); //restart and restore activity to previous state here protected void onStart(); protected void onResume(); protected void onPause(); //persistent data should be write here protected void onStop(); protected void onDestroy(); protected void onSaveInstanceState(Bundle outState); Activity lifecycle Entire lifecycle onCreate onDestroy Visible lifecycle onStart onStop Foreground lifecycle onResume onPause Service What is service Code that is long-lived and runs without a UI E.g. playing music in the background How to start a service Start service Bind service (RPC) Intent A request to do something ACTION_VIEW content://contacts/1 -- Display information about the person whose identifier is 1. ACTION_DIAL content://contacts/1 -- Display the phone dialer with the person filled in. ACTION_EDIT content://contacts/1 -- Edit information about the person whose identifier is 1. Typically used as inputs for below methods startActivity sendBroadcast startService bindService Intent resolution “Apps are equal” Any app on the mobile device can be replaced or extended -- even core components
您可能关注的文档
最近下载
- 2017年版2020年修订高中课程标准培训《高中体育与健康课程标准的继承、创新与发展》.ppt VIP
- N2010色谱工作站说明书.doc VIP
- 2017年版2020年修订高中课程标准培训《基于学科核心素养的高中体育与健康教学改革》.ppt VIP
- 涂塑钢管焊接施组方案.pptx VIP
- TCECS1179-2022 预铺防水卷材应用技术规程.pdf VIP
- 普通高中体育与健康课程标准2017年版2020年修订解读与培训课件.pptx VIP
- 2025届高考数学复习 解析几何 备考策略课件.pptx
- 仪表实操题集.doc VIP
- 2023年煤矿企业安全生产管理人员考试题库.pdf VIP
- 【总结】水利工程建设监理工作总结报告..docx VIP
文档评论(0)