Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

30-to-Launch #2 - Phone Features


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

30-to-Launch #2 - Phone Features

  1. 1. WIRELESS: softlayer - techwildExploringWindowsPhoneFeaturesChris Koenigchris.koenig@microsoft.com214-385-5616@chriskoenig |
  2. 2. 30-to-Launch Program Overview Session 1 Session 2 Session 3 Session 4• Overview of • Exploring Windows • Working with Data • Windows Phone Windows Phone Phone Capabilities • App Resources Marketplace • Metro Design • Live Tiles • Isolated Storage • Application • Tour: Expression • Sensors & • Database submittal process Blend Camera • Networking Stack • How to handle • Tour: Visual Studio • Launchers • Social Integration rejection • Building, Running • Choosers • Promoting your and Debugging • Search Integration application Your First App • Advertisements • Help submitting • Online Resources your app to the• Signup for Marketplace Marketplace 2 Windows Phone
  3. 3. Today’s Agenda Live Tiles Sensors & Camera Launchers & Choosers Advertisements Push Notifications Background Tasks Search Integration 3 Windows Phone
  4. 4. Live Tiles
  5. 5. Live Tiles Interactive windows into your application Personalize them to be meaningful to your users Built-in support for data for basic communications Custom image wizardry for more Windows Phone
  6. 6. Live Tiles – Local Tile API Local tile updates (these are *not* push)  Full control of all properties when your app is in the foreground or background  Calorie counter, sticky notes, deep linking MultiTile!  Create/Update/Delete  Launches directly to page/experience 6 Windows Phone
  7. 7. Live Tiles – Local Tile APIContinued…Back of tile updates  Full control of all properties when your app is in the foreground or background  Content, Title, Background Content Content string is Background bigger Title Title  Flips from front to back at random interval  Smart logic to make flips asynchronous 7 Windows Phone
  8. 8. Working with Live TilesDemo
  9. 9. Sensors andCameras andLaunchers andChoosers!
  10. 10. Windows Phone SensorsHARDWARE APIs Accelerometer MotionSensor Compass All the Sensor + Math Not Mandatory in HW Use whenever available (but present if Gyro is) Also works w/o Gyro Gyro Individual APIs available Not Mandatory in HW for all Sensors 10 Windows Phone
  11. 11. Exciting Scenarios Enabled11 Windows Phone
  12. 12. Augmented Reality Scenarios? GART Toolkit Written by my teammate! Windows Phone
  13. 13. Sensors, Camera, Launchers andChoosersDemoLive demo!
  14. 14. Advertisements
  15. 15. Advertising SDK The Advertising SDK is now part of the Windows Phone SDK You can include a Silverlight Ad control in an application or an XNA Drawable Ad into a game 15 Windows Phone easy to do This is very
  16. 16. Microsoft pubCenter Sign up here so that you can incorporate ads in your games: Find out more about Windows Phone Advertising: 16 Windows Phone
  17. 17. Adding the Ad SDK to a ProjectDemoLive demo!
  18. 18. Push Notifications
  19. 19. Push Notifications Server-initiated communication Enable key background scenarios Preserve battery life and user experience Prevent polling for updates19 Windows Phone
  20. 20. Push Notification Data Flow 2 URI to the service: " 3rd party Push enabled giiMWNTYrRDXAHQtz- service applications AgrNpzcDAwAAAAQOMDAwMDAwMDAwMDAwMDA" 3 Notifications service 4 HTTP POST the message Send PN Message1 Push endpoint is established. URI is Windows Live created for the endpoint. Push Notification service 20 Windows Phone
  21. 21. Three Kinds of Notifications Raw Notification message content is application-specific Delivered directly to app only if it is running Toast  Specific XML schema  Content delivered to app if it is running  If app is not running, system displays Toast popup using notification message content Tile  Specific XML schema  Never delivered to app  If user has pinned app tile to Start screen, system updates it using notification21 message content Windows Phone
  22. 22. Toast Notification App icon and two text fields Time critical and personally relevant Users must opt-in via app UI22 Windows Phone
  23. 23. Push Notification WeatherSampleDemo
  24. 24. Multitasking
  25. 25. Multitasking Themes Fast Application Switching  Ability to resume applications that the user has recently used  Apps stay in memory unless memory is needed for other apps  Use IsApplicationInstancePreserved in App.Activate event to determine actions Background Agents  Ability to run your code in the background  Audio, Timed or on Idle Notifications  Ability to create alarms and reminders  UX and behavior is the same as the phone Alarms and Calendar items Background Transfer Service  Application can queue up transfers in the background 25 Windows Phone
  26. 26. Generic Agent TypesPeriodic Agents On Idle Agents Occurrence  Occurrence  Every 30 min  External power, non-cell network Duration  Duration  15 seconds  10 minutes Scenarios  Scenarios  Incremental data sync  Data feasting  Location  Initial sync  Others…  Others… 26 Windows Phone
  27. 27. Background Notification Service Reminders Alarms using Microsoft.Phone.Scheduler; private void AddReminder(object sender, RoutedEventArgs e) AddAlarm(object sender, RoutedEventArgs e) { Alarm alarm = new Alarm("Long Day"); Reminder reminder = new Reminder("CompanyMeeting"); alarm.BeginTime = = DateTime.Now.AddSeconds(15); reminder.BeginTime DateTime.Now.AddSeconds(15); alarm.Content = = "Soccer Fields by The to bed."; reminder.Content "Its been a long day. GoCommons"; alarm.Title = = "Microsoft Annual Company Product Fair 2009"; reminder.Title "Alarm"; reminder.RecurrenceType = RecurrenceInterval.Yearly; reminder.NavigationUri = new Uri("/Reminder.xaml", UriKind.Relative); ScheduledActionService.Add(alarm); ScheduledActionService.Add(reminder); }27 Windows Phone
  28. 28. Background Transfer Service using Microsoft.Phone.BackgroundTransfer; void DownloadWithBTS(Uri sourceUri, UriBackgroundTransferEventArgs e) GetCurrentProgress() BtsProgressChanged(object sender, destinationPath) {My WP Book App DrawProgressBar(btr.BytesReceived); btr = new BackgroundTransferRequest(sourceUri, destinationUri); } btr.TransferStatusChanged += BtsStatusChanged; DrawProgressBar(e.Request.BytesReceived);downloads btr.TransferProgressChanged += BtsProgressChanged; } BackgroundTransferService.Add(btr); } Cheese & Win completed Great Mysterie POST <~5.0 MB WP Tips & Tric My WP Background Book App Transfer <20 MB GET Cloud Service ISO Store no limit <2 GB 28 Windows Phone
  29. 29. Multitasking Cheat SheetJob ToolResume quickly from the lock screen Fast App Switching (it’s free!)Set an alarm or reminder at a precise time Background NotificationLarge file downloads Background TransferEvent-based toast/tile updates Push NotificationsLocation-based services; regular toast/tile Periodic Background Agentupdates; data pre-caching; etc.Play music in the background Background Audio PlayerSynchronize data; SETI@home; etc. Resource-Intensive AgentReal-time GPS tracking Run under the lock screen 29 Windows Phone
  30. 30. Background AgentsDemo
  31. 31. Search Integration
  32. 32. Using Search Integration viaAppConnectDemo
  33. 33. NuGet Package management system for .NET Simplifies incorporating 3rd party libraries Developer focused Free, open source Install NuGet using the Visual Studio Extension Manager Use NuGet to add libraries such as the Silverlight Toolkit to your project 33 Windows Phone
  34. 34. Silverlight Toolkit for Windows Phone A product of the Microsoft Silverlight team The Silverlight Toolkit adds tons of additional controls ‘out of band’ from the official product control set Includes full open source code, samples, documentation, and design-time support for controls Refresh every 3 months or so  Bug fixes  New controls Download from NuGet! 34 Windows Phone
  35. 35. Homework Keep cranking on your project Ping me for help with roadblocks Explore more of the training videos and training kits at Have fun! 35 Windows Phone
  36. 36. m/ BeMyApp Feb 24-26, Dallas 2012
  37. 37. AT&T Mobile App Hackathon! Come build your mobile app with us. We will have 5+ senior mobile application developers that will be directly assisting you with your mobile application development efforts. Come to network. Come to learn. Come to hang out!Where? AT&T Foundry - 2900 West Plano Parkway, Plano, TX 75075 When? Friday Feb 17th at 6PM and all day Saturday!
  38. 38. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.© 2011 Microsoft Corporation.All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.