New blog address fabienlavocat.com

by Fabien Lavocat 23. January 2012 19:38

January 2012, new year, time for new resolutions, for me it’s also time for a new blog. I couldn’t deal anymore with the problems of my old web site host. I can’t switch from ASP.NET 2.0 to ASP.NET 4.0. It means impossible to update BlogEngine to the last version, and impossible also to change the design of the site. So let me introduce my new domain fabienlavocat.com (yes I know it was very easy to find this name). The content of this new blog will be exclusively in English, considering that I live in California for more than 15 months now. I can’t stop talking in French at work Smile but I can’t stop on the web. I’ll try to post articles, code samples, tips, interesting packages… mainly for WPF and Windows Phone, basically because I love these technologies. Even if a lot of people around me think that Windows Phone is not enough good compare to an iPhone or Android, it’s not my opinion, and if we (.NET developers) don’t create content, applications for this OS it will not help Microsoft to push it more and more.

Please change your bookmarks and favorites for the new address of my blog: http://www.fabienlavocat.com

image

Tags:

Actualite du blog

Mobile bug tracking with BugSense

by Fabien Lavocat 12. October 2011 17:31

BugSenseToday I’m gonna talk about a new service I discovered yesterday, bugsense. This free tool is used to report crash of your mobile applications (iPhone, Android, Google AppEngine, BlackBerry or Windows Phone 7) and send to the developer a notification, then a web tracking system will help you to know what is needed to fix. You’ll ask me, why this tool is free? The business model (according to the FAQ) is that some future features will be available only with a premium account.

Let’s talk about features.

analytics

From your interface, your dashboard, you can track the number of exceptions raised by your applications every days, weeks, months. You can also track the list of bug you already fixed and the pending list.

image

As you can see, for an exception, you can see the stack trace, and a lot of information concerning the device, like the OS version, the country, the application version, the application name… A bug has two states, Unresolved and resolved. It allows you to track, filter and sort easily what you have to do for the next release of your application.

image

You can also invite other developers of your team to track the bugs in the same dashboard.

How to implement it into your applications.

It is very very easy! Do you know NuGet? Just install the package BugSense for Windows Phone into your project.

nuget

You’ve first to initialize the service by providing the application handled and your API Key (This key is given when you create a new application on the BugSense dashboard). Update the constructor of the class App.

/// <summary>
/// Constructor for the Application object.
/// </summary>
public App()
{
    // Define the instance of BugSense
    BugSenseHandler.Instance.Init(this, API_KEY);

    // Global handler for uncaught exceptions. 
    BugSenseHandler.Instance.UnhandledException += Instance_UnhandledException;
}

Then we have to modify the way to raise unhandled exception raised by your application. You can remove the line UnhandledException += Application_UnhandledException; from the constructor, and we will create our own handler.

// Code to execute on Unhandled Exceptions
private void Instance_UnhandledException(object sender, BugSenseUnhandledExceptionEventArgs e)
{
    // Use BugSense to report the exception
    BugSenseHandler.HandleError(e.ExceptionObject);

    if (System.Diagnostics.Debugger.IsAttached)
    {
        // An unhandled exception has occurred; break into the debugger
        System.Diagnostics.Debugger.Break();
    }
}
popup-wp7

So now, when a unhandled exception is raise in your application, this popup is displayed. When the user click OK, a report is sent to your dashboard, and an email is sent to your mailbox (if you activated the notification). You can, of course, customize the popup and the error message.

So, if you want to try the service BugSense for free, check it out http://www.bugsense.com/

Tags:

Windows Phone 7

Windows Phone 7.1 Mango SDK is now available

by Fabien Lavocat 28. September 2011 11:14

wp_logo

Microsoft published today the RTM of Windows Phone 7.1 SDK (aka Mango). If you already used the RC version to publish your app, there is no need to recompile or resubmit your application on the Marketplace. And as I said yesterday, if you want to make money with your applications, you can now use the Microsoft Advertising SDK which is included in this SDK in 11 more countries.

So, do you see any reason to not develop for Windows Phone 7 Mango???

Download the Web installer for Windows Phone 7.1 SDK, you can also download the full installer (.iso).

Tags:

Windows Phone 7

Windows Phone 7 Mango is available for everybody

by Fabien Lavocat 27. September 2011 17:58

wp_logoMicrosoft released today, Tuesday, September 27, 2011 the update of Windows Phone 7: Mango. This update is available for 98% of existing Windows Phone Customers. To see the schedule of the update, look at this website: United StatesInternational.

But the release of the mobile OS does not come alone. They also published the Web edition of the Marketplace. You can view and buy applications and games without using Zune software! You can access to the marketplace here: http://www.windowsphone.com/en-US/marketplace

Don’t forget to have a look at my other website MaWP7 and to download the last version (Mango ready) of the application Earthquakes.

If you’re a mobile developer, but not based in the USA, you will also enjoy the following news. Microsoft Advertising solution is now available for 11 more countries: Australia, Belgium, Canada, Finland, France, Germany, Italy, Netherlands, Norway, Spain, and United Kingdom.

Tags:

Windows Phone 7

Microsoft BUILD in Anaheim, CA from Sept. 12 to 16

by Fabien Lavocat 9. September 2011 10:02

BUILDMicrosoft is about to reveal a plenty of information about the next version of Windows, codename Windows 8, but also Visual Studio 2012, Expression Blend vNext, and of course the .NET Framework 4.5.

You’ll find more detail about what will be probably announced at BUILD on Mary-Jo Foley’s blog for ZDNet. I said “probably” because Microsoft didn’t say anything about the schedule of the sessions, just some basic information on the Agenda like there are 2 keynotes, one on Tuesday, one on Wednesday… Beside the technical event, it is the occasion for me and all developers from all around the world to do networking, exchange ideas, opinions, and business cards Smile

On my side I’m very interested to see the next version of Visual Studio and Expression Blend. To know what will be the possibilities for the developer to create new applications for Windows 8. And I hope, the answer that every single WPF / Silverlight developer is asking, Are WPF and Silverlight dead? Of course the answer is NO WPF and Silverlight are not dead, but to here that from Microsoft might be a high relied for the .NET developer community.

So if you attend to BUILD, let me know on my twitter @FabienLavocat and we can have meet and have a drink!

Tags:

Evenements Microsoft

Windows Phone 7 Toolkit release August 2011

by Fabien Lavocat 18. August 2011 09:52

image

Microsoft just released the August 2011 version of the Silverlight toolkit for Windows Phone 7. This release is dedicated to Mango developers, so you’ll need the Windows Phone 7.1 SDK Development (Mango) to use it. So first, if you did not do it already, download and install the Windows Phone 7.1 SDK. Then you can download the Silverlight toolkit for Windows Phone via Codeplex.

image

The new controls of this release are:

  • Smooth new LongListSelector designed for Windows Phone 7.1 OS
  • MultiselectList
  • LockablePivot
  • HubTile
  • ExpanderView
image
  • LocalizedResources
  • DateTimeConverters
image
  • DateTimePickers
image
  • HeaderedItemsControl
  • PhoneTextBox
image
  • ListPicker supports multiselect

    Do not forget to check the list of my applications available on the MarketPlace. MaWP7 Facebook page, MaWP7 Twitter account.

    Tags:

    Windows Phone 7

    My Applications for Windows Phone 7

    by Fabien Lavocat 15. August 2011 17:08

    wp7_button_blue

    I released last week, a new web site to present my applications for Windows Phone 7.
    I already published 3 applications:

    • Earthquakes: List of earthquakes all around the world on your Windows Phone 7 thanks to the data provided by US Geological Survey. An update is published on the marketplace, but still in the certification process…
    • Light 7: Turn your phone into a flashlight to find your way in a dark room, unlock your door on a dark night, read a map... This application will also help you to detect dead pixels on your phone!
    • Gratuity: Helps you to calculate the tip when you are at a restaurant with your friends. You just enter the amount of the bill and the number people to calculate the price per person.

    I’m currently working on the next version of each applications, and on some new projects.
    So check it out here: http://www.mawp7.com

    Also, I created a new Facebook page, and a Twitter account to follow the activity of the development.

    Tags:

    Windows Phone 7 | Actualite du blog

    Application Earthquakes - Windows Phone 7 - Think Globalization and Localization!

    by Fabien Lavocat 5. August 2011 09:44

    imageEarthquakes was my first application published on the Microsoft Marketplace for the Windows Phone 7, and like all first things, it is not perfect. I didn’t think about my dear friends in France and in all other countries with a non English Windows Phone 7 OS on their phone.

    When you code an application which can be published all around the world, you must think Globalization and Localization!!! (Shame on me, it was my job at Microsoft) So would like to use my blog to share with you my experience on the development for Windows Phone 7 and other technologies of course.

    My first advice is to be very careful when you try to parse numeric values like Double. In my application I get the magnitude of a earthquake in a String value, and I parse it with the function Double.Parse(magnitude) where magnitude is a String and contains something like “5.2”. For an English OS, no problem, but for a French OS, we don’t write “5.2” to represent a decimal, but “5,2” so the Parsing function doesn’t understand and raise an exception. So to fix this issue, you must use the function Parse with a IFormatProvider parameter. Double.Parse(magnitude, new CultureInfo(“en-US”))

    So please now, download the application Earthquake v1.1 on the marketplace.

    Tags:

    Windows Phone 7

    My first Windows Phone 7 application on the Marketplace - Earthquakes

    by Fabien Lavocat 4. August 2011 16:35

    Earthquakes_99x99

    Yesterday I published my first application on Microsoft Marketplace. This application named Earthquakes lists all recent earthquakes all around the world, and display them on a map. This kind of application is very interesting, especially if, like me, you live in a seismic area like San Francisco in California. You can download it for free with the Zune software: http://twlr.me/B5P

    Here are some screenshots of the application. I’ll add later new features like more details about the event, a button to publish on Twitter / Facebook…

    Earthquakes_Screenshot1Earthquakes_Screenshot2Earthquakes_Screenshot3

    Tags:

    Windows Phone 7

    Telerik - RadDragAndDropManager WPF Q2 2011 and backwards compatability

    by Fabien Lavocat 28. July 2011 11:38

    Telerik

    If you use Telerik components (like me) for your applications, you probably downloaded the last version (Q2 2011) to have access to the new control RadBreadcrumb. But if you use the RadDragAndDropManager to manage easily your Drag & Drop features, you’ll notice that it doesn’t work anymore. Why? Because Telerik implemented some changes to this control into this last edition of the WPF package. Have a look at the Release History for WPF Q2 2011.

    image

     

    So here is the changes you have to implement to have a backward compatibility of your code with the last edition of the controls. You need to implement those changes in the constructor of your Page / UserControl:

    public MyPage()
    {
    	// Uses legacy execution mechanism. through RadDragAndDropManager class.
    	// This option is provided for backwards compatability.
    	RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;
    
    	InitializeComponent();
    
    	this.Unloaded += (sender, e) =>
    		{
    			RadDragAndDropManager.ExecutionMode = DragExecutionMode.Default;
    			RadDragAndDropManager.Initialize();
    		};
    
    }

    Tags: ,

    WPF

    About

    Fabien Lavocat

    Lavocat Fabien
    Ingénieur Multimédia - TMM Communication



    "Blog-Microsoft.fr is an independent blog and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation."

    Contactez-moi Send mail

    MVP
    Microsoft Most Valuable Professional
    Client Application Development