Your SlideShare is downloading. ×
0
Launchers<br />and<br />Choosers<br />Jason Lee<br />Ethos Technologies<br />
Agenda<br /><ul><li>Introduction
Full List
Code Example
Execution Model
Event Flow
Play Time
Q & A</li></li></ul><li>Launchers & Choosers<br /><ul><li>Windows Phone provides a number of functions
Telephone Call, SMS, Email, Camera, Contacts etc.
Indirect access to phone features & data
Applications can NOT directly access information such as contacts.
Applications can NOT directly execute behaviors such as phone call or SMS.
Launchers & Choosers allow applications to access various phone features and data through them.
Upcoming SlideShare
Loading in...5
×

05 wp7 launchers and choosers

2,185

Published on

Published in: Education, Technology, Business
1 Comment
0 Likes
Statistics
Notes
  • when i use shareMediaTask. I want to get parametter in method OnNavigated when task completed, but i don't know value parametter. Please help me!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
2,185
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
27
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "05 wp7 launchers and choosers"

  1. 1. Launchers<br />and<br />Choosers<br />Jason Lee<br />Ethos Technologies<br />
  2. 2. Agenda<br /><ul><li>Introduction
  3. 3. Full List
  4. 4. Code Example
  5. 5. Execution Model
  6. 6. Event Flow
  7. 7. Play Time
  8. 8. Q & A</li></li></ul><li>Launchers & Choosers<br /><ul><li>Windows Phone provides a number of functions
  9. 9. Telephone Call, SMS, Email, Camera, Contacts etc.
  10. 10. Indirect access to phone features & data
  11. 11. Applications can NOT directly access information such as contacts.
  12. 12. Applications can NOT directly execute behaviors such as phone call or SMS.
  13. 13. Launchers & Choosers allow applications to access various phone features and data through them.
  14. 14. They invoke new applications
  15. 15. Launcher & Chooser APIs invoke distinct built-in applications (which in turn replace the currently running application, and can go back by hitting Back key)</li></li></ul><li>Launcher<br /><ul><li>A Launcher
  16. 16. Launches one of the built-in applications through which a user can complete a certain task
  17. 17. No data is returned to calling application
  18. 18. Examples :
  19. 19. PhoneCallTask
  20. 20. SMSComposeTask</li></li></ul><li>Chooser<br /><ul><li>A Chooser
  21. 21. Also launches one of the built-in applications through which a user can complete a certain task
  22. 22. Returns some data to calling application
  23. 23. When a chooser completes, calling application is reactivated and supplied with the result
  24. 24. A user can cancel the launcher, in which case an empty value is returned
  25. 25. Examples :
  26. 26. PhoneNumberChooserTask
  27. 27. PhotoChooserTask</li></li></ul><li>Full List<br />
  28. 28. Using Launchers<br /><ul><li>Key Points
  29. 29. Different launchers has different parameters
  30. 30. They all have a Show() method to invoke tasks
  31. 31. Example 1
  32. 32. Example 2</li></li></ul><li>Using Choosers<br /><ul><li>Key Points
  33. 33. Hook to a Chooser’s Completed event for result data
  34. 34. Use Show() method to invoke tasks
  35. 35. Example</li></li></ul><li>Execution Model<br /><ul><li>When Launchers & Choosers are hit
  36. 36. OnNavigatedFrom event occurs to the page
  37. 37. Deactivated event occurs to the App
  38. 38. Control switches to the task
  39. 39. While Launchers & Choosers running
  40. 40. There’s no guarantee that the user will come back to your app
  41. 41. If the user navigates away from the task, your app will be dormant, and therefore has a possibility to be tombstoned eventually
  42. 42. Thus, every stateful application should handle tombstoning
  43. 43. After Launchers & Choosers complete
  44. 44. Activated event occurs to App
  45. 45. OnNavigatedTo event occurs to the page
  46. 46. The app and page are the same instances if not tombstoned, new instances if tombstoned. </li></li></ul><li>Event Flow<br /><ul><li>Without Tombstoning</li></ul>App<br />Page<br />Task<br />App()<br />Launching<br />Page()<br />OnNavigatedTo<br />Show()<br />OnNavigatedFrom<br />Deactivated<br />Do Something<br />Activated<br />Completed<br />OnNavigatedTo<br />
  47. 47. Event Flow<br /><ul><li>With Tombstoning</li></ul>App<br />Page<br />Task<br />App()<br />Launching<br />Page()<br />OnNavigatedTo<br />Show()<br />OnNavigatedFrom<br />Deactivated<br />Navigates Away<br />and <br />Come Back<br />App()<br />Activated<br />Page()<br />OnNavigatedTo<br />Completed Event does NOT occur<br />
  48. 48. Play Time !<br /><ul><li>Goals
  49. 49. Get familiar with various Launchers and Choosers
  50. 50. Understand application lifecycle event flow related to Launchers and Choosers</li></li></ul><li>! & ?<br />Thank You ! <br />Any Questions ?<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×