03-21-2012 10:32 AM
I request permissions in the blackberry-tablet.xml, this is contained in my src folder along with appname-app.xml.
No matter what i try i cant get the request permissions to show on release build when i sideload it to test. This means i cannot use the camera or view files even though all permissions show as allow in security tab.
I have the blackberry-tablet.xml ticked as a file to be contained when releasing.
Any idea why this would be the case?
03-21-2012 10:38 AM
03-21-2012 10:59 AM
Thank you for your reply Peter,
I have had a look at the manifest file and it shows
My problem is that when i try to use browseForOpen i get this application cannot browse any files or if i call
CameraUI.isSupported it returns false.
This code has worked in the past but I have changed something by mistake (I think) and now get this issue. The app in question is actually on app world so I don't want to just start a new project in case that creates issues of users updating in the future.
Where does the app get told about the blackberry-tablet.xml (where is it defined) or is just a case of making sure a file named blackberry-tablet.xml in src folder?
03-21-2012 11:17 AM
The "access_shared" should be letting you browse files, provided you actually granted permissions for that as a user.
Go into the System Settings on your PlayBook, find the Security settings, Application Permissions, and scroll down to your app. Be absolutely sure you've got the correct instance of it, as you may have several entries if you've been installing debug builds, or if you changed the package id at any point.
Once you've found the correct one, check the individual permissions and make sure you Allowed each one and didn't mark them as "Denied". Better yet, set them to "Prompt" and tap Back, then launch your app again. (Changes to these do not take effect until the next time you launch the app.)
If you've got them set to Prompt, then when you launch that app it absolutely will display the permissions dialog again. Your issue is not related to the blackberry-tablet.xml file, as the MANIFEST.MF file is the only thing that matters here. The XML file is used only during packaging, and it is used directly to generate the MANIFEST.MF file. Only the MANIFEST.MF file is actually used on the device, so it's really not important what else you've got going on with packaging, now that you've established it is generated correctly.
03-21-2012 11:25 AM - edited 03-21-2012 11:26 AM
All permissions were set to allow in app permissions and I have tried setting use camera and access files to prompt - no prompts.
Also, I know i am looking at the correct app in permissions due to icon.
03-21-2012 11:43 AM
03-21-2012 12:02 PM
03-21-2012 12:33 PM
03-21-2012 12:40 PM