Adding a RadCloudDiagnostics component in your Windows Phone application
The following steps will guide you through the process of setting up a RadCloudDiagnostics component on a Windows Phone application:
- Create a Content Type that will store the diagnostics reports on Everlive.com.
This type should be EverliveDiagnosticsInfo and it should have the following structure:
Define a RadCloudDiagnostics instance in the App.xaml.cs file and call its Init method:
RadCloudDiagnostics diagnostics = new RadCloudDiagnostics();
Initialize ApplicationUsageHelper in the App.xaml.cs file:
private void Application_Launching(object sender, LaunchingEventArgs e)
private void Application_Activated(object sender, ActivatedEventArgs e)
This will add a diagnostics component in your application which will send diagnostics info in the cloud in case an ApplicationUnhandledException occurs.
Optionally you can set the IsUserNotifiedOnException property to true if you want to notify the users about the exception and
let them choose whether the report will be sent or not.