02-12-2010 08:20 AM
I have to find if the device is BES connected or BIS connected.
Is there any way to find this other then using service book records.
Because if internet permission is set to DENY we can not get service book records as it throws ControlledAccessException.
Thanks for help
02-12-2010 08:28 AM
But for BES connected devices i need to check the server network permission.
Some devices (I think BES connected) don't assign this permission to applications , so depending on this i'm planning to invoke the permission dialog.
02-12-2010 08:33 AM
You should be able to read the value and the maximum value of this permission using the Application Control API (ApplicationPermissionsManager). If the maximum value is DENY, you know that the IT Policy is preventing your application from accessing the MDS.
02-12-2010 10:36 AM
The way I use to figure out if a device is BES enabled or not, is as follows:
a. There should be a few service records with name as "Desktop" or "Blackberry". These are the records created when the device is provisioned with a BES.b. Out of these records, Traverse through and check their CID. You would observe that a few services are configured on your device, e.g. ALP, MDS, CICAL etc.
2. Alternatively, you may check for Connectivity, e.g. If Coverage is sufficient for CoverageInfo.COVERAGE_CARRIER, but not for CoverageInfo.COVERAGE_MDS, then there are chances that the Device is not provisioned.
3. Check for default email service connection, e.g. Session.getDefaultInstance().getStore().isConnecte
As far as permissions are concerned, well as said by klyubin, you can use ApplicationPermissionManager to read the value of a permission.
02-15-2010 12:11 AM
I tried using ApplicationPermissionManager for invoking the required permissions.
So when only "ServerNetwork" permission is set to "DENY" in Default Permission a blank permission page is seen while installing our application.
This behaviour is seen only if the "ServerNetwork" permission is not listed in the Applications Permissions list.