西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 9 Service and Broadcast Receiver

Android Programming Lecture 9 Service and Broadcast Receiver
Android Programming Lecture 9 Service and Broadcast Receiver

Sample App:Music Player With A Love Like You 2
Sample App: Music Player 2

Sample App (1/7) Click on the icon and get the startup 173 Launcher activity is started by the sending of a special intent-the Launcher intent o Application Manifest declares which Java class accepts the launcher intent 3
Sample App (1/7) • Click on the icon and get the startup • Launcher activity is started by the sending of a special intent – the Launcher intent o Application Manifest declares which Java class accepts the launcher intent 3

Sample App(2/7) Left side is a menu for different views The activity has a few fragments(sub- 9☑75胡 activity)for navigation Listen Now o Youtube tutorial My Library Tablet Playlists Click on Selecting an item updates Fragment B My Library Activity A contains Fragment A and Fragment B 4
Sample App (2/7) • Left side is a menu for different views • The activity has a few fragments (subactivity) for navigation o Youtube tutorial • Click on My Library 4

Lisiun Now Sample App(3/7) ● Click Albums to get into the Albums sub-activity (fragment) o Tab Ul can be easily achieved 73 介Lby using Tab Host ViewGroup A域57荐 Palette □Form Widgets Text Fields ·Click □Layouts Composite an album name ListView ExpandableList American ldiot于mercano目 ▣GridView团ScrolIView HorizontalScrollView SearchView c 2o2no ④WebView
Sample App (3/7) • Click Albums to get into the Albums sub-activity (fragment) o Tab UI can be easily achieved using Tab Host ViewGroup • Click an album name 5

Sample App (4/7) Shows the album in a different activity Click on a track for immediate 941172四 Moonlight Sonata playback o Click adds it to the task bar o Launches a service to play Moonlight Sonata Click on the back button to return to the previous activity Allegretto o Android maintains a stack of activities for“back"” geomo I ⊙ 与 Refer to: http://developer.android.com/guide/components/tasks-and-back-stack.html 6
Sample App (4/7) • Shows the album in a different activity • Click on a track for immediate playback o Click adds it to the task bar o Launches a service to play • Click on the back button to return to the previous activity o Android maintains a stack of activities for “back” 6 Refer to: http://developer.android.com/guide/components/tasks-and-back-stack.html

Sample App(5/7) Playback continues,even if the user navigates away Even if the user locks the phone,as long as the user does not shut down the app
Sample App (5/7) • Playback continues, even if the user navigates away • Even if the user locks the phone, as long as the user does not shut down the app 7

Sample App(6/7) Service can be controlled by a widget when locked Also from the notification bar By clicking the notification bar,we can get back to the music player 4172四 41 Moonignt Sonatz Moonlight Sonata 角 Prestogta如 onmh ← 8
Sample App (6/7) • Service can be controlled by a widget when locked • Also from the notification bar • By clicking the notification bar, we can get back to the music player 8

Sample App (7/7) Service interrupted when a call 飞Home come Home 04-660 HOME o A Broadcast Event that all the INCOMING CALL (registered)apps would receive! Resumes after the call hangs up
Sample App (7/7) • Service interrupted when a call come o A Broadcast Event that all the (registered) apps would receive! • Resumes after the call hangs up 9

号7的 73 个hkQ手 介面y Listen Now Playlists ©婴春 411720 1731m Moonlight Sonata NCOMING CALI Moonlight Sonata Adagio sostnuto geme 10
10
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 8 Multi-threading.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 7 Data Persistence.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 6 List View and Custom View.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 5 Intent.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 4 Activity, Intent and UI.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 3 File structure and Layout.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 2 Introduction to Java and Object Oriented Programming.pptx
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 1 Introduction to Network Computing(主讲:栾浩).pptx
- 《算法基础》课程教学资源(学习笔记)算法基础 课堂笔记.pdf
- 长沙理工大学:《微机原理与接口技术》课程教学资源(大纲教案)微机原理与应用授课教案(负责人:叶青,打印版).pdf
- 同济大学:《逻辑网络》课程电子教案(PPT课件)数字设计中的基本电路 Introduction to the circuits in digital design.ppt
- 同济大学:《逻辑网络》课程电子教案(PPT课件)异步时序电路分析与设计 Introduction to asynchronous circuits design.ppt
- 同济大学:《逻辑网络》课程电子教案(PPT课件)寄存器与计数器 register and counters.ppt
- 同济大学:《逻辑网络》课程电子教案(PPT课件)同步时序电路设计中的问题 Advanced design issue.ppt
- 同济大学:《逻辑网络》课程教学资源(试卷习题)考试样卷.doc
- 同济大学:《逻辑网络》课程教学资源(教学大纲)逻辑网络(英文)Logic networks.doc
- 同济大学:《逻辑网络》课程教学资源(教学大纲)逻辑网络(中文,负责人:周俊鹤).doc
- 北京化工大学:《数据结构》课程PPT教学课件(C语言描述)第六章 查找.ppt
- 北京化工大学:《数据结构》课程PPT教学课件(C语言描述)第五章 图.ppt
- 北京化工大学:《数据结构》课程PPT教学课件(C语言描述)第三章 栈和队列.ppt
- 西安电子科技大学:《网络计算》课程PPT教学课件(Android Programming)Lecture 10 Multimedia.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 01 Soft Testing - Fundamentals of Testing.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 02 Testing throughout the Software Lifecycle.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 03 Static Techniques.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 04 Test Design Techniques.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 05 Test Management.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)Chapter 06 Tool Support for Testing.pptx
- 同济大学:《软件测试》课程电子教案(PPT课件)How To Do High Quality Research, Write Acceptable Papers, and Make Effective Presentations?.ppt
- 《软件测试》课程电子教案(参考资料)Standard glossary of terms used in Software Testing(Version 2.0).pdf
- 《软件测试》课程电子教案(参考资料)Certified Tester Foundation Level Syllabus Released(Version 2011).pdf
- 《软件测试》课程电子教案(参考资料)Certified Tester Foundation Level Syllabus Released(Version 2011).pdf
- 河南科技大学:信息工程学院教育技术学专业本科课程教学大纲(汇编).pdf
- 吉林大学:《人工智能》课程电子教案(PPT课件)第一章 绪论 Artificial Intelligence(AI).ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第七章 机器学习.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第三章 知识与知识表示.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第二章 人工智能的数学基础.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第五章 搜索策略.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第八章 智能决策支持系统.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第六章 专家系统.ppt
- 吉林大学:《人工智能》课程电子教案(PPT课件)第四章 经典逻辑推理.ppt