Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Phone 7.5 Tips and Tricks for Developers Sascha P. Corti Developer Evangelist, Microsoft Switzerland | techpreacher.corti.com.

Similar presentations


Presentation on theme: "Windows Phone 7.5 Tips and Tricks for Developers Sascha P. Corti Developer Evangelist, Microsoft Switzerland | techpreacher.corti.com."— Presentation transcript:

1 Windows Phone 7.5 Tips and Tricks for Developers Sascha P. Corti Developer Evangelist, Microsoft Switzerland | techpreacher.corti.com

2 Windows Phone 7.5 Quick Recap of What’s New

3 7.5 Software Architecture App Model Cloud and Integration Services Hardware Foundation UI Model Gyro Camera, Sensors & Motion Fast App Switch Silverlight and XNA Integration Silverlight 4.0 Flexible chassis SQL CE Gen GC Push, Alerts Multitasking Calendar Contacts Maps Extras, Tiles Sockets

4

5 download My WP Book App Ready Player One Jpod WP7 for Devs Great Mysteries o Cloud Background Transfer Service < 100 MB <20 MB <~3.0 MB GET POST void DownloadWithBTS(Uri sourceUri, Uri destinationPath) { btr = new BackgroundTransferRequest(sourceUri, destinationUri); btr.TransferStatusChanged += BtsStatusChanged; btr.TransferProgressChanged += BtsProgressChanged; BackgroundTransferService.Add(btr); } void BtsProgressChanged(object sender, BackgroundTransferEventArgs e) { DrawProgressBar(e.Request.BytesReceived); } using Microsoft.Phone.BackgroundTransfer; void GetCurrentProgress() { DrawProgressBar(btr.BytesReceived); } completed My WP Book App My WP Book App ISO Store

6 Occurrence: Every 30 min Duration: 15 seconds Scenarios: Incremental Data Sync Occurrence: External power, non-cell network Duration: 10 minutes Scenarios: Data Feasting

7 Silverlight 4 WebCam Reuse SL4 WebCam Knowledge Easily Target Desktop and Phone Record Video and Audio into File PhotoCamera Take High Quality Photos Handle Hardware Button Handle Flash mode and Focus

8

9 App Data Folder App Root Folder Instal l DB Database File (r/o) Creates root folder sandboxed to App Package Manage r App Creates/Manage s files and settings WP7 Isolated Storage APIs Application Settings File Application Files DB Database file // Define the data context. public partial class WineDataContext : DataContext { public Table Wines; public Table Vineyards; public WineDataContext(string connection) : base(connection) { } } // Define the tables in the database [Table] public class Wine { [Column(IsPrimaryKey=true] public string WineID { get; set; } [Column] public string Name { get; set; } …… } // Create the database form data context, using a connection string DataContext db = new WineDataContext("isostore:/wineDB.sdf"); if (!db.DatabaseExists()) db.CreateDatabase();

10 Title ContentTitle Background Content string is bigger

11 Getting StartedLocation and Sensors Fundamental ConceptsMedia Common Application Development TasksPush Notifications and Tiles Application FeaturesXNA-Specific Code Samples Background File Transfers, Agents, and AlarmsWindows Phone Development Quick Starts Cameras and PhotosWindows Phone Training Kit Controls Developing a Windows Phone Application from Start to Finish A Case Study for Building Advanced Windows Phone Applications

12 Windows Phone 7.5 “Tango”

13

14 Aaah! Fragmentatio n! Aaah! Fragmentatio n! ♥ ♥

15

16 Nokia Best Practice Tips

17 demo Testing your App with “Tango”

18 Application Lifecycle

19 Resuming...

20 running deacti vated dormant activate d Phone resources detached Threads & timers suspended Fast App Resume Save App State! State is Preserved Tomb stoned

21 Resuming... running deacti vated dormant activate d Tombston e the oldest app tomb stoned Restore State ! Tomb stoned

22 running deacti vated dormant activate d tomb stoned Tomb stoned

23 MediaPlayer.Pause MediaElement.Pause SoundEffectInstance.Pause VibrateController.Stop PhotoCamera.Dispose Save Page / Global State MediaPlayer.Pause MediaElement.Pause SoundEffectInstance.Pause VibrateController.Stop PhotoCamera.Dispose Save Page / Global State XNA AudioPaused SensorsNotifications suppressed NetworkingCancelled SocketsDisconnected MediaElementDisconnected CameraDisposed

24 MediaElement.Source/Position/Play Socket.ConnectAsync new PhotoCamera/VideoCamera Restore app state if tombstoned MediaElement.Source/Position/Play Socket.ConnectAsync new PhotoCamera/VideoCamera Restore app state if tombstoned XNA AudioResumed SensorsNotifications resumed NetworkingCompleted with Cancellation Sockets- MediaElement- Camera-

25 demo Application Lifecycle Windows Phone 7 App with and without AL Awareness

26

27 demo Windows Phone 7.5 App with IsApplicationInstancePreserved App Versioning Done Right

28 In App Advertising

29

30

31

32

33

34 demo Microsoft Advertising SDK for Windows Phone

35

36 demo Doing GPS The Right Way

37 Windows Phone Marketplace

38 Windows Phone 7: 16 Windows Phone (35) Added in 2012: +28 (63) Bahrain, Bulgaria, China, Costa Rica, Croatia, Estonia, Iceland, Iraq, Israel, Kazakhstan, Latvia, Lithuania, Qatar, Romania, Saudi Arabia, Slovakia, Slovenia, Thailand, Turkey, UAE, Ukraine, Venezuela, Vietnam, Argentina, Indonesia, Malaysia, Peru, Philippines

39 * People who obtain deep link can access and download. “Beta”PrivatePublic # of users100unlimited App PriceMust be “free”Can be “paid” Time LimitedExpires after 90dNo UpdateableNoYes Certification RequiredNoYes DiscoverableNoNo *Yes Access ControlLimited to test user WLIDs provided No Target UsersBeta UsersPrivate UsersPublic Users

40

41 Resources for Developers

42 App Hubhttp://create.msdn.com Toolshttp://wpdev.ms/wpsdk71rc WP on MSDN Libraryhttp://wpdev.ms/wponmsdn WP “How To” Indexhttp://wpdev.ms/wphowtos WP UX Guidehttp://wpdev.ms/wpuxguide WP P&P Guidehttp://wpdev.ms/wppnpguide WP Dev Bloghttp://wpdev.ms/developerblog Porting to WPhttp://wpdev.ms/porting WP Labs (WP7)http://wpdev.ms/wprtmhols WP Labs (WP7.5)http://wpdev.ms/mangohol WP SL Quick Startshttp://wpdev.ms/xamlquick

43 WP Jumpstarthttp://wpdev.ms/jumpstarts WP How To Videoshttp://wpdev.ms/howvids WP “Absolute Beginners”http://wpdev.ms/beginvids Inside WP on C9http://wpdev.ms/insidewp Design Toolboxhttp://wpdev.ms/designtb WP Game Dev Vidshttp://wpdev.ms/gamevids WP at MIX 11 Vidshttp://wpdev.ms/wpmix11 WP at TENA 11 Vidshttp://wpdev.ms/wptena11

44 App Hub FAQhttp://wpdev.ms/apphubfaq App Hub Forumshttp://wpdev.ms/ahforum Registration Walkthroughhttp://wpdev.ms/regwalk Submission Walkthroughhttp://wpdev.ms/subwalk Cert Requirementshttp://wpdev.ms/certreq WP Samples on MSDNhttp://wpdev.ms/officialsamples SL Toolkit for WPhttp://wpdev.ms/wpsltk Azure Toolkit for WPhttp://wpdev.ms/wpwaztk

45 Silverlight Show on WPhttp://www.silverlightshow.net/Search.aspx?q= %5Bwindows-phone-7%5D Windows Phone Geekhttp://www.windowsphonegeek.com/ WPDEV on Twitterhttp://twitter.com/#search?q=wp7dev WPDEV on REDDIThttp://www.reddit.com/r/wp7dev WPDEV on Stack Overflowhttp://stackoverflow.com/questions/tagged/wind ows-phone-7

46

47 Backup Slides

48

49

50


Download ppt "Windows Phone 7.5 Tips and Tricks for Developers Sascha P. Corti Developer Evangelist, Microsoft Switzerland | techpreacher.corti.com."

Similar presentations


Ads by Google