WIRELESS: softlayer - techwildExploringWindowsPhoneFeaturesChris Koenigchris.koenig@microsoft.com214-385-5616@chriskoenig ...
30-to-Launch Program Overview       Session 1                Session 2                Session 3              Session 4• Ov...
Today’s Agenda     Live Tiles     Sensors & Camera     Launchers & Choosers     Advertisements     Push Notifications...
Live Tiles
Live Tiles Interactive windows  into your application Personalize them to be  meaningful to your  users Built-in suppor...
Live Tiles – Local Tile API   Local tile updates (these are *not* push)       Full control of all properties when your a...
Live Tiles – Local Tile APIContinued…Back of tile updates        Full control of all properties when your app         is...
Working with Live TilesDemohttp://github.com/ChrisKoenig/MangoTiles
Sensors andCameras andLaunchers andChoosers!
Windows Phone SensorsHARDWARE                      APIs  Accelerometer                 MotionSensor  Compass              ...
Exciting Scenarios Enabled11 Windows Phone
Augmented Reality Scenarios?   GART Toolkit   http://gart.codeplex.com   Written by my teammate!    Windows Phone
Sensors, Camera, Launchers andChoosersDemoLive demo!
Advertisements
Advertising SDK  The Advertising SDK is now part of the Windows Phone SDK You can include a Silverlight Ad control in an...
Microsoft pubCenter    Sign up here so that you can incorporate ads in your games:     http://pubcenter.microsoft.com   ...
Adding the Ad SDK to a ProjectDemoLive demo!
Push Notifications
Push Notifications Server-initiated communication Enable key background scenarios Preserve battery life and user experi...
Push Notification Data Flow                                   2                                                     URI to...
Three Kinds of Notifications   Raw      Notification message content is application-specific      Delivered directly to...
Toast Notification App icon and two text  fields Time critical and  personally relevant Users must opt-in via app  UI22...
Push Notification WeatherSampleDemohttp://github.com/ChrisKoenig/PushNotifications
Multitasking
Multitasking Themes Fast Application Switching     Ability to resume applications that the user has recently used     A...
Generic Agent TypesPeriodic Agents                 On Idle Agents    Occurrence                    Occurrence       Eve...
Background Notification Service                   Reminders                   Alarms                   using Microsoft.Pho...
Background Transfer Service                    using Microsoft.Phone.BackgroundTransfer;                    void DownloadW...
Multitasking Cheat SheetJob                                           ToolResume quickly from the lock screen           Fa...
Background AgentsDemohttp://github.com/chriskoenig/backgroundagentsample
Search Integration
Using Search Integration viaAppConnectDemohttp://github.com/ChrisKoenig/AppConnect
NuGet    Package management system for .NET    Simplifies incorporating 3rd party libraries    Developer focused    Fr...
Silverlight Toolkit for Windows Phone    A product of the Microsoft Silverlight team    The Silverlight Toolkit adds ton...
Homework      Keep cranking on your project      Ping me for help with roadblocks      Explore more of the training vid...
http://bemyappdallas.eventbrite.co               m/     BeMyApp          Feb 24-26,      Dallas            2012
http://mobileappdfw2.eventbrite.com                            AT&T Mobile App Hackathon!                            Come ...
The information herein is for informational purposes only and represents the current view of                              ...
Upcoming SlideShare
Loading in...5
×

30-to-Launch #2 - Phone Features

1,304

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,304
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Time:00:00 – 00:15 – Intro and live demo00:15 – 00:45 – Marketplace, AppHub, DreamSpark overview (slides 1 through 15)00:45 – 01:00 – Creating accounts and installing the tools (slides 16 through 23)01:00 – 01:30 – Understanding AppMakr (slides 24 through 29)01:30 – 02:00 – Building your AppMakr app (no slides, interactive help)02:00 – 02:30 – Testing your app in the emulator (slides 30 – 31)02:30 – 02:45 – Publishing your app in the marketplace (slides 32 – 33 and help)02:45 – 03:00 – Hello World
  • Make the point that quite a few developers are now making a tidy living from income generated by the Ad-Control
  • Requires a customer-specific server-side application in the cloud
  • If you support a Live Tile TELL your users in the metadata in AppHub and on first launch.The maximum allowed size of the tile image is 80 KB, with a maximum download time of 1 minute
  • Now includes application icon and two text fields.Includes Deeplink
  • 30-to-Launch #2 - Phone Features

    1. 1. WIRELESS: softlayer - techwildExploringWindowsPhoneFeaturesChris Koenigchris.koenig@microsoft.com214-385-5616@chriskoenig |http://chriskoenig.net
    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 TilesDemohttp://github.com/ChrisKoenig/MangoTiles
    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 http://gart.codeplex.com 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: http://pubcenter.microsoft.com Find out more about Windows Phone Advertising: http://advertising.microsoft.com/mobile-apps 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: "http://notify.live.com/throttledthirdparty/01.00/AAFRQH 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 WeatherSampleDemohttp://github.com/ChrisKoenig/PushNotifications
    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 AgentsDemohttp://github.com/chriskoenig/backgroundagentsample
    31. 31. Search Integration
    32. 32. Using Search Integration viaAppConnectDemohttp://github.com/ChrisKoenig/AppConnect
    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 http://silverlight.codeplex.com 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 http://create.msdn.com Have fun! 35 Windows Phone
    36. 36. http://bemyappdallas.eventbrite.co m/ BeMyApp Feb 24-26, Dallas 2012
    37. 37. http://mobileappdfw2.eventbrite.com 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.
    1. A particular slide catching your eye?

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

    ×