01-20-2009 09:48 AM
I have an app developed in JDE 4.2.1, that uses the ApplicationPermission class to check current permissions,
and ask the user via the invokePermissionsRequest() API call, for missing permissions.
This works GREAT in 4.2.xxx, and the user is prompted , and then presented with new permissions.
The user has to then "Save" the new permissions, and then the application works, without showing any
security dialogs on network access etc..
So far so good..
Now, when the same application is run on a BOLD or (another device running 4.3), the following happens :-
On OTA download :-
1. First the user gets a prompt :- Would you like to grans App Trusted app status ---> YES
2. Next :- App is requesting changes to its application control permissions (invokePermissionsRequest()) ---> View
3. Then a permissions screen is shown , and I select "Save" from the menu.
4. Next :- Dialog "Permission setting have become more restrivtive.. Device must be reset . Notive 1 of 5"
Ok, I reboot
Then I launch the app by clicking its icon.
I am back at
and this keeps on happening !!!
Any idea what has changed in O/s 4.6.0 to break this ????
01-20-2009 12:06 PM
I was ( and still) getting the same behavior. When I compiled on the same version as the phone (i.e. 4.6) it worked fine.
My own explanation to this is that there are some incompatibilities in the AppPermission class. I know that they have added, renamed and combined flags in the new version. That could be the problem.
For now I had to relax my conditions and check for the "Deny" only. What used to require "Allow" permission is changed to check for not "Deny" only. This way I (pseudo) got around the problem.
Please let us know if you have a better work around.
01-20-2009 12:11 PM
I get the same error even when I compile with JDE 4.6.0.
The only work around that works for me, is if I select "Expand All " before "Save" when the permissions are displayed.
I am requesting at least 5 permissions.
I still have to compile the JDE sample and test.