SlideShare a Scribd company logo
1 of 23
WP7.1.1
Cătălin Gheorghiu
April 11, 2012
Agenda
• What we will not talk about
• What is multitasking or the great picture
• WP 7 multitasking or life ain’t fair
• WP 7 Application Lifecycle or our case
• Mango dormant state or the novelty
• Mango background task or the news
• Q&A
What we will not talk about &
What is multitasking or the great picture
WP 7 multitasking or life ain’t fair
WP 7 multitasking
• The Windows Phone platform uses a multi-
tasking operating system (so far so good)
• However, this multi-tasking ability is not extended
to applications that we write (small print at the
bottom)
• Although we can have something that can run in
the background (a solution)
WP 7.1 Application Lifecycle or our case
Application
Lifecycle
http://msdn.microsoft.com/en-us/library/ff817008(v=vs.92).aspx
Application Lifecycle
Application Lifecycle
<Application.ApplicationLifetimeObjects>
<shell:PhoneApplicationService
Launching="Application_Launching"
Closing="Application_Closing"
Activated="Application_Activated“
Deactivated="Application_Deactivated"/>
</Application.ApplicationLifetimeObjects>
Demo(s)
Mango dormant state or the novelty
Mango dormant state
• An application will receive events to notify it of changes to
state (same for tombstone and dormant)
• It can also use status information when it resumes (to
know if tombstone or dormant)
• It has access to memory space to save transient state
and isolated storage to persist application state (does not
know if is going to sleep or put to sleep)
• Beware an app even dormant could very well not get
activated again
Demo(s)
Mango background task or the news
Mango background state (no Tango)
• A Windows Phone application can start ONE “background
agent” to work for it (with limitations in what it can do and
the access it has to the processor and other phone
facilities).
Think about them as app own shadow windows service
– It is a PeriodicTask, ResourceIntesiveTask or both at
the same time
• The agent can run when the main application is not in the
foreground
• An agent is not equivalent to a foreground application
running in the background
Mango background state
• The number of agents allowed to be active at one time is
restricted by the Windows Phone operating system
• If the right conditions do not arise for an agent it will not
be started or will stop running
– Background agents only run in situations where the
operating system feels able to give them access to the
processor
– If the phone goes into “Power Saver” mode it may stop
running background agents completely
• Users can also manage the agents running on their phone
and may chose to disable them
Mango background state
• A Task is the container that is managed by the operating
system and runs at the appointed time and it runs an
Agent which is the actual code payload which does the
work
– The agent code is called as a method in a class
– The class is created as part of a Scheduled Task
Agent Project
• There are two kinds of Task
– Periodic tasks that are run every now and then
– Resource intensive tasks that run when the phone is in
a position to let them
Mango background task
• PeriodicTask Agent runs every now and then
– Typically every 30 minutes or so, depending on loading
on the phone
• It is intended to perform a task that should be performed
regularly and complete quickly (is allowed to run for 15
seconds or so)
– The phone sets a limit on the maximum number of
active agents at any time
• Good for location tracking, polling background services
Mango background state
• Resource Intensive Agents run when the phone is in a
position where it can usefully perform some data
processing (but up to 10 minutes):
– When the phone is powered by the mains
– When the phone is connected to WiFi
– When the phone is not being used (Lock screen
displayed)
• Good for synchronization with a host service,
unpacking/preparing resources, compressing databases
Mango background task
• It is possible for an application to perform both periodic
and resource intensive work in the background
(remember just ONE Agent per app)
• This can be achieved using a single background agent
class, run from both kinds of task
• The agent will run periodically and when the phone is in a
position to allow resource intensive work
• When the agent starts it can determine the context in
which it is running and then behave appropriately
Demo(s)
Q&A
Thank you for your attention.
Contact:
•My Blog http://ronua.ro/CS/blogs/catalin/default.aspx
•My Email catalin.gheorghiu@ronua.ro

More Related Content

Similar to AISEC 12 april 2012 WP 7.1.1

Windows Phone and mobile application development
Windows Phone and mobile application developmentWindows Phone and mobile application development
Windows Phone and mobile application developmentIT Booze
 
Windows Phone 8 - 6 Background Agents
Windows Phone 8 - 6 Background AgentsWindows Phone 8 - 6 Background Agents
Windows Phone 8 - 6 Background AgentsOliver Scheer
 
Windows phone 8 session 10
Windows phone 8 session 10Windows phone 8 session 10
Windows phone 8 session 10hitesh chothani
 
Embedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCEmbedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCJuliaAndrews11
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programmingAshwini Awatare
 
Cell phone parental support application
Cell phone parental support applicationCell phone parental support application
Cell phone parental support applicationAncy Varghese
 
follow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switchingfollow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switchingQIRIS
 
Automated Fault Tolerance Testing
Automated Fault Tolerance TestingAutomated Fault Tolerance Testing
Automated Fault Tolerance TestingAjay Kumar Vaddadi
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbaifaizrashid1995
 
08.Push Notifications
08.Push Notifications 08.Push Notifications
08.Push Notifications Nguyen Tuan
 
Matt Eakin - The New Tester Skillset
Matt Eakin - The New Tester SkillsetMatt Eakin - The New Tester Skillset
Matt Eakin - The New Tester SkillsetQA or the Highway
 
07 wp7 application lifecycle
07 wp7   application lifecycle07 wp7   application lifecycle
07 wp7 application lifecycleTao Wang
 
Daily Personal Task Manager (TO DO).pptx
Daily Personal Task Manager (TO DO).pptxDaily Personal Task Manager (TO DO).pptx
Daily Personal Task Manager (TO DO).pptxRutvikLakum
 
FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)Naren Chandra
 
Windows Phone 8 - 5 Application Lifecycle
Windows Phone 8 - 5 Application LifecycleWindows Phone 8 - 5 Application Lifecycle
Windows Phone 8 - 5 Application LifecycleOliver Scheer
 
Mobile App Testing by Mark Wilson
Mobile App Testing by Mark WilsonMobile App Testing by Mark Wilson
Mobile App Testing by Mark Wilsonphpwgtn
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)Arti Parab Academics
 
What's new in Windows Phone Mango for Developers
What's new in Windows Phone Mango for DevelopersWhat's new in Windows Phone Mango for Developers
What's new in Windows Phone Mango for DevelopersGlen Gordon
 
Dori waldman android _course_2
Dori waldman android _course_2Dori waldman android _course_2
Dori waldman android _course_2Dori Waldman
 
Android Performance Best Practices
Android Performance Best Practices Android Performance Best Practices
Android Performance Best Practices Amgad Muhammad
 

Similar to AISEC 12 april 2012 WP 7.1.1 (20)

Windows Phone and mobile application development
Windows Phone and mobile application developmentWindows Phone and mobile application development
Windows Phone and mobile application development
 
Windows Phone 8 - 6 Background Agents
Windows Phone 8 - 6 Background AgentsWindows Phone 8 - 6 Background Agents
Windows Phone 8 - 6 Background Agents
 
Windows phone 8 session 10
Windows phone 8 session 10Windows phone 8 session 10
Windows phone 8 session 10
 
Embedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCEmbedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLC
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programming
 
Cell phone parental support application
Cell phone parental support applicationCell phone parental support application
Cell phone parental support application
 
follow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switchingfollow-app BOOTCAMP 2: Windows phone fast application switching
follow-app BOOTCAMP 2: Windows phone fast application switching
 
Automated Fault Tolerance Testing
Automated Fault Tolerance TestingAutomated Fault Tolerance Testing
Automated Fault Tolerance Testing
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbai
 
08.Push Notifications
08.Push Notifications 08.Push Notifications
08.Push Notifications
 
Matt Eakin - The New Tester Skillset
Matt Eakin - The New Tester SkillsetMatt Eakin - The New Tester Skillset
Matt Eakin - The New Tester Skillset
 
07 wp7 application lifecycle
07 wp7   application lifecycle07 wp7   application lifecycle
07 wp7 application lifecycle
 
Daily Personal Task Manager (TO DO).pptx
Daily Personal Task Manager (TO DO).pptxDaily Personal Task Manager (TO DO).pptx
Daily Personal Task Manager (TO DO).pptx
 
FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)
 
Windows Phone 8 - 5 Application Lifecycle
Windows Phone 8 - 5 Application LifecycleWindows Phone 8 - 5 Application Lifecycle
Windows Phone 8 - 5 Application Lifecycle
 
Mobile App Testing by Mark Wilson
Mobile App Testing by Mark WilsonMobile App Testing by Mark Wilson
Mobile App Testing by Mark Wilson
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
 
What's new in Windows Phone Mango for Developers
What's new in Windows Phone Mango for DevelopersWhat's new in Windows Phone Mango for Developers
What's new in Windows Phone Mango for Developers
 
Dori waldman android _course_2
Dori waldman android _course_2Dori waldman android _course_2
Dori waldman android _course_2
 
Android Performance Best Practices
Android Performance Best Practices Android Performance Best Practices
Android Performance Best Practices
 

More from Catalin Gheorghiu

MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...
MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...
MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...Catalin Gheorghiu
 
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...Catalin Gheorghiu
 
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device SideMicrosoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device SideCatalin Gheorghiu
 
SQLSaturday #311 Sofia - Databases for mobile
SQLSaturday #311 Sofia - Databases for mobile SQLSaturday #311 Sofia - Databases for mobile
SQLSaturday #311 Sofia - Databases for mobile Catalin Gheorghiu
 
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...Catalin Gheorghiu
 
TiMo 20 - January 2014 Windows Embedded 8 Handheld
TiMo 20 - January 2014 Windows Embedded 8 HandheldTiMo 20 - January 2014 Windows Embedded 8 Handheld
TiMo 20 - January 2014 Windows Embedded 8 HandheldCatalin Gheorghiu
 
NetWork 4 - Windows Embedded 8 Handheld
NetWork 4 -  Windows Embedded 8 HandheldNetWork 4 -  Windows Embedded 8 Handheld
NetWork 4 - Windows Embedded 8 HandheldCatalin Gheorghiu
 
Tarabica 14 - Windows Embedded 8 Handheld
Tarabica 14 - Windows Embedded 8 HandheldTarabica 14 - Windows Embedded 8 Handheld
Tarabica 14 - Windows Embedded 8 HandheldCatalin Gheorghiu
 
RONUA Roadshow fall 2013 - Mobile medley
RONUA Roadshow fall 2013 -  Mobile medleyRONUA Roadshow fall 2013 -  Mobile medley
RONUA Roadshow fall 2013 - Mobile medleyCatalin Gheorghiu
 
NetWork 3 - HealthVault at work
NetWork 3 - HealthVault at workNetWork 3 - HealthVault at work
NetWork 3 - HealthVault at workCatalin Gheorghiu
 
Windows Phone Week 2013 - NFC & Windows (Phone) 8
Windows Phone Week 2013 - NFC & Windows (Phone) 8Windows Phone Week 2013 - NFC & Windows (Phone) 8
Windows Phone Week 2013 - NFC & Windows (Phone) 8Catalin Gheorghiu
 
NetWork 2 - Barkode za nase aplikacije
NetWork 2 - Barkode za nase aplikacijeNetWork 2 - Barkode za nase aplikacije
NetWork 2 - Barkode za nase aplikacijeCatalin Gheorghiu
 
Kulendayz 2012 Windows Phone is around the corner What now?
Kulendayz 2012   Windows Phone is around the corner What now?Kulendayz 2012   Windows Phone is around the corner What now?
Kulendayz 2012 Windows Phone is around the corner What now?Catalin Gheorghiu
 
AISEC 12 april 2012 Introduction to Windows Embedded Handheld programming
AISEC 12 april 2012   Introduction to Windows Embedded Handheld programmingAISEC 12 april 2012   Introduction to Windows Embedded Handheld programming
AISEC 12 april 2012 Introduction to Windows Embedded Handheld programmingCatalin Gheorghiu
 
Sinergija 11 Microsoft Tag is not just for advertising!
Sinergija 11   Microsoft Tag is not just for advertising!Sinergija 11   Microsoft Tag is not just for advertising!
Sinergija 11 Microsoft Tag is not just for advertising!Catalin Gheorghiu
 
Sinergija 11 Introduction to HealthVault
Sinergija 11   Introduction to HealthVaultSinergija 11   Introduction to HealthVault
Sinergija 11 Introduction to HealthVaultCatalin Gheorghiu
 
momo 19 december 2011 Modern 2d Barcodes from microsoft and 5 minutes of WP...
momo 19 december 2011   Modern 2d Barcodes from microsoft and 5 minutes of WP...momo 19 december 2011   Modern 2d Barcodes from microsoft and 5 minutes of WP...
momo 19 december 2011 Modern 2d Barcodes from microsoft and 5 minutes of WP...Catalin Gheorghiu
 
ItChillOut Real wold apps with Microsft Tag
ItChillOut Real wold apps with Microsft TagItChillOut Real wold apps with Microsft Tag
ItChillOut Real wold apps with Microsft TagCatalin Gheorghiu
 
Kulendayz 2010 Microsoft Tag Barcode for XXI century
Kulendayz 2010   Microsoft Tag Barcode for XXI centuryKulendayz 2010   Microsoft Tag Barcode for XXI century
Kulendayz 2010 Microsoft Tag Barcode for XXI centuryCatalin Gheorghiu
 
Pdc ro 2010 Windows Phone 7 Programming Model
Pdc ro 2010  Windows Phone 7 Programming ModelPdc ro 2010  Windows Phone 7 Programming Model
Pdc ro 2010 Windows Phone 7 Programming ModelCatalin Gheorghiu
 

More from Catalin Gheorghiu (20)

MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...
MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...
MSNetwork 5 - Programiranje Windows small IoT uređaja (ARM and x86, diverse h...
 
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...
WinDays XV - Programming Windows small IoT devices (ARM and x86, diverse hard...
 
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device SideMicrosoft Summit 2014 Bucharest - Internet of Things - Device Side
Microsoft Summit 2014 Bucharest - Internet of Things - Device Side
 
SQLSaturday #311 Sofia - Databases for mobile
SQLSaturday #311 Sofia - Databases for mobile SQLSaturday #311 Sofia - Databases for mobile
SQLSaturday #311 Sofia - Databases for mobile
 
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...
NFC for Windows Phone Developers, Microsoft MVP & Community Day, 18 June Mosc...
 
TiMo 20 - January 2014 Windows Embedded 8 Handheld
TiMo 20 - January 2014 Windows Embedded 8 HandheldTiMo 20 - January 2014 Windows Embedded 8 Handheld
TiMo 20 - January 2014 Windows Embedded 8 Handheld
 
NetWork 4 - Windows Embedded 8 Handheld
NetWork 4 -  Windows Embedded 8 HandheldNetWork 4 -  Windows Embedded 8 Handheld
NetWork 4 - Windows Embedded 8 Handheld
 
Tarabica 14 - Windows Embedded 8 Handheld
Tarabica 14 - Windows Embedded 8 HandheldTarabica 14 - Windows Embedded 8 Handheld
Tarabica 14 - Windows Embedded 8 Handheld
 
RONUA Roadshow fall 2013 - Mobile medley
RONUA Roadshow fall 2013 -  Mobile medleyRONUA Roadshow fall 2013 -  Mobile medley
RONUA Roadshow fall 2013 - Mobile medley
 
NetWork 3 - HealthVault at work
NetWork 3 - HealthVault at workNetWork 3 - HealthVault at work
NetWork 3 - HealthVault at work
 
Windows Phone Week 2013 - NFC & Windows (Phone) 8
Windows Phone Week 2013 - NFC & Windows (Phone) 8Windows Phone Week 2013 - NFC & Windows (Phone) 8
Windows Phone Week 2013 - NFC & Windows (Phone) 8
 
NetWork 2 - Barkode za nase aplikacije
NetWork 2 - Barkode za nase aplikacijeNetWork 2 - Barkode za nase aplikacije
NetWork 2 - Barkode za nase aplikacije
 
Kulendayz 2012 Windows Phone is around the corner What now?
Kulendayz 2012   Windows Phone is around the corner What now?Kulendayz 2012   Windows Phone is around the corner What now?
Kulendayz 2012 Windows Phone is around the corner What now?
 
AISEC 12 april 2012 Introduction to Windows Embedded Handheld programming
AISEC 12 april 2012   Introduction to Windows Embedded Handheld programmingAISEC 12 april 2012   Introduction to Windows Embedded Handheld programming
AISEC 12 april 2012 Introduction to Windows Embedded Handheld programming
 
Sinergija 11 Microsoft Tag is not just for advertising!
Sinergija 11   Microsoft Tag is not just for advertising!Sinergija 11   Microsoft Tag is not just for advertising!
Sinergija 11 Microsoft Tag is not just for advertising!
 
Sinergija 11 Introduction to HealthVault
Sinergija 11   Introduction to HealthVaultSinergija 11   Introduction to HealthVault
Sinergija 11 Introduction to HealthVault
 
momo 19 december 2011 Modern 2d Barcodes from microsoft and 5 minutes of WP...
momo 19 december 2011   Modern 2d Barcodes from microsoft and 5 minutes of WP...momo 19 december 2011   Modern 2d Barcodes from microsoft and 5 minutes of WP...
momo 19 december 2011 Modern 2d Barcodes from microsoft and 5 minutes of WP...
 
ItChillOut Real wold apps with Microsft Tag
ItChillOut Real wold apps with Microsft TagItChillOut Real wold apps with Microsft Tag
ItChillOut Real wold apps with Microsft Tag
 
Kulendayz 2010 Microsoft Tag Barcode for XXI century
Kulendayz 2010   Microsoft Tag Barcode for XXI centuryKulendayz 2010   Microsoft Tag Barcode for XXI century
Kulendayz 2010 Microsoft Tag Barcode for XXI century
 
Pdc ro 2010 Windows Phone 7 Programming Model
Pdc ro 2010  Windows Phone 7 Programming ModelPdc ro 2010  Windows Phone 7 Programming Model
Pdc ro 2010 Windows Phone 7 Programming Model
 

AISEC 12 april 2012 WP 7.1.1

  • 2. Agenda • What we will not talk about • What is multitasking or the great picture • WP 7 multitasking or life ain’t fair • WP 7 Application Lifecycle or our case • Mango dormant state or the novelty • Mango background task or the news • Q&A
  • 3. What we will not talk about & What is multitasking or the great picture
  • 4. WP 7 multitasking or life ain’t fair
  • 5. WP 7 multitasking • The Windows Phone platform uses a multi- tasking operating system (so far so good) • However, this multi-tasking ability is not extended to applications that we write (small print at the bottom) • Although we can have something that can run in the background (a solution)
  • 6. WP 7.1 Application Lifecycle or our case
  • 11. Mango dormant state or the novelty
  • 12. Mango dormant state • An application will receive events to notify it of changes to state (same for tombstone and dormant) • It can also use status information when it resumes (to know if tombstone or dormant) • It has access to memory space to save transient state and isolated storage to persist application state (does not know if is going to sleep or put to sleep) • Beware an app even dormant could very well not get activated again
  • 14. Mango background task or the news
  • 15. Mango background state (no Tango) • A Windows Phone application can start ONE “background agent” to work for it (with limitations in what it can do and the access it has to the processor and other phone facilities). Think about them as app own shadow windows service – It is a PeriodicTask, ResourceIntesiveTask or both at the same time • The agent can run when the main application is not in the foreground • An agent is not equivalent to a foreground application running in the background
  • 16. Mango background state • The number of agents allowed to be active at one time is restricted by the Windows Phone operating system • If the right conditions do not arise for an agent it will not be started or will stop running – Background agents only run in situations where the operating system feels able to give them access to the processor – If the phone goes into “Power Saver” mode it may stop running background agents completely • Users can also manage the agents running on their phone and may chose to disable them
  • 17. Mango background state • A Task is the container that is managed by the operating system and runs at the appointed time and it runs an Agent which is the actual code payload which does the work – The agent code is called as a method in a class – The class is created as part of a Scheduled Task Agent Project • There are two kinds of Task – Periodic tasks that are run every now and then – Resource intensive tasks that run when the phone is in a position to let them
  • 18. Mango background task • PeriodicTask Agent runs every now and then – Typically every 30 minutes or so, depending on loading on the phone • It is intended to perform a task that should be performed regularly and complete quickly (is allowed to run for 15 seconds or so) – The phone sets a limit on the maximum number of active agents at any time • Good for location tracking, polling background services
  • 19. Mango background state • Resource Intensive Agents run when the phone is in a position where it can usefully perform some data processing (but up to 10 minutes): – When the phone is powered by the mains – When the phone is connected to WiFi – When the phone is not being used (Lock screen displayed) • Good for synchronization with a host service, unpacking/preparing resources, compressing databases
  • 20. Mango background task • It is possible for an application to perform both periodic and resource intensive work in the background (remember just ONE Agent per app) • This can be achieved using a single background agent class, run from both kinds of task • The agent will run periodically and when the phone is in a position to allow resource intensive work • When the agent starts it can determine the context in which it is running and then behave appropriately
  • 22. Q&A
  • 23. Thank you for your attention. Contact: •My Blog http://ronua.ro/CS/blogs/catalin/default.aspx •My Email catalin.gheorghiu@ronua.ro