After some testing..... a word of caution. If you install a release app on a device during testing it remains in the background and does not appear to get closed by subsequently installing a debug version... even though it has the same package name. When running the debug app a file operation seems to throw a sharing exception as a result.