LENS APP: TRASFORMARE IL TELEFONO IN UNA FOTOCAMERA Marco Dal Pino Nokia Developer Champion Microsoft MVP – Client Development Senior Mobile Dev @ DPCons ITALIAN WEBINAR
May 09, 2015
LENS APP: TRASFORMARE IL TELEFONO IN UNA FOTOCAMERA
Marco Dal Pino
Nokia Developer Champion
Microsoft MVP – Client Development
Senior Mobile Dev @ DPCons
ITALIAN WEBINAR
Nokia Internal Use Only
AGENDA
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• WP e App fotografiche • Lens App: cosa sono • Integrazione • Nuove risoluzioni • Imaging SDK
Nokia Internal Use Only
WP E APP FOTOGRAFICHE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
WP E APP
FOTOGRAFICHE Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
LENS APP: COSA SONO
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
COSA SONO
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• App selezionabili come stand alone o dal viewfinder della camera
• Non solo scatto, ma anche «Rich_Media_Lenses» per vedere o editare le foto
• Offrire esperienza di utiizzo della fotocamera per altri servizi (es. lettura barcode)
Nokia Internal Use Only
LENS APP:
COSA SONO Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
INTEGRAZIONE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
INTEGRAZIONE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• Le applicazioni fotografiche possono essere integrate con il sistema operativo
• L’utente può interagire con l’applicazione direttamente dall’hub Photos
• Viene attivata con una dichiarazione nel file di manifest
• L’app viene aperta con un Uri speciale
Nokia Internal Use Only
• L’applicazione viene aggiunta nella sezione Apps dell’hub Photos
• Al tap, l’applicazione viene aperta regolarmente
• E’ semplicemente una scorciatoia
APPS
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
<Extension ExtensionName="Photos_Extra_Hub" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
MANIFEST
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
• L’utente può importare una foto della libreria direttamente nell’applicazione
• L’applicazione riceve un GUID che rappresenta la foto scelta
• La classe MediaLibrary permette di recuperare l’immagine tramite GUID
SHARE PICKER
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
MANIFEST & URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Extra_Share" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=ShareContent&FileId=%7BA3D54E2D-7977-4E2B-B92D-3EB126E5D168%7D
Nokia Internal Use Only
• «Firma» che viene applicata alle foto scattate e salvate in Camera Roll con un’applicazione di terze parti
• Viene visualizzata nell’hub Photos e come opzione nell’app bar
RICH MEDIA APP
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Rich_Media_Edit" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=RichMediaEdit&token=%7Bed8b7de8-6cf9-454e-afe4-abb60ef75160%7D
Nokia Internal Use Only
• Pensata per le applicazioni che supportano la modifica delle foto
• Funzionamento analogo allo Share Picker
EDIT
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Extra_Image_Editor" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=EditPhotoContent&FileId=%7Bea74a960-3829-4007-8859-cd065654fb
Nokia Internal Use Only
• L’applicazione può essere lanciata dall’app nativa della fotocamera
• In questo modo, l’utente può continuare a sfruttare il tasto hardware dedicato
LENS APP
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Camera_Capture_App" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5631}" TaskID="_default" />
/MainPage.xaml?Action=ViewfinderLaunch
Nokia Internal Use Only
INTEGRAZIONE Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
NUOVE RISOLUZIONI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
• 1020, 1520, 1320
• Microsoft.Phone.Info.DeviceStatus.DeviceName
• Identificato come RM-xxx
• Risoluzione da forzare:
• Per il 1020 7712 x 4352
• Per il 1520 5376 x 3024
NUOVE RISOLUZIONI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
XAMLESSENTIAL
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
NUOVE RISOLUZIONI Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
• Libreria nativa di Nokia per Windows Phone 8 (qualsiasi device, non solo Lumia)
• http://s.qmatteoq.com/ImagingSDK
• Permette di applicare filtri alle immagini acquisiti o in real time
• Funzionalità di crop, resize, undo
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
• Essendo una libreria nativa, non può essere compilata in modalità «Any CPU».
• Occorre specificare l’architettura:
• ARM per deploy sul device e sullo Store
• X86 per deploy sull’emulatore
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
IMAGING SDK Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Grazie!
@marcodalpino
http://mobileprog.net