While working on a
Windows Phone 7 project, Matthias Shapiro came up against a problem in which the project would crash after a picture had been taken. After he spent a little time digging into Internet with no result, Matthias came out with his own solution.
Source: Designer Silverlight
The scenario we wanted went something like this: We wanted the user to tap a button and launch the camera task. This would close (tombstone) the application until the camera task was complete (the user took a picture and returned to the app). Upon completion, the application is re-initiated and the camera task hands the application an image stream that we can use to determine the bar code number. We then navigate to a screen that will show all the information about the product the user just scanned.