Android基础之内部培训.ppt

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 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

文档评论(0)

文档精品 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6203200221000001

1亿VIP精品文档

相关文档