Developing Apps for Windows Phone 8 - The 5th seminar in public seminar series from KMS Technology which have been delivering from 2011 in every two months
3. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills to build WP8 apps
17. Built-in VoIP and Video Chat
• Incoming VoIP calls feel like any call
• Integration with built in phone features
• VoIP apps run in background
• Available to all developers
21. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills and code to build WP8 apps
26. What is Live Tile?
• A shortcut to an app
• Three tile sizes
• Three tile types
26
27. Tile Sizes
Tile Size Flip and Cycle Iconic Images
Images
Small 159 x 159 pixels 159 x 159 pixels 110 x 110 pixels
Medium 336 x 336 pixels 336 x 336 pixels 202 x 202 pixels
Wide 691 x 336 pixels 691 x 336 pixels N/A
27
28. Tile Templates
• Flip – flips from front to back
• Iconic
• Cycle – cycles through up to
nine images
28
31. Lock Screen
• User can select any five apps to show
quick status
• All you have to do is
– Create an icon
– Declare the app’s intent in the
application manifest file
32. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills to build WP8 apps
33. Windows Phone Notifications
Three Kinds of Push Notification:
• Toast
• Tile
• Raw
http://msdn.microsoft.com/en-us/library/ff402545(v=VS.92).aspx
36. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills to build WP8 apps
40. Map Control
• Add a Map to your UI
<Grid x:Name="ContentPanel" >
<maps:Map x:Name="MyMap"/>
</Grid>
Map MyMap = new Map();
ContentPanel.Children.Add(MyMap);
41. Offline Maps
MapDownloaderTask mdt = new MapDownloaderTask();
mdt.Show();
Mapping offline in native and apps
Route Queries do not require a network
42. Built-In Map Tasks
• MapTask: launch the map in 2 lines of code
• MapsDownloaderTask: download map data
for offline in 2 lines of code
• MapsDirectionTask: start turn-by-turn
directions in 4 lines of code
44. NFC
• Near Field Communications (within 3-4 centimetres)
• Transfer of a message or byte stream from one device to another
• Using Bluetooth or WiFi
54. VoIP and Video Chat
• Incoming VoIP calls work like any other call
• Integrates with built-in phone features
• VoIP apps continue to run in the background
55. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills to build WP8 apps
59. Agenda
Introduction
Windows Phone Fundamentals
Windows Phone Notifications
Windows Phone Sensors
Shared core with Windows 8
Reuse your skills to build WP8 apps
Developers now have access to VoIP APIs so they can add seemless Voice over IP integration to their application. VoIP in a developer app are treated like any other call, with the same phone call UI and the ability to run in the background. This means a huge benefit for Windows Phone developers on bringing the power of VoIP to any application.
Nhưmọingườithấytrênmànhình, nhữngcáimàmình hay thấytrêncácmànhìnhcủađiệnthoạitrướcđâynhư iPhone, android hay cũhơnlàsymbian, nokia s40 J2ME icon, icon,… cóthểxemnhưlàtoàn button với button.Dung dienthoai demo live tileVới WP, vớimànhình start screen, nó introduce 1 cáigọi live tile. Nó bring us closer to the content đólàcái we care aboutVd : cóvàichụcvài, kobiết app nàolà app nào, app nàyđểlàmgì, game nàochơisao….
Tim mhinh laptop And while Windows 8 moves into the Windows Phone UX paradigm, Windows Phone 8 is borrowing something from Windows: the Shared Windows Core. OS components like the kernel, networking, graphics support and file systems are the same in Windows 8 and Windows Phone. And we’ll only watch these commonalities grow in with future releases.------Mention ro la dang compare giua wp8 voi windows 8
Dễthấylàcáichuyện share core nàysẽ benefit chorấtnhiều, vànhững commonalities sẽđc increase trongtươnglai:- Vềphía hardware manufactures, các partner của MS cóthể work with the same driver model chocả 2 platforms.Vềphía user, cóđccácứngdụng running across Windows 8 and Windows Phone 8, cóđc consistent experience across cả 2 platform.Benefit chodevelopers,cóthể work in the same technology, port rấtdễdàngcácứngdụngcho app store.
Nếubạnlan than trêncác forum, cũngnhư 1 số website thìsẽcócác con số
For myself, the hardware that is coming for Windows Phone 8 is far and away the most exciting hardware we’ve ever seen. We’ve got the Nokia Lumia 920 with it’s magnificent camera and unique form factor, the HTC 8X which is incredibly light and really a delight to hold and touch, and the Samsung ATIV S with its huge and beautiful 4.8 inch screen, Windows Phone is driving the bleeding edge of the mobile world.
Number 2, we’ve upgraded the browser in Windows Phone 8 to Internet Explorer 10. When compared to IE 9 in Windows Phone 7.5, IE10 for Windows Phone 8 has 4 times faster Javascript performance and supports 2 times as many HTML 5 features. It also carries with it such IE 10 features as SmartScreen anti-phishing filter which uses data from millions of Windows PCs to block malicious websites in real time.And this experience transfers over to your application development. The WebBrowser that you use in your app is simply an instance of the same IE10 browser on the phone, bringing with it all the same functionalities and benefits including the industry standardized multi-touch support.The image you see here is an interactive gravity particle animation driven by multi-touch functionality and running on Windows Phone 8.
In the gaming arena, Microsoft now supports a common game development platform across Windows and Windows Phone. This gives developers the ability to develop games natively with access to the hardware acceleration benefits of DirectX and Direct3D.
Speech is another exciting addition to Windows Phone with this release. The new Speech APIs allows very simple Speech to text, allowing the user to speak directly to apps, and text to speech, allowing many eyes-free operations as well as expanding accessibility options. Windows Phone 8 supports 15 languages and dialects and many more options for speaking voices and the speech APIs also allow developers to open their apps to specific points (or with custom input) using voice commands.
The Windows Phone maps have also gone through a major change, shifting to Nokia’s NAVTEQ map data. This provides us with maps based on roads, aerial information, a hybrid or terrain-based maps. Users no longer need to register for the Bing Maps control to use map functionality in their apps, the new map control gives them full mapping capabilities. Additionally, apps can now easily download map data for offline use and update that data as needed. And if they need to continuously track location (for example in exercise applications), Windows Phone has the ability to continue collecting location data either periodically or in the background.
One of the greatest Windows Phone features is how developers can add value even to the native applications. For example, we have a feature called lenses. Let’s say the user wants to take a picture, but wants to add some kind of special filter or mode, wants to take a panorama or go into an augmented reality mode. Right from the native camera application, they can see all the lens applications that extend the possibilities of the camera and bring even more user visibility to their app.We also have the ability for users to auto-upload all the pictures they take to a web service. This means we can write an app that allows the user to automatically save all their images to 500px or Flickr or yfrog or our own web service. This is a great way to jump-start content sharing in a new fresh application.
And finally, we come back to the heart and soul of the Windows Phone, the start screen. The start screen has always been the key component to Windows Phone, giving each phone a unique personality, bringing custom content and information straight to the user. With Windows Phone 8, we’ve improved it even further. We have 3 kinds of tile sizes for the start screen, so the user can prioritize their screen around what is important to them. We also give developers the option of using 3 kinds of tiles so that they can add the start screen experience that makes the most sense for their app.(Optional: Mention flip tiles (image on front, text on back), Iconic Tiles (counts up on new notifications like the native SMS, email and phone call apps) and Cyclic tiles (cycles through images like the photo app))
Developers now have access to VoIP APIs so they can add seemless Voice over IP integration to their application. VoIP in a developer app are treated like any other call, with the same phone call UI and the ability to run in the background. This means a huge benefit for Windows Phone developers on bringing the power of VoIP to any application.
Vietnam developer
only on 64-bit Windows 8 Pro or higher, link download, bo tri lai good hon
Use VS 2012 to show WP8 templates, emulator, gioithieu templateVS studio , bo bot windows , code full screen.
Developers now have access to VoIP APIs so they can add seemless Voice over IP integration to their application. VoIP in a developer app are treated like any other call, with the same phone call UI and the ability to run in the background. This means a huge benefit for Windows Phone developers on bringing the power of VoIP to any application.
Explainngaytudau , dugn as la nguoinghe da bietios m and, nhanmanhphaisu dung 5s de store data cho resume
Using VS 2012 for demonstrating lifecycleHow to use WP8 emulator (Windows 8 pro or higher only requirement)
PanoramaPivot, telerik
These sizes are automaticall scaled for the other screen resolutions
Move toifuntamentals,sau template
1. Using demo TilesForWinPhone8_PresentationEnd2. Setting up a Tile for app with Manifest configuration
DEMO tile, lock screen
Hinh minh hoa If more than an app registering for a file type, it asks user for chosing which
First, let’s talk about the most visible, most fun Windows Phone integration point… the Tiles.Show code cho 4 steps
Demo toastNotification
Developers now have access to VoIP APIs so they can add seemless Voice over IP integration to their application. VoIP in a developer app are treated like any other call, with the same phone call UI and the ability to run in the background. This means a huge benefit for Windows Phone developers on bringing the power of VoIP to any application.
As you can see, Microsoft provides a lot of superb functionality that lives on top of some of these sensors. As a result, instead of talking about the microphone as a sensor, we’re going to talk about the Speech API that uses the microphone and gives developers an enormous head-start in creating exceptional high-quality applications.In terms of specific topics, we’re going to cover proximity sensors including Near Field Communication and Bluetooth, GPS and mapping, the Wallet functionality, Speech APIs and VoIP APIs.
Let’s start off with the Geolocation and Maps.
With Windows Phone 8, we’re switching location and mapping in Windows Phone from Bing Maps to the new Windows Phone Runtime Location API. This is probably one of the biggest changes for developers in the WinPhone 8. We’re doing this in part because we knew we needed to be able to make this capability available in both managed and native code and, with that, it made sense to converge this capability on the phone with the same capability in Windows 8.But with this change we also have much improved “One-shot” location acquisition. This means that if you simply need to know where you user is but you don’t need to track their location, you can do this in a fast, energy efficient way. Finally, we have the new Map XAML control to replace the Bing Maps control used in Windows Phone 7. The Map control does not require any registration, token, or download. Just drop it into your XAML and you have an interactive map.
Adding a map to our applicatipon is as simple as can be. We can either add a map using the “Map” control in XAML or in code. Anyone familiar with Windows phone will probably laugh at how easy this is, especially compared to the Bing map controls in Windows Phone 7. Once we have our control, the user can interact with it just as they would with any map control. It supports the full set of multi-touch features, allowing users the same fluid functionality that they are accustomed to in the normal mapping UI.
I want to mention this quickly because it is one of my favourite features in Windows Phone 8. When we download a map to our phone, we can see that map both in the native code and inside our application. We require no network connectivity to find our own location. Not only that, but can run a RouteQuery to fine a route between 2 or more points and, because we have the map downloaded, this query can run offline. So when we travel or we’re hiking, we can still use the map, find our way around and navigate in our application with ease.
If, for whatever reason, we feel that it is best for the user to use the native mapping application, we can very easily accommodate tht. The Maps task launches the Maps applicationwih some very simple and helpful parameters. You can provide a search string that is used to find and mark locations on the map or wef can optionally specify a center point for the map that appears. If you do not specify the center, the user’s current location is used as the center. You can also specify the zoom level to use initially when the map appears.By using Launchers, you help provide a consistent user experience throughout the Windows Phone platform.MapsDirectionTaskIf you do not specify one of Start or End it defaults missing parameter to your current locationCan also specify only the name of a location (but no coordinate) and it will automatically do a geocoding service lookup and display a selection list if multiple matchesMapsDownloaderTaskUse the map downloader task to enable users to download map data for offline use. The task launches the Maps settings application which allows the user to select a region of map data to download.
Also new and exciting in Windows Phone 8 sensors are NFC and Bluetooth. I can hear you saying “Wait, didn’t Windows Phone 7 have Bluetooth?” Yes, it did but with Windows Phone 8, we’ve opened up Bluetooth to make it simple for developers to access it and interact with apps and devices using Bluetooth technology.
Near Field Communication (NFC) is an international standard for short-range wireless connectivity that provides simple, and safe communication between electronic devices. NFC is the technology on the phone that makes Proximity scenarios possible. NFC has the following key characteristics.Communication occurs when devices are within 3–4 centimeters (1 to 1.5 inches) of each other.Communication is highly selective and intentional because users are intentionally bringing their devices together to connect.The maximum theoretical data transfer rate is 424 kbits/s. The typical data transfer rates range from 30 kbits/s to 60 kbits/s.Communication also can occur between an NFC device and an unpowered NFC chip, or tag.
Near Field Communication (NFC) is an international standard for short-range wireless connectivity that provides simple, and safe communication between electronic devices. NFC is the technology on the phone that makes Proximity scenarios possible. NFC has the following key characteristics.Communication occurs when devices are within 3–4 centimeters (1 to 1.5 inches) of each other.Communication is highly selective and intentional because users are intentionally bringing their devices together to connect.The maximum theoretical data transfer rate is 424 kbits/s. The typical data transfer rates range from 30 kbits/s to 60 kbits/s.Communication also can occur between an NFC device and an unpowered NFC chip, or tag.
Once you have your StreamSocket, you use this to communicate with the service on the remote device.It’s up to you to implement the communications protocol the service on the device is expecting.
Keynote (overall pitch both on the platform, consumer, design and opportunity) – 60 mins
Keynote (overall pitch both on the platform, consumer, design and opportunity) – 60 mins
Keynote (overall pitch both on the platform, consumer, design and opportunity) – 60 mins
Keynote (overall pitch both on the platform, consumer, design and opportunity) – 60 mins
The quickest and easiest way to generate speech output to a user of your app is to provide a plain text string to the SpeechSynthesizer.SpeakTextAsync() method. The code example shows how to do this.Note that this is one of the APIs that uses the new Task-basedasync programming pattern.
The quickest and easiest way to generate speech output to a user of your app is to provide a plain text string to the SpeechSynthesizer.SpeakTextAsync() method. The code example shows how to do this.Note that this is one of the APIs that uses the new Task-basedasync programming pattern.
textTospeech
Keynote (overall pitch both on the platform, consumer, design and opportunity) – 60 mins
With Windows Phone 8 SDK, you can create Voice over IP (VoIP) apps that allow users to make audio and video calls over their data connection. VoIP apps are integrated into the built-in phone experience so that, for example, incoming calls are displayed using the same phone UI as regular cellular calls.
Developers now have access to VoIP APIs so they can add seemless Voice over IP integration to their application. VoIP in a developer app are treated like any other call, with the same phone call UI and the ability to run in the background. This means a huge benefit for Windows Phone developers on bringing the power of VoIP to any application.
Right off the bat, we can see we have a similar structure. App.xaml handles our resource management, App.xaml.cs handles launching and suspension methods, the MainPage.xaml page contains the UI and has been set to the initial screen on startup.The big difference between these two projects is that the Windows Phone 8 version has been prepared to make localization a little easier.But the bulk of the functionality that we want to look at is in the MainPage.xaml.cs
Right off the bat, we can see we have a similar structure. App.xaml handles our resource management, App.xaml.cs handles launching and suspension methods, the MainPage.xaml page contains the UI and has been set to the initial screen on startup.The big difference between these two projects is that the Windows Phone 8 version has been prepared to make localization a little easier.But the bulk of the functionality that we want to look at is in the MainPage.xaml.cs
So what kind of common code can we expect to have across our projects? The commonalities include the .NET Base Class Library, as well as Hardware and Storage APIs. This is where we see the common Windows Runtime Kernel running across Windows 8 and Windows Phone paying off. But we’ll need to pause when we’re using launchers, choosers and sharing APIs that push us out to functionality that reaches beyond our application. These have been implemented differently in Windows 8 and in Windows Phone 8 because they are going to have different launcher and chooser applications and native capabilities. And the way we share and launch external functionality has been carefully designed to create the best user experience on each platform.
using demo PhotoChooser_Tutorial
checkfacili : netwok, vs, demo code,….
The first question we need to ask is “Is there anywhere I can download code that does the same thing in Windows 8 as in Windows Phone 8”? As a matter of fact there is.