Upload
maribel-shortt
View
213
Download
0
Embed Size (px)
Citation preview
Windows Live SDK for Windows Phone 7
Interest in the Windows Phone 7 platform is growing quickly and the need for apps is increasing faster still. However, not everything related to a consumer's Live profile is available on the phone natively. On Dec. 7, 2011 Microsoft released a new Windows Live SDK which allows access to Calendars, Contacts, Documents, and more. We'll be walking through the SDK and learn how to implement calls to Windows Live in order to support the rich functionality desired by consumers of Windows Phone 7.
Who Am I?
Danny Warren Working for InterKnowlogy in
Carlsbad, CA http://www.interknowlogy.com http://blogs.interknowlogy.com/author/da
nnywarren/
Twitter @dannydwarren
What is Windows Live?
Cloud Service Backbone of Microsoft’s consumer
world Email Calendaring Documents Storage Social Networking Photos and Videos (media) More…
What is Windows Phone?
Microsoft’s answer to the iThisAndThat, Robots, and cool RIMs
A different take on the smart phone with Metro
The mobile frontend of Windows Live (lite edition)
Growing Market
Helpful Phone Links
Aggregated Data Sources (check list) http://msdn.microsoft.com/en-us/library/hh202972(v=vs.92).aspx
UserData namespace http://msdn.microsoft.com/en-us/library/hh220665(v=vs.92).aspx
Launchers and Choosers http://msdn.microsoft.com/en-us/library/ff769542(v=vs.92).aspx
Scope Definitions: http://msdn.microsoft.com/en-us/library/hh243646.aspx
Live Connect Site http://msdn.microsoft.com/en-us/windowslive/default.aspx
What is the Live SDK?
A lot of needed APIs missing on the Phone
Near full access to Windows Live Calendaring Social Networking Full SkyDrive Access▪ Audio▪ Photos▪ Videos▪ Documents
Think WCF Data Service (REST API)
Phone APIs vs. Live SDK FIGHT! FACT – As a developer you need both
sets of APIs in order to create the best experience
FACT – The phone can read just about anything
FACT – Live SDK can create, read, update, or delete just about anything
FACT – Another name for a Microsoft Windows tutorial is 'Crash Course'! http://www.funfunnyfacts.com/Fun-Funny-Facts.html
Contacts (Phone – The Cans) Save Single Email Choose Single Email Save Single Phone Number Choose Single Phone Number Using the Contacts API developers can access
all contacts on the phone and their information including non-Windows Live contacts (contacts are read-only) http://www.jeffblankenburg.com/2011/11/08/31-day
s-of-mango-day-8-contacts-api/
http://msdn.microsoft.com/en-us/library/microsoft.phone.userdata.contact(v=VS.92).aspx
Contacts (Phone – The Cannots)
Cannot Create, Update, Delete Contacts (from a third party app)
Cannot save Email and Phone Number at the same time
Cannot make your bed or clean your room
Contacts (Live SDK – The Cans)
Can Create and Read (limited) Contacts http://
msdn.microsoft.com/en-us/library/hh243648.aspx#contact
http://msdn.microsoft.com/en-us/library/hh243648.aspx#user
Update? Delete?
Contacts (Live SDK – The Cannots)
Read is limited Can’t read email addresses, postal
addresses, work profile, or phone numbers
These can be created just not read? Update and Delete are not
mentioned in the documentation May or may not be supported
Contacts (End Result)
PHONE
Use the Contacts API to read contact information
LIVE SDK
Create Contacts Here
Jailbreak your users phones to support Update and Delete from third party apps?
Calendars (Phone – The Cans)
The Appointments API allows read-only access to all events in the user’s calendars When using this API understand that
there is no way to know which calendar the event is on, only which account owns that event
http://msdn.microsoft.com/en-us/library/microsoft.phone.userdata.appointment(v=vs.92).aspx
Calendars (Phone – The Cannots)
Cannot Read a specific Calendar Cannot Create, Update, or Delete
Calendars, or Events
Calendars (Live SDK – The Cans) Can Create, Read, Update, and Delete
Calendars, and Events http://
msdn.microsoft.com/en-us/library/hh243648.aspx#calendar
http://msdn.microsoft.com/en-us/library/hh243648.aspx#event
Access to calendars and events is restricted only by what permissions the user has on those calendars and events As a developer we can view that information
Can Subscribe to Public Calendars Can only Read and Delete Recurring Events
Calendars (Live SDK – The Cannots)
Cannot Create or Update Recurring Events
Calendars (End Result)
PHONE
Use the Appointments API to read events when the owning calendar does not matter
Use the Appointments API when no data connection exists
LIVE SDK
Create, Update, and Delete (Calendars and Events)
Use for reading when you want to read a specific calendar
Subscribing to Public Calendars
Inform the user they need to go to the Calendar Application to create or update a recurring event
SkyDrive (Phone – The…Cannots)
NOT POSSIBLE BUMMER LAME Cannot access any files on the phone
from a third party app
SkyDrive (Live SDK – The Cans) Create, Read, Update, Delete
Folders Albums Photos Videos Audio Documents▪ The key here is to pass the URL of the document to the
WebBrowserTask and let the OS take over for us Other Files
Pretty much what ever you want to do you can!
SkyDrive (End Result)
LIVE SDK FTW!!!!
Code…Slides are boring! Show us some code!
http://winlivehelper.codeplex.com