DevTeach–Montreal

imageDevTeach is coming back to Montreal next week (May 30 to June 3). So on Monday May 30, there will be a pre-conference day where some subject like Agile Architecture, Extreme Database Design and Silverlight. Me and some colleges of RunAtServer will present the pre-conference on Silverlight. We will demonstrate and share on how to create a end-to-end application with Silverlight. Bring your laptop so you can enjoy the experience.

The next 3 days (May 31 to June 2) will be for the main conference. On my side, i’ll be presenting on the first day May 31st at 9h30. I will talk about “What you should know about Windows Phone 7 Development”. So i will demonstrate some of the new feature of the upcoming Mango update. I will also go through some of my real experience as a WP7 developer on some issue you may face and how to resolve them. So i hope to see you there.

On Friday June 3rd, there will be a post-conference days which will focus on Windows Phone 7, Sharepoint 2010 and Agile Development.

image

Regards,
LP

Portable Library – Share your libraries between multiple technology

Have you ever create an application where you want to share resources between them but you had to create multiple libraries to because those project use different compiler? If your like this often happen. In my case we face that issue. To solve the issue we had to create multiple libraries and refer class using linked files in the project. This is what we have to do in some project where we have a Silverlight 4 app and a Windows Phone 7 app. But this is not the most efficient way to do it.

Microsoft is now offering a solution for that kind of issue. The solution is called Portable Library, which is currently in CTP. So now you can create a single class library in which you can select which kind of project it should be compatible with. You should give it a look, because this may help you solve many issue and save times related with having common class libraries for multiple technologies.

To download the tools: http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/

For more information:
http://blogs.msdn.com/b/bclteam/archive/2011/01/19/
announcing-portable-library-tools-ctp-justin-van-patten.aspx

Regards,
LP

Windows Phone 7 Developers Briefing in Montreal

Join us at the Microsoft Windows Phone 7 Briefing for Developers!

windows phone developer briefingsWant to learn how to create awesome applications and games for Windows Phone 7?

Want to extend your existing apps onto a new platform?

Want recognition, exposure, and reach in an untapped marketplace?

RunAtServer will be presenting this Windows Phone 7 Briefing on behalf of Microsoft, you will learn more about developing on it’s latest mobile platform.  The briefing will cover three sessions exploring the two application frameworks available for Windows Phone 7, where to find developer resources, how to submit apps into Marketplace, and much more!
Session 1
6:00pm - 7:00pm - Apps with Silverlight
Session 2
7:15pm - 8:15pm - Games with XNA
Session 3
8:30pm - 9:00pm - Next Steps

When:
December 7

Where:
Intercontinental Hotel
St-Jacques
360 Rue St Antoine W
Montréal (Québec) H2Y 3X4
Canada

Registration link
https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032470418&Culture=en-CA

 

Other cities:

Register Today:

Ottawa, On – November 30, 2010
Calgary, AB – December 01 2010
Mississauga, On – December 2010
Montreal, QC – December 7 2010
Toronto, On – December 9 2010

See you there!

LP

Presenting at .NET Montreal Community on Windows Phone 7 on Monday November 15th

windows_phone_introTomorrow, it'll give a full session at the .NET Montreal Community about Windows Phone 7. In that session I'll give a full end to end overview of my experience building applications for Windows Phone 7. So I'll start with the idea through the development process and finally publishing the application to the marketplace.

If your interested, I’ll be also available to answers your question. I’ll also have a device so you can test and feel the new OS which is now available since November 8th.

For more information : http://www.dotnetmontreal.com/.../Default.aspx?selecteddate=15/11/2010

 

 

See you there!
LP

Windows Phone 7 – Suspend mode

Recently i was publishing an updated version of an application on the Marketplace for Windows Phone 7, and my update failed the testing process.

Why?

Comments: The user isuse  presented with an error message when the location services are disabled on the device. The error
message that is displayed is not a user friendly message.
Steps to reproduce:
1. Turn on location service on device.
2. Launch the application and select a location
on the venues page.
3. Swipe to the map page and select view map.
4. When map is loaded press the Start button on the device. 5. Go to the settings of the device and turn off location service.
6. Press the Back button from the Start screen of the device to reactivate the application.
7. Notice a non-user friendly error notification appears.

Real reason
In reality the problem is not related with the location services. Because i don’t use the location service (i only use the Bing Map for display only).  In fact, the real problem it’s that i forgot to handle the Deactivated event and the Activated event.

Why do we have to handle the Activated and Deactivated event?
Windows Phone 7 doesn’t support multiple application running at the same time (except for some application approve by Microsoft). But when your application is running, for different reason (incoming phone call, the user click the start button, …) the application can be suspended. To eliminate some issues you should handle those event and make sure you persist important information.

gg266441_788be805-086f-49cf-9911-fc638a953c92_png(en-us)

One of the best place to handle these events is in the App.xaml. To do so you need to declare the events in the xaml code.

<Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService
            Launching="PhoneApplicationService_Launching"    
            Closing="PhoneApplicationService_Closing"
            Activated="PhoneApplicationService_Activated"    
            Deactivated="PhoneApplicationService_Deactivated" />
    </Application.ApplicationLifetimeObjects>

In the Activated event, you can store some data in the the Microsoft.Phone.Shell.PhoneApplicationService.Current.State dictionary. And in the Deactivated event, we can retrieve that information.

Conclusion
Make sure to test any scenario that a user may face. Currently, the testing process that Microsoft implemented is pretty exhaustive (which is good because it help ensure that the application in the Marketplace won’t crash).

Reference
http://msdn.microsoft.com/en-us/wp7trainingcourse_applicationlifetimewp7lab_topic2.aspx
http://bolingconsulting.com/blog/?p=46

Regards,

LP

About the author

Louis-Philippe Pinsonneault is a senior .NET developer and trainer at Runatserver. He has over 10 years of experience with . NET technology. He is a certified Microsoft Certified Professional Developer (MCPD) and a Microsoft Certified Technology Specialist .NET Framework 3.5 ASP.NET Application. He also teaches ASP.NET at Technologia, Montréal. He was awarded an MVP for Device Application Developement in 2010 and 2011.

Microsoft Most Valuable Professional

Microsoft Certified Professional Developer

Microsoft Certified Technology Specialist

View Louis-Philippe's profile on LinkedIn

Page List

Widget Twitter not found.

Root element is missing.X

Month List