novedades de windows phone 8
TRANSCRIPT
![Page 1: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/1.jpg)
Windows Phone 8Josué Yeray Julián FerreiroDevelopment advisor @ Plain ConceptsNokia Developer Champion / Certified TrainerMicrosoft MVP Windows Phone
[email protected]@JosueYeray
http://bit.ly/BlogYeray
1
![Page 2: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/2.jpg)
Plataforma Windows Phone 8
Windows Phone 8 Incluye tres novedades destacables
• Geoposicionamiento renovado
• Soporte para interacción por voz
• Comunicaciones NFC
![Page 3: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/3.jpg)
Plataforma Windows Phone 8: Mapas
Si pudieses elegir…. ¿Qué preferirías?
A) Usar unos mapas creados por una empresa de publicidad.
B) Usar unos mapas creados por una empresa de localización y navegación.
![Page 4: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/4.jpg)
Plataforma Windows Phone 8: Mapas
La verdad es que los mapas en Windows Phone 7.X eran muy malos
En Windows Phone 8 Nokia llega al rescate:• Todos los mapas, en todos los Windows Phone usan Navteq
• Se ha cambiado el control de XAML con nuevas características• Mapas offline
• Información de peatones
• Rutas
![Page 5: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/5.jpg)
Plataforma Windows Phone 8: Mapas
<Controls:Map LandmarksEnabled="True" CartographicMode="Terrain" PedestrianFeaturesEnabled="True" Pitch="65" ZoomLevel="18" Center="43.25799, -2.93339"/>
Microsoft.Phone.Maps.Controls
![Page 6: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/6.jpg)
Maps in Windows Phone 8
Otra de las novedades de los mapas de Wp8: Rutas
Es posible calcular rutas directamente en el mapa
Incluyen indicaciones
El propio mapa es capaz de pintarlas
No necesitamos salir de la app
![Page 7: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/7.jpg)
Maps in Windows Phone 8
Clase RouteQueryDefinimos modo de viaje (Conducir o Caminar)GeocodeQuery, ReverseGeocodeQuery y RouteQuery se usan igual
query = new RouteQuery(){ TravelMode = TravelMode.Driving, Waypoints = new List<GeoCoordinate>() { Startcoordinate, destination }};
query.QueryCompleted += query_QueryCompleted;query.QueryAsync();
![Page 8: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/8.jpg)
DEMO TIME!Creando un navegador GPS
8
![Page 9: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/9.jpg)
Plataforma Windows Phone 8: Voz
Windows Phone 8 Incluye tres tipos de uso de voz
• Comandos de voz (VCD)
• Text To Speech (TTS)
• Speech To Text (STT)
![Page 10: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/10.jpg)
Plataforma Windows Phone 8: Voz
Comandos de Voz
Nos permiten definir ordenes, que el sistema operativo entiende
Sirven para iniciar nuestra aplicación, realizando una acción concreta
Manejados por el sistema:Definimos un archivo VCD
Al inicio de la app, lo instalamos en el sistema
El sistema será capaz de ejecutar esas ordenes
![Page 11: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/11.jpg)
Plataforma Windows Phone 8: Voz
Comandos de Voz
<CommandSet xml:lang="es" Name="NavigatorSpanishCommands"> <CommandPrefix>navegador</CommandPrefix> <Example> abrir navegador </Example>
<Command Name="SeachNavigator"> <Example> nueva ruta </Example> <ListenFor> [y] buscar [una] [nueva] ruta </ListenFor> <Feedback> buscando nueva ruta... </Feedback> <Navigate /> </Command></CommandSet>
![Page 12: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/12.jpg)
Plataforma Windows Phone 8: Voz
Comandos de Voz
Clase VoiceCommandServiceNamespace Windows.Phone.Speech.VoiceCommandsIMPORTANTE: ID_CAP_SPEECH_RECOGNITION
Comprobamos si el comando ya está instalado con InstalledCommandSets
Instalamos con InstallCommandSetFromFileAsync
if (!VoiceCommandService.InstalledCommandSets.ContainsKey("NavigatorEnglishCommands")) await VoiceCommandService.InstallCommandSetsFromFileAsync( new Uri("ms-appx:///VoiceCommands.xml", UriKind.Absolute));
![Page 13: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/13.jpg)
Plataforma Windows Phone 8: Voz
Speech To Text
Nos permite reconocer texto a partir de la voz
Namespace Windows.Phone.Speech.Recognition
Clase SpeechRecognizerUI
IMPORTANTE: ID_CAP_SPEECH_RECOGNITION y ID_CAP_MICROPHONE
![Page 14: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/14.jpg)
Plataforma Windows Phone 8: Voz
Speech To Text (Without UI)
Nos permite reconocer texto a partir de la voz
Namespace Windows.Phone.Speech.Recognition
Clase SpeechRecognizer
Evento AudioCaptureStateChanged
IMPORTANTE: ID_CAP_SPEECH_RECOGNITION y ID_CAP_MICROPHONE
![Page 15: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/15.jpg)
Plataforma Windows Phone 8: Voz
Text To Speech
Nos permite sintetizar texto con las voces instaladas en el sistema.
Podemos escoger género e idioma de la voz.
Namespace Windows.Phone.Speech.Synthesis
Clase SpeechSynthesizer
SpeechTextAsync(“”);
![Page 16: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/16.jpg)
DEMO TIME!Añadiendo sintetización de voz a nuestro navegador GPS
16
![Page 17: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/17.jpg)
Plataforma Windows Phone 8: NFC
Clase PeerFinder
Namespace Windows.Networking.Proximity
Permite anunciar nuestra app a otro dispositivo
Abre la app o lleva al usuario a la tienda
Util para compartir nuestra app “punto a punto”
![Page 18: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/18.jpg)
Plataforma Windows Phone 8: NFC
Clase ProximityDevice
Namespace Windows.Networking.Proximity
PublishMessage
PublishUriMessage
PublishBinaryMessage
![Page 19: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/19.jpg)
Plataforma Windows Phone 8: NFC
Tipos de mensajes?
Windows (Propietario)WindowsUri, WindowsMime,
Windows:WriteTag
NDEF (Standard)NDEF, NDEF:ext, NDEF:MIME,
NDEF:WriteTag
Más info: bit.ly/NFCTypes
![Page 20: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/20.jpg)
Plataforma Windows Phone 8: NFC
Tipos de mensajes?
Implementación Windows NFC no conoce NDEF
Podemos implementar mensajes standard nosotros
PublishBinaryMessage es la única forma de enviarlos
![Page 21: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/21.jpg)
NFC in Windows Phone 8
Mensajes Custom Windows
Publicados mediante PublishMessage
Permiten subscripción
Nosotros definimos el tipo y el mensaje
El sistema no reconoce ni recibe estos mensajes
![Page 22: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/22.jpg)
DEMO TIME!PeerFinder & PublishUri
22
![Page 23: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/23.jpg)
=Nokia Premium Developer Program
99 USD/year
© 2012 Nokia. All rights reserved.
Windows Phone Dev Center Membership
99 USD/yr
Telerik RadControls for Windows Phone
99 USD
12,000,000 API calls from Buddy.com
1,200 USD
2 Nokia Tech Support tickets
198 USD
A high-value suite of services and tools to help you optimize your Windows Phone development.Richer apps. Shorter development times. Lower development costs.Up to $1,500 in benefits, for $99
NOKIA PREMIUM DEVELOPER PROGRAM
![Page 24: Novedades de Windows Phone 8](https://reader035.vdocument.in/reader035/viewer/2022070315/554f7184b4c905c8088b5609/html5/thumbnails/24.jpg)
More info…MVVM
GOOD PRACTICES
XAML
STYLES & TEMPLATES
SYSTEM INTEGRATION
COMMUNICATIONS
NFC & BLUETOOTH
SENSORS
AND MUCH MORE… (550 pages) 24
bit.ly/wp8book