You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Youval Bronicki (JIRA)" <ji...@apache.org> on 2013/02/14 21:41:12 UTC
[jira] [Created] (CB-2442) On Windows 8 , camera.getPicture doesn't
work in installed application
Youval Bronicki created CB-2442:
-----------------------------------
Summary: On Windows 8 , camera.getPicture doesn't work in installed application
Key: CB-2442
URL: https://issues.apache.org/jira/browse/CB-2442
Project: Apache Cordova
Issue Type: Bug
Components: Windows 8
Affects Versions: 2.4.0
Reporter: Youval Bronicki
Assignee: Jesse MacFadyen
After installing my application, the camera function stopped working.
It turns out the issue was "Illegal Access" when trying to save the picture to the application's root folder.
I was able to fix the problem by writing to the local storage folder instead:
*Original Code:*
{quote} Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) {
/* Some code here */
});
{quote}
*Correction:*
{quote}
var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
/* Same code here */
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira