Your SlideShare is downloading. ×
0
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Windows Phone 7 Unleashed Session 2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Windows Phone 7 Unleashed Session 2

1,131

Published on

Special thanks to Daniel Egan. This presentation provides a deeper dive into Windows Phone 7 for developers. Topics cover how you navigate in your applicaton, how to access Web Services, use JSON to …

Special thanks to Daniel Egan. This presentation provides a deeper dive into Windows Phone 7 for developers. Topics cover how you navigate in your applicaton, how to access Web Services, use JSON to move data, and how to push notifications.

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,131
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Windows Phone 7Unleashed
    Session II
  • 2. Session 2 Agenda
    Navigation
    Fragment Navigation
    Web Services
    JsonDeserialzation
    Extras Menu
    Push Notifications
    Push Notifications Helper Library
    Shell Tile Scheduler
    Cloud Phone SDK
    Bing Maps
  • 3. Navigation
  • 4. Phone Application Frame
    Frame Contains Page Control and other elements
    Page fills the entire content region of the frame and contains the content
  • 5. Phone Application Page
    A page fills the entire content region of the frame. It includes the following characteristics:
    Optionally surfaces its own application bar
    There are three main ways to navigate between pages in your app:
    Using the PhoneApplicationPagevirtual methods for handling the result of navigation.
    HyperlinkButton- it provides NavigateUriproperty which can be used to navigate to a page Uri.
    NavigationService- it provides methods, properties, and events to support navigation within a wp7 application.
    Note: The PhoneApplicationPage class supports OnNavigatedTo, OnNavigatedFrom and OnNavigatingFrom virtual methods for handling the result of navigation:
  • 6.
  • 7.
  • 8. A Quick Lap around the Phone
    • Navigation
    • 9. OnNavigatedTo override
    • 10. Fragment Navigation
    • 11. AppBar
    Demo
  • 12. Name
    Title
    Microsoft Corporation
    Connecting to Web Services
  • 13. Classic Development
    Forward Looking
    Web + Services
    Application
    +
    Services
    Application – Oriented around one device
    (1 Screen)
    Oriented around multiple devices (x Screens)
    Shifting Development Strategies
  • 14. Networking for Windows Phone
    Support for networking features:
    WCF
    HttpWebRequest
    WebClient
    No cross-domain policy file required
    ODATA
    Not Supported
    Sockets
    Custom WCF Bindings (no duplex)
    WCF RIA Services
    NTLM authentication
  • 15. Simple HTTP Request
    12
    WebClient client = newWebClient();
    publicSimpleWebClient()
    {
    InitializeComponent();
    client.DownloadProgressChanged += newDownloadProgressChangedEventHandler(client_DownloadProgressChanged);
    client.DownloadStringCompleted += newDownloadStringCompletedEventHandler(client_DownloadStringCompleted);
    }
    privatevoid button1_Click(object sender, RoutedEventArgs e)
    {
    client.DownloadStringAsync(
    newUri("http://localhost/ServicesApplication/whatever.xml"), "sample rss");
    }
    voidclient_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
    {
    if (e.UserStateasstring == "sample rss")
    {
    this.progressBar1.Value = e.ProgressPercentage;
    }
    }
    voidclient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
    {
    this.textBlock1.Text = e.Result;
    }
  • 16. WCF ASMX Services
    13
  • 17. Restful Web Services
    Use WCF Restful Services
    On Premise
    As a Azure WebRole
    Data
    On premise
    In Cloud
    Retrieve Lightweight rest services
    XML
    JSON
    14
  • 18. Using ODATA
    From WCF
    From SQL Azure
    From publishers – http://odata.org
    Odata Client Library for WP7
    15
  • 19. You Decide
    Simple Test Case : Downloaded 8 data records
    Each Record had just four fields
    Measured bytes to transfer:
    Odata version from WCF Data Services
    8.5k
    ASMX SOAP + Dataset - 3k
    REST + XML - 1.2k
    REST + JSON – 639bytes
    16
  • 20. The Extras Menu
    Add an xml file to project
    17
  • 21. The Extras Menu
    Name it Extras.xml
    18
  • 22. The Extras Menu
    Add the following xml
    19
  • 23. A Quick Lap around the Phone
    • Connecting to Rest Service
    • 24. Using Json(Data Contract Serializer)
    • 25. Adding your app to the extras menu
    Demo
  • 26. Push Notifications
  • 27. Push Notification Service
    Your Web Service
    Custom Web Service
    Windows Phone
    Notification Service
    Existing Web Services
    Microsoft Services
    Microsoft.Phone.Notification
    Push client service
    Built-in support for efficient, battery-aware mobile push notifications
    Managed APIs for notification-driven interaction with existing Web 2.0 sites
  • 28. PUSH NOTIFICATIONS: DATA FLOW
    Push client
    Tile
    Toast
    Open push channel
    Return URI
    Data to toast
    Data to tile
    Data to App
    App
    Send URI to server
    Send push data to client
    Push service
    Your service
    Event
    Send push data to URI
  • 29. Push Notification Service
    Seattle, WA: Sunny and 85 degrees
  • 30. Shell Tile Scheduler
    25
  • 31. Shell Tile Scheduler
    26
  • 32. A Quick Lap around the Phone
    • Push Notification Helper
    • 33. ScheduleTileService
    Demo
  • 34. © 2010 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.
    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.

×