Unit - 3 Developing Android Services (PPT)

 P13A2MAA - UNIT-3

Developing Android Services:

  • Creating Your Own Services,
  • Establishing Communication between a Service and an Activity
  • Binding Activities to Services
  • Understanding Threading


Most Important Questions:

Que - Fill in the blanks.
1. ________ services do not require any user intervention. 
2.  In order to bind an application component with a service________ method is used. 
3. _____, _____, _____ types of return types in OnStartCommand() method.

Que - Define.
1. Service.
2. Write a merits of services in Android applications.
3. Thread
4. IntentService

Que- Select the correct option in MCQ.
1. How many types of service in Android application.
A. 3
B. 2
C. 1
D. infinite

2. To register service in AndroidManifest.xml, which tag will used by us.
A. service
B. activity
C. newservice
D. None of these

3. How to stop service in Android application?
A. stop service
B. self stop service
C. Both A and B
D. None of these.

4. To Implementing the methods in a service.
A. OnBind()
B. OnStartCommand()
C. OnDestroy()
D. All of these

Que - Long Questions.
1. Write a short note on Life Cycle of Service.
2. Describe: Performing Tasks in a Service Asynchronously.
3. Explain Binding activities to services.
4. Write a code to creating your own service to download a single file from given URL.

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form