Applicaons can also iniate broadcasts eg to let other

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t;ac,on android:name="android.intent.acLon.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent- filter> </ac,vity> <ac,vity android:name="hkust.comp4521.helloandroid.MainAcLvity" android:label="@string/app_name" > </ac,vity> </applica,on> COMP 4521 (Muppala) Android Overview </manifest> 8 Service •  A service runs in the background for an indefinite period ,me. –  Example: play music, network download, etc –  Does not have a user interface –  extends the Service base class. •  We can bind to a running service (or start the service if it's not already running) COMP 4521 (Muppala) Android Overview 9 Broadcast Receivers •  Receives and reacts to broadcast announcements (Intents) –  Many broadcasts originate in system code. –  E.g. announcements that a picture is taken, that the ,me zone has changed, that the ba4ery...
View Full Document

This document was uploaded on 03/12/2014.

Ask a homework question - tutors are online