61
Puja Pramudya Technology Director, Radya Labs @poedja_p The New Windows Phone App Model Me

A Lap Around Windows Phone 8.1

Embed Size (px)

DESCRIPTION

Windows Phone 8.1 bring a lot of new features. For developers, it bring unified development tools and APIs to build great app

Citation preview

  • 1. Me
  • 2. Agenda Whats new Emulator Two APIs? WTF? Background Tasks Navigation App lifecycle Sharing Universal apps 8/10/20
  • 3. Windows Platform Convergence
  • 4. Easier to design on converged platform
  • 5. One Windows for App Developers Windows XAML apps Shared API set Shared app model Shared Live Tiles Shared App distribution format Converged Controls + Performance Gains Shared developer Store registration Unified Push Services (WNS) Unified App Data Roaming and backup Shared app identities + entitlement
  • 6. Install apps on SD Dual Sim support 8/10/201 Ghost notifications Custom lockscreen Swipe keyboard Slide to close app Custom SMS apps New app lifecycle Native Youtube player WHATS NEW? Speed dial VPN Mail notification icon Action Center Seperate volume controls QHD resolution Weekview Geofencing Auto-update New screenshot button Friggin Cortana! Share between apps Bluetooth LE Background images Sync between WP / Win8 Sense apps Podcasts Universal apps
  • 7. New Features for Silverlight 8.1 Apps Storage SD Card Data Enhancements (Data.XML) Device Discovery (Devices.Enumeration) Graphics Enhancements D2D/Dwrite (Win32) Streams (Input/Output/RandomAccess) Sensors (Accelerometer, Light, compass, gyro, magnet, orientation,) Media Editing (MediaStreamSource, MediaProperties) Email with Attachments Media Transcoding Data: Backup/Restore Graphics Enhancements WIC Data: Roaming Share Source Networking (HTTP, Connectivity, ...) Share Target (Provider) Audio Effects RFComm Media Capture App 2 App Single Sign On Bluetooth 4.0 (Low Energy) Background Tasks Web Authentication Password Credentials Storage Enhancements (FileIO, PathIO, AccessCache, Compression) WNS Push Notification Trigger Social RT WNS Notifications (Badge/Tile/Toast/Notification Center) Storage (Picker Provider, Provider) InputPane MSA (Windows.Security.Authentication.OnlineId ) GeoFencing AtomPub, Http, Syndication (Windows.Web) NFC Secure Payment Media Foundations (win32) Known Folders (Audio/Video/Photos/) Advertising ID Appointments/Calendar API enhancements Accessibility (UIA, Large Text, High Contrast) Appointments/Calendar brokered UI Precise Caret Placement - No APIs Background Transfer
  • 8. Convergence Over 90% API Convergence Small set not converged yet Phone Feature Only Available in Silverlight Lenses Support VOIP Support Camera Capture Task Clipboard APIs Lock Screen Wallpaper API Ringtone Provider / Alarm & Reminders Simple Sound effects (XNA) Run Under Lock Screen Photos Extensibility Search Extras
  • 9. Controls 8/10/2
  • 10. 8/10/2
  • 11. why custom Windows Windows Phone
  • 12. Primitives - same Layout: Panel, StackPanel, Grid, Border Buttons, Slider, ToggleSwitch, CheckBox, RadioButton, ProgressBar TextBox/TextBlock Shapes/Path
  • 13. DEMO: Same API/Behavior
  • 14. Primitives same API, tailored behavior Hub AppBar/CommandBar Date/Time Pickers and List Pickers ListView Multi-select; containers, swipe selection Flyouts Media Ads SDK*
  • 15. DEMO: Same API Tailored Behavior
  • 16. CommandBar
  • 17. Windows Device-specific APIs SearchBox SettingsFlyout Windows Phone Pivot AutoSuggestBox ContentDialog Maps System Chrome Progress area, in-call UI
  • 18. PasswordBox Windows Phone Delay character reveal Show password checkbox Windows On-demand password reveal
  • 19. Navigation Model Navigation APIs Same Phone Hardware Back Button Windows in-app Back Button #if WINDOWS_PHONE_APP Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; #endif
  • 20. Windows Phone 8.1 Emulator DEMO 8/10/20
  • 21. Windows Phone 8.1 TWO API SETS 8/10/20
  • 22. Silverlight 8/10/2
  • 23. Runtime Similar to Windows Store Runtime 8/10/2 Simil
  • 24. Two APIs DEMO 8/10/20
  • 25. Background Tasks Works in both SL and Runtime Dont mix Background agents (WP8.0) with Background tasks (WP8.1) 8/10/20
  • 26. Background tasks DEMO 8/10/20
  • 27. SL vs WinPRT Some agents not available in RT Continous background location Run under lockscreen VOIP Wallet 8/10/20
  • 28. Geofencing Location based background task trigger 8/10/20
  • 29. Geofencing DEMO 8/10/20
  • 30. Navigation WP8.0 NavigationService.Navigate(new Uri("/Views/HomePage.xaml", UriKind.Relative)); 8/10/20
  • 31. Navigation WP8.1 rootFrame.Navigate(typeof(HomePa ge), e.Arguments); 8/10/20
  • 32. WP8.1 Silverlight Same Page and Frame Navigation Model as 8.0 Fast App Resume is enabled by default Apps can opt into being suspended on Back System.Windows.Navigation.NavigationService.Pa useOnBack 8/10/20
  • 33. WP8.1 XAML apps Different back button behaviour 8/10/20
  • 34. Silverlight 8.1 Apps Run in Modern Context Huh?
  • 35. App Compatibility SL 8.0 apps will run on 8.1 phones 100% binary compatible Upgrading 8.0 app to 8.1 Not 100% source compatible
  • 36. Upgrade Breaking Changes Documentation with full list CLR/Silverlight bug fixes Modern context behavior differences Fast App Resume (FAR) is enabled by default (resume vs replace) Hitting back does terminate the app just like Silverlight 8.0
  • 37. Unsupported features in Silverlight 8.1 Feature Silverlight 8.0 Silverlight 8.1 XAML Background Audio Continuous Background Execution Agents (GPS Apps)
  • 38. SD Card Support Share Source Share Target
  • 39. WNS Push Notification Trigger WNS Notifications (Badge/Tile/Toast/Notification Center) Storage (Picker Provider, Provider)
  • 40. GeoFencing Bluetooth 4.0 (Low Energy) Background Tasks
  • 41. Known Folders (Audio/Video/Photos/) Appointments / Calendar Enhancements Email with Attachments
  • 42. Web Authentication Data Roaming Accessibility (UIA, Large Text, High Contrast)
  • 43. XAML apps Back button DEMO 8/10/20
  • 44. Sharing Share data with other apps Receive shared data 8/10/20
  • 45. Sharing DEMO 8/10/20
  • 46. Old world 8/10/2
  • 47. New world 8/10/2
  • 48. Universal apps Share code and even views between WP8.1 and Win8.1 Can only use WP8.1 Runtime Use #if to differentiate platforms 8/10/20
  • 49. Universal apps What works Live tiles Toasts Background tasks XAML (sort of) 8/10/20
  • 50. Universal apps What doesnt work Alarms Reminders Lens GPS background Lockscreen picture Camera chooser XAML (sort of) 8/10/20
  • 51. Universal apps DEMO 8/10/20
  • 52. App Submission
  • 53. Step 1: Reserve an App Name App Name Package Identity Name Publisher Name
  • 54. Step 2: Edit AppXManifest.xml Package Publisher Identity Name Name App Name
  • 55. Step 3: WMAppManifest.xml App Name
  • 56. Which XAML Framework should you use? App Type Framework New App XAML or Silverlight Existing Windows Store App XAML Lock Screen Image (social, weather, sports, ..) Silverlight 8.x Camera Based App (lenses integration) or Silverlight 8.x VOIP Music App Silverlight 8.0 or XAML Existing Silverlight Phone Apps Silverlight 8.x or XAML
  • 57. Wrap Up XAML vs Silverlight Frameworks New WinRT APIs Add value to your existing apps today Protecting your investments New code can be easily ported to XAML Portable Class Libraries can now target Silverlight
  • 58. Community Update Email to : [email protected] Subject [CommunityUpdate]