04-08-2009 04:21 PM
I'm developing in on OS 4.7 for the Storm.
Under Options>>Advanced Options>>App name>>Edit Permissions>>Interactions, there is an Input Simulation option that is set to "Deny" by default. I need it to be "Allow" in order for me to programmatically suppress some random "switch app" popups. I have an instruction within my app to ask the user to do it by himself, but that is cumbersome and people will probably not heed the tip.
Is there a way to programmatically set this permission to ALLOW?
04-08-2009 06:59 PM
Have you reviewed the Application Permissions API?
You will find a sample included with the JDE.
The key is the ApplicationPermissions.PERMISSION_.. permissions and reviewing quickly, I don't find one that matches what you want, but that is where I would start looking.
04-09-2009 01:45 AM
As per peter's suggestion, I found the key, which is ApplicationPermissions.PERMISSION_INPUT_SIMULAT
04-09-2009 02:41 PM
07-15-2009 10:00 PM
I am not so knowledgeable about this matter. So i have to learn it. Thanks for the post.
[url=http://pret-auto.org][color=#FFFFFF][u]taux pret auto[/u][/color][/url]
10-05-2009 01:30 PM
ApplicationPermissions requestedPermissions = new ApplicationPermissions(); requestedPermissions.addPermission( ApplicationPermissions.PERMISSION_EVENT_INJECTOR ); appPermissionsManager.invokePermissionsRequest( requestedPermissions );
Here is a piece of sample code to prompt the user to enable the Event Injector permission