Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Location and API Maps in Windows Phone 8
1. LOCATION AND MAPS API
IN WINDOWS PHONE 8
SPECIAL GUESTS: THE NOKIA HERE® LAUNCHERS
Windows Phone Day
November 2013 - Catania
Ing. Antonio Pelleriti
Chief Software Architect @ Dynamicode
follow me: @zetanove
www.antoniopelleriti.it
Il servizio di localizzazione usato da Windows Phone utilizza dati provenienti da diverse sorgenti, in maniera da ottimizzare la precisione:
A-GPS
Wi Fi
Rete Cellulare
Una o più di queste risorse possono essere utilizzare contemporaneamente, anche per bilanciare performance e precisione con il consumo di energia
Le informazioni di geolocalizzazione vengono poi esposte alle applicazioni per mezzo di API basate su eventi
A-GPS
Highest accuracy
Highest power consumption
Slow startup
No Indoor
Wi-Fi triangulation
Accuracy: >cellular network <GPS
Medium power consumption
Medium startup speed
Needs wifi networks
Cell Tower triangulation
Low accuracy
Low power consumption
Fast startup
Needs coverage
L’architettura di Windows phone per la geolocalizazione consiste di 3 strati:
Uno hardware
Uno di codice nativo
Uno di codice gestito
Se non c’è id_cap_location, all’utilizzo si scatena un’ AccessUnauthorizedException
In ogni caso gestire la possibile eccezione, se l’utente è in modalità aereo.
Per certificare un app bisogna chiedere il consenso all’utente, e salvarlo per esempio nell’isolated storage
DesiredAccuracy Default High (favorisce gps e consuma di più)
DesiredAccuracyInMeters
MovementThreshold in meters (20 è un buon valore)
StatusChanged scatenato quando cambia lo stato del componente che rileva la posizione.
In wp 7.5, se l’app viene sospesa e va in dormant o tombstone, tutti i dati di location vengono buttati via.
In WP8 è possibile avere una sola app in background, che effettua location tracking
Se ci sono più app che vogliono registrarsi per il location tracking, la più recentemente aperta prende il comando, le altre vengono passate in stato dormant o tombstoned
The app stops actively tracking location. An app stops tracking location by removing event handlers for the PositionChanged and StatusChanged events of the Geolocator class or by calling the Stop() method of the GeoCoordinateWatcher class.
The app has run in the background for 4 hours without user interaction.
Battery Saver is active.
Device memory is low.
The user disables Location Services on the phone.
Another app begins running in the background.
In wp 7.5, se l’app viene sospesa e va in dormant o tombstone, tutti i dati di location vengono buttati via.
In WP8 è possibile avere una sola app in background, che effettua location tracking
Se ci sono più app che vogliono registrarsi per il location tracking, la più recentemente aperta prende il comando, le altre vengono passate in stato dormant o tombstoned
ContinuousLocation Demo
Le proprietà vanno impostate dopo il caricamento del primo controllo Map dell’App
E vengono mantenute dall’infrastruttura.
Se tutte le mappe sono distrutte e viene creata una nuova istanza, bisogna reimpostarle
Landmarks edifici 3d
Pedestrian dettagli utili ai pedoni, come scali, passaggi,
Maps Data shared between apps.
MapDownloaderTask and MapUpdaterTask launch the default maps settings application, to provide consistent User Experience
MapOverlay object has a generic Content property,
For shapes, controls, images, video, ecc.
MapExplorer
HERE Drive+ Beta è un'applicazione gratuita per la navigazione contenente istruzioni guidate e supporto completo offline, oltre alle istruzioni vocali per guidare in modo più semplice e sicuro.
Transit Visualizza tutte le opzioni per i trasporti pubblici: autobus, treno, metropolitana, tram. Accedi facilmente agli itinerari e alle indicazioni per raggiungere le stazioni.
Ristoranti, negozi, musei e hotel: HERE City Lens ti svela tutto quello che c'è davanti ai tuoi occhi. L'applicazione è disponibile soltanto per gli smartphone Windows Phone 8 dotati di magnetometro.
With Windows Phone 8, developers can launch other applications with URI schemes. It is possible for developers to launch HERE applications by utilising the URI schemes implemented in those applications; the documentation for these schemes can be found in the Windows Phone URI scheme protocol for HERE applications topic.
Another way of launching other applications and using their services with Windows Phones is using the Launcher APIs (MSDN) which allow an application to integrate with common system tasks, such as taking a picture, finding a contact, making a call, or saving a ring tone with very little effort. Thus, for convenience, we provide you the HERE Launchers API that simplifies developer's life by providing an API surface very similar to the Windows Phone launchers.
When launcher tasks are used, the application made for handling the use case will be launched and the parameters given to the launchers will be forwarded to the handler application via the URI scheme protocol.
In case there is no handler application for the given protocol installed in the device, then the user will be given an option to open Marketplace application for automated search for applications which can handle the specified protocol.
In case there are multiple handler applications for the given protocol installed in the device, then the user will be shown a selection dialog from which the desired handler application can be chosen.