电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

Android四大组件介绍PPT演示课件

26页
  • 卖家[上传人]:日度
  • 文档编号:24081517
  • 上传时间:2017-11-11
  • 文档格式:PPTX
  • 文档大小:14.92MB
  • / 26 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、,Android Fantastic Four,Jacky Cai 2017/07/07,.,Fantastic Four,1,Activity,2,Service,3,Content Provider,4,Broadcast Receiver,5,目录,Contents,Fantastic Four,The Design Pattern Behind,Model represents an object carrying data. It can also have logic to update controller if its data changes. View represents the visualization of the data that model contains. Controller interacts with model and view, controls data flow, updates view when data changes. It keeps view and model separate.,Various Resources, ,

      2、To Do List#FF0000FF5px color/colorPrimary color/colorPrimaryDark color/colorAccent,Resource - Layout,Android supports variety of resources from simple values such as strings and colors to complex resources like layout, images and themes.,Resource - Misc,Fantastic Four,1,Activity,2,Service,3,Content Provider,4,Broadcast Receiver,5,目录,Contents,Activity - Life Cycle,Exit activity while pressing back key, home key or killed in recent apps, what will the activity do correspondingly? Whats the impact

      3、to KPI test?,Activity - Task,Whats the difference between process and task? How many tasks a process may have?Which process is the Activity-Y in figure-2 belonging to?,Task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack(back stack) in the order in which each activity is opened. For example. If the user presses theBackbutton, that new activity is finished and popped off the stack.,How new activity was added to back stac

      4、k and popped off while pressingBackbutton and destroyed, the previous one resumes.,Two tasks: Task B receives user interaction in the foreground, while Task A is in the background, waiting to be resumed.,Activity - Hands on,How to start Activity in other application? Which process does the started Activity belong to, caller app or its own?,Prerequisite Install android studio Messenger app see attachmentLets surfingResource LayoutLogcatActivity LifeCycleMVC - RecyclerViewDevice monitor toolDDMS H

      5、W,Fantastic Four,1,Activity,2,Service,3,Content Provider,4,Broadcast Receiver,5,目录,Contents,Service,Service can perform long-running operations in background, it does not provide a user interface. Another application can start a service, and it continues to run in the background even if the user switches to another application. Ways of starting service as follows.,As said earlier that service was working in background, why it will be started in foreground in the music player?What is the differen

      6、ce between these three kinds of services, which way shall we use?,Service can be started in foreground by call startForeground(),Service Life Cycle,Will onStartCommand() be called if service is only bound?,What is thread safe method?What is IPC and RPC?How was IPC implemented through AIDL in android?,Process and Thread,模拟器,真机,Intent and Components,Two Types of Intents Explicit intents- specify the component to start by name (the fully-qualified class name). Youll typically use an explicit intent

      7、 to start a component in your own, because you know the class name of the activity or service you want to start. (E.g. Intent intent= new Intent(this, B.class) Implicit intents- do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it. For example, if you want to show the user a location on a map, you can use an implicit intent to request that another capable app show a specified location on a map. (E.g. Intenti=new

      8、Intent(Intent.ACTION_VIEW,data);),AnIntentis a messaging object you can use to request an action from anothercomponent. Although intents facilitate communication between components in several ways, there are three fundamental use cases:,If no match component was found then what will happen and what we shall do to avoid it?,Intent and Intent Filters,Send an implicit IntentIntent sendIntent = new Intent();sendIntent.setAction(Intent.ACTION_SEND);sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);sendIntent.setType(text/plain);startActivity(sendIntent);Receive an implicit Intent ,

      《Android四大组件介绍PPT演示课件》由会员日度分享,可在线阅读,更多相关《Android四大组件介绍PPT演示课件》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2 2022年小学体育教师学期工作总结 2022年家长会心得体会集合15篇
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.