Andr​​oid 手持系统移动服务程序设计:通信技术

Programming Mobile Services for Android Handheld Systems: Communication

隶属于“Mobile Cloud Computing with Android 专项课程”In this course, we will learn how to apply patterns and frameworks to alleviate the complexity of developing concurrent and networked applications and services on mobile devices running Android that connect to popular cloud computing platforms.



  • 分类: 计算机
  • 平台: Coursera
  • 语言: 英语


This MOOC describes by example how to apply patterns and frameworks to alleviate the complexity of developing concurrent software for mobile devices via the use of object-oriented design techniques. A pattern describes a reusable solution to a common problem that arises within a particular context. A framework is an integrated set of components that collaborate to provide a reusable architecture for a family of related apps or services.  Frameworks can also be viewed as concrete realizations of patterns that facilitate direct reuse of detailed design and source code.

This MOOC will cover fundamental techniques, patterns, and frameworks related to communicating with local and remote services. In particular, this MOOC course will cover Android mechanisms for interacting with local bound and started services via Intents, Messengers, and the Android Interface Definition Language (AIDL). It will also focus on interacting with remote web services using HTTP and data marshalling with JSON. Remote interaction models, ranging from request on demand, polling, push, and sockets will be discussed. Students that complete this MOOC will have a solid understanding of how to build Android applications and local services that can interact with remote services, handle data marshaling, and perform error handling. Hands-on programming projects will require students to develop Android applications that interact with REST-based services.

The Mobile Cloud Computing with Android (MoCCA) Specialization

This is the fourth course of the six-course Mobile Cloud Computing with Android (MoCCA) Specialization. It has been designed as part of a Coursera Specialization designed to help learners create complex, cloud-based Android Applications, and includes a final “capstone” project for those who earn Verified Certificates across all six courses.

Note: We are proud to announce that the MoCCA specialization has already reached hundreds of thousands of learners around the globe. In its last iteration, we worked with Google to provide Nexus tablets, feedback from the Google App team, and the potential to be featured in the Google Play store to top course completers.

This time around, we are providing more flexibility for all of you busy learners. We are running the Programming Mobile Applications courses in more digestible one-month-long sections, each with a meaningful mini-project at the end. Additionally, we will be re-offering the courses more frequently. For example, new sessions of my two introductory courses will be launched on a monthly basis, so that you can find a convenient time to join us or pick up where you left off if you didn’t quite finish before.

For previous MoCCA students: If you have already earned a Verified Certificate in the previous version of this course, “Pattern-Oriented Software Architectures: Programming Mobile Services for Android Handheld Systems” offered in May 2014, you do not need to retake this course to continue towards the Specialization certificate and final project in 2015. Please consult the Specializations Help Center or contact theCoursera support team if you are not sure whether you qualify.
This MOOC and five others, taught by Dr. Adam Porter from the University of Maryland and Dr. Jules White from Vanderbilt University, have been designed to complement each other as part of the first trans-institution sequence of MOOCs taught on the Coursera platform, structured as follows:

The first two courses by Dr. Adam Porter, of the University of Maryland, areProgramming Mobile Applications for Android Handheld Systems Part 1 and Part 2. They focus on the design and programming of user-facing applications.

The third and fourth courses by Dr. Douglas Schmidt, of Vanderbilt University, are Programming Mobile Services for Android Handheld Systems: Concurrencyand Communication. They focus on middleware systems programming topics, such as synchronous and asynchronous concurrency models, background service processing, structured data management, local inter-process communication and networking, and integration with cloud-based services.

The fifth and sixth courses by Dr. Jules White, of Vanderbilt University, areProgramming Cloud Services for Android Handheld Systems: Spring andSecurity.  They focus on how to connect Android mobile devices to cloud computing and data storage resources, essentially turning a device into an extension of powerful cloud-based services on popular cloud computing platforms, such as Google App Engine and Amazon EC2.

The final “capstone” project will require students to develop a complex mobile cloud computing application from the ground up.

Some of the programming assignments for these MOOCs will be coordinated.

If you just want to take some of the MOOCs in this sequence or take them all in different order you’re certainly welcome to do so, and you’ll still learn a lot. However, if you take all the MOOCs in this sequence in the order presented you’ll gain a deeper, end-to-end understanding of handheld systems, their applications and services, as well as their integration into the cloud.


The course is organized into the following sections:

Section 0: Course Introduction
Part 1:Course Structure and Topics
Part 2: Course Prerequisites and Learning Strategies

Section 1: Android Services and Local IPC
Part 1: Overview of Started and Bound Services
Part 2: Activity and Service Communication
Part 3: Service to Activity Communication Using Android Messenger
Part 4: Programming Started Services
Part 5: Android IntentService
Part 6: Programming Bound Services with Messengers
Part 7: Overview of the Android Interface Definition Language (AIDL)
Part 8: Programming Bound Services with AIDL

Section 3: Android Remote IPC
Part 1: Overview of Hyper-Text Transfer Protocol (HTTP)
Part 2: Designing Mobile Applications with HTTP Communication
Part 3: Better Client-side Communication Abstractions for HTTP
Section 4: Communication Patterns in Android
Part 1: Activating Services on Demand with the Activator Pattern
Part 2: Passing Commands to Services with the Command Processor Pattern
Part 3: Automating Marshaling and Demarshaling of Data with the Proxy Pattern
Part 4: Supporting Object-Oriented Remote Method Calls with the Broker Pattern

Throughout the MOOC we’ll focus on pattern-oriented software architecture, with an emphasis on concurrent and networked programming in the context of Android middleware systems programming mechanisms, such as synchronous and asynchronous concurrency models, background service processing, and local/remote inter-process communication (IPC) and networking. We illustrate by example how key pattern and framework concepts and relationships are applied in Android Services and various local and remote IPC mechanisms from both an application and infrastructure perspective. Many code examples are shown throughout using Java, with a case study project used to reify the key points throughout all the modules in this section.

The PDF and PowerPoint versions of all the slides used in the course will be available online as the videos become available on the course website.


Ideally, students who take this course will have already taken Professor Porter’s MOOCs on “Programming Mobile Applications with Android Handheld Systems”, as well as Part 1 of “Programming Mobile Services for Android Handheld Systems.” Students should also be familiar with general object-oriented design and programming concepts (such as encapsulation, abstraction, polymorphism, extensibility, and the Unified Modeling Language (UML) ), fundamental object-oriented programming language features (such as classes, inheritance, dynamic binding, and generics available in Java, basic systems programming concepts (such as event handling, processes/threads, synchronization, interprocess communication, and dynamic linking), and networking terminology (such as client/server and peer-to-peer architectures, TCP/IP, and layering). We will review object-oriented design, systems programming, and networking concepts and techniques, so students who understand how to read/write Java code examples should be fine.


Although the lectures are designed to be largely self-contained, it’s recommended (but not required) that students refer to the following books:

Mark Murphy, The Busy Coder’s Guide to Android Development, CommonsWare.

Goetz et al., Java Concurrency in Practice, Addison-Wesley, 2006.

Doug Lea, Concurrent Programming in Java, Prentice Hall, 1999.

Gamma et at., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, Reading, MA, 1995.

Buschmann et al., Pattern-Oriented Software Architecture, Vol 1: A System of Patterns, Wiley and Sons, 1996.

Schmidt et al., Pattern-Oriented Software Architecture, Vol 2: Patterns for Concurrent and Networked Objects, Wiley and Sons, 2000.

Buschmann et al., Pattern-Oriented Software Architecture:, Vol 4: A Pattern Language for Distributed Computing, Wiley and Sons, 2007.

Buschmann et al., Pattern-Oriented Software Architecture, Vol 5 On Patterns and Pattern Langauges, Wiley and Sons, 2007.

Much of this material is available online.


This course consists of both live and recorded lectures, with integrated quiz questions designed to ensure students understand the material covered in the lectures. There will also be the following graded material:

Weekly quizzes. Each quiz will contain a number of equally-weighted questions. There will be four weekly quizzes.

Programming assignments. You will have N programming assignments (where N == 4) by the end of the course. You will have roughly 14 days to submit your solution. Each assignment will account for 1/Nth of the total programming assignment points, so it’s possible to miss an assignment and still pass the class as long as you do well on the other assignments.

Signature Track

Coursera offers the Signature Track to verify the identity of students. Students in the Signature Track can receive a Verified Certificate, which involves earning a final grade greater than or equal to 70% on the quizzes, as well as completing the programming assignments with a score equal to 70% or higher. It’s mandatory for students in the Signature Track to successfully achieve a Verified Certificate to be eligible to take the Capstone project at the end of the MoCCA Specialization.


The FAQ is located here.

  • Coursera
  • edX
  • OpenLearning
  • FutureLearn
  • iversity
  • Udacity
  • NovoEd
  • Canvas
  • Open2Study
  • Google
  • ewant
  • FUN
  • IOC-Athlete-MOOC
  • World-Science-U
  • Codecademy
  • CourseSites
  • opencourseworld
  • ShareCourse
  • gacco
  • MiriadaX
  • openhpi
  • Stanford-Open-Edx
  • 网易云课堂
  • 中国大学MOOC
  • 学堂在线
  • 顶你学堂
  • 华文慕课
  • 好大学在线CnMooc

Copyright © 2008-2015 MOOC.CN 慕课改变你,你改变世界