My Windows Phone app crashes when download from store - windows-phone-7

My application runs normally on the emulator without any problems.
But when I upload it to the app store and download it from the app store it crashes.
I've started by debugging and the app doesn't crash. It only crashes when downloaded to the phone from the store.
Note: I uploaded the app to the store as beta.

Put a breakpoint to Application_UnhandledException method located in App.xaml.cs and debug e object. If you cannot find anything, put a messagebox in it and publish it to the store as a private beta. Then test it again.
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
MessageBox.Show(e.ExceptionObject.Message);
}
If you record video then you should add needed capabilities from here to your app from AppManifest file.
ID_CAP_ISV_CAMERA , ID_CAP_MEDIALIB and ID_CAP_MICROPHONE

I have to solve the problem
The only problem is that you need to define this line
MICROPHONE=MICROPHONE.Default;
Thank all

Related

Can a Windows 10 UWP (Desktop Bridge) app re-launch its own executable?

I have created a UWP app for Windows 10 using the Desktop Bridge. Mostly it works just fine, however my app needs to re-launch its own executable (with different command-line arguments). The two processes work together.
This works just fine for the non-UWP app, but when run as a UWP, I can't seem to re-launch my own executable (as derived from the process command-line). Should this be possible? Is there a particular way that I need to do it an UWP app?
Currently I get the error: Access is denied.
To launch your app the same way it would be launched when the user taps the app list entry, you can do this:
private async void StartMyApp()
{
var appListEntries = await Windows.ApplicationModel.Package.Current.GetAppListEntriesAsync();
await appListEntries.First().LaunchAsync();
}
This code assumes your package manifest contains only one application node. In case you have multiple, you need to pick the right one to call LaunchAsync on.

Submitting Windows Phone 7.0 App to Marketplace

Is it still possible to submit a Windows Phone 7.0 App to the Marketplace? I know the Marketplace is only accessible by 7.5 Phones. But I have some old Codebase and want the Change to be minimal.
Yes. You can. You do not have to use the 7.5 features, but I would recommend you do so. I know that when I use an app, it drives me nuts when an app doesn't use the fast app switching capability of Mango, and that doesn't require any extra code other than to switch to the newer SDK, unless you're already using tombstoning (no, not all apps need this), in which case you need to add a short if statement in app.xaml.cs to the application_activated method.
private void Application_Activated(object sender, ActivatedEventArgs e)
{
if (!e.IsApplicationInstancePreserved)
{
RestoreStateFromTombstone();
}
}
Here's a link explaining the above: http://henry-chong.com/2011/08/wp7-upgrading-your-app-from-7-0-to-mango-fas-tombstoning/
Using the 7.0 SDK is a good way to get me to delete the app, unless it is something I really need, and there is no other, and in that case, I will be watching for a replacement.

Implementing error logging in windows phone 7 app? [duplicate]

I don't have a WP7 device yet. Everything is functional in My App on a Simulator, but when my customer test it, app does not function at all. e.g. VDO is not playing.
Is there a way to get a crash log from Windows Phone 7? (like iPhone).
You can easily create your own crash report. Basically this is what you have to do:
In your App class add an handler for the UnhandledException event
inside the handler prepare a log with everything you need (stacktrace, memory allocated, etc.)
use an email composer Task to send the report.
You can also check BugSense which is a cross-platform(iPhone,Android and Windows Phone) tool that collects and analyzes crash reports from mobile apps.
Disclaimer: I have developed the WP7 plugin.

WP7 app won't launch from app list

I have a simple Windows Phone 7 application which is working perfectly when started from Visual Studio. However, if I deactivate the app (press Windows button or back button from the application's MainPage) and then click the app's icon to relaunch, the screen will flash and return to the list/home screen. I assumed this was an issue with the emulator but when I got a developer device I have the same issue.
Note that reactivating without a complete tombstone works (pressing Windows button from the app and then back).
I have no idea what causes this or how to proceed with debugging. Hopefully someone else has experienced this and knows a fix.
Turns out there is a bug, i found the solution here http://forums.create.msdn.com/forums/p/67522/416995.aspx
In short, it turns out that the Microsoft.Xna.Framework.Media.MediaLibrary class (which I am using to display pictures on applications main page) is not properly initialized when the user has not opened a media hub prior to you calling it. So picture collection properties are null or empty. The solution is to add a call to MediaPlayer.Queue.ToString(), it will force the initialization of the native media library allowing you to invoke the MediaLibrary later on.
Sounds like an unhandled error on startup is causing the app to crash.
Trap/log/handle/display any unhandled exceptions. Also check what you're doing on startup.
IF you are saving something (to Isolated Storage) after first run and then opening it on subsequent launches then that's where I'd look first.
If it works when launched from Visual Studio then this will probably be due to the way you are rebuilding/redeploying the app before launching it in that case.

Erase IsolatedStorage from Windows Phone 7 emulator?

I am building a wp7 app. I am using IsolatedStorage. Sometimes, for testing purposes, I'd like to erase everything my app has put into IsolatedStorage. Is there a way to do this for the emulator, or must I do it programmatically?
You'll lose all isolated storage for all apps by restarting the emulator.
Alternatively, you could uninstall the app from the emulator via tap and hold on the app list.
If you did want to do this programatically the code is very simple:
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
store.Remove();
}

Resources