injection event permissions
Hello
I recently started development for my new BlackBerry 9000 using the eclipse plugin.
I'm trying to simulate pressure on the keys using EventInjector, which works very well in the Simulator, but not on the real device.
The reason is that I have a ControlledAccessException, that tells me that something was wrong with the signing of code so that my application does not have the required permissions to inject keyboard events.
I looked for solutions, the forums and the internet and found the following:
(1) due to a bug in the plugin to eclipse, the signature required (I selected in eclipse) is not defined. The solution is to manually edit a file each build before you sign, which I did, but the problem is still there.
(2) set the permissions on the phone using the Options->-> Applications-> (my application)-> change the default permissions of the Advanced Options. However, even if my application is installed on the phone (and can be found in the "Downloads"), it does not appear in this list.
My question is: why my request not to see the in this list of applications, and everyone has a hint of why my application does not receive the required permissions?
Thank you
Options-> Advanced Options-> Applications-> (Menu)-> Modules.
There's nothing really wrong with the installation of modules using JavaLoader for testing purposes. For most cases, it does not matter how to install modules.
Tags: BlackBerry Developers
Similar Questions
-
How to imitate the event with a click of a field? for example the icon "mail".
I can imagine a complicated way.
1 use the API API net.rim.device.api.ui.UiApplication.getActiveScreen to get the active display.
2. Use the net.rim.device.api.ui.Screen.getFieldCount API to retrieve the total number of fields on this screen; or use getFieldWithFocusIndex() to retrieve the index of the target field.
3 use getField (int index) to retrieve the specific field. With methods such as "KeyDown()", and then click the field.
Is there an easier way to do this?
Thank you.
If you are allowed to inject events, the following code should do the trick
invokeAndWait(new Runnable () { public void run() { EventInjector.NavigationEvent e; e = new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_CLICK, 0, 0, KeypadListener.STATUS_NOT_FROM_KEYPAD); EventInjector.invokeEvent(e); e = new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_UNCLICK, 0, 0, KeypadListener.STATUS_NOT_FROM_KEYPAD); EventInjector.invokeEvent(e); }});
-
Cannot close the camera using EventInjector for touchscreen models
Hi all
In my application, I opened the app native camera help
Invoke.invokeApplication (Invoke.APP_TYPE_CAMERA, new CameraArguments());
I have a listener added to monitor changes made to the file system. As soon as a new image is taken and added to the file system, the camera is close to the EventInjector.
I'm running it on JRE 5 and 6, and it works very well for models with no touch screen on the Simulator. However, it will not work for 9550 and 9800. On simulators, it is frozen just after the photo is taken (and probably saved). I loaded my torch, the photo is taken, then he brought me to the camera application instead to close the camera and take back me to my request.
There should not be a problem with my code, as I moved to a programme of work. So what could be the problem?
Same assumptions or any help would be appreciated.
Thank you very much
Tina
Hey everybody,
I solved the problem... It's because you don't have the appropriate permissions for your application to INJECT key events... Use the following code to request the appropriate permissions and you'll be on your way to the injection of events!
ApplicationPermissionsManager permManager = ApplicationPermissionsManager.getInstance(); if(permManager.getPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION ) != ApplicationPermissions.VALUE_ALLOW || permManager.getPermission(ApplicationPermissions.PERMISSION_IDLE_TIMER ) != ApplicationPermissions.VALUE_ALLOW ) { //Request our permission to inject events ApplicationPermissions pAppPermission = new ApplicationPermissions(); pAppPermission.addPermission(ApplicationPermissions.PERMISSION_INPUT_SIMULATION); pAppPermission.addPermission(ApplicationPermissions.PERMISSION_IDLE_TIMER); if( permManager.invokePermissionsRequest(pAppPermission) == false) {
Please give Kudos if it solves your problem
-
Hello
We run 3xWLC controller with 800 AP using ISE 1.2 for authentication wireless 802. 1 x. I was looking in the config of the ISE and notice of 400 edge cheating only 2x2960s are configured with 802. 1 x (ISE RADIUS config) and SNMP and only 2 of the port is 2 ap tie with swtich remaining ports.and the 3XWLC in network devices.
I do not understand how an access point is to do this work (802.1 x) because it is location on different site and people are connecting to various different locations. ISE almost run/do 11 876 profiled ends.
version 12.2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$ fokm$ lesIWAaceFFs.SpNdJi7t.
!
Test-RADIUS username password 7 07233544471A1C5445415F
AAA new-model
Group AAA dot1x default authentication RADIUS
Group AAA authorization network default RADIUS
Group AAA authorization auth-proxy default RADIUS
start-stop radius group AAA accounting dot1x default
start-stop radius group AAA accounting system by default
!
!
!
!
AAA server RADIUS Dynamics-author
Client 10.178.5.152 server-key 7 151E1F040D392E
Client 10.178.5.153 server-key 7 060A1B29455D0C
!
AAA - the id of the joint session
switch 1 supply ws-c2960s-48 i/s-l
cooldown critical authentication 1000
!
!
IP dhcp snooping vlan 29,320,401
no ip dhcp snooping option information
IP dhcp snooping
no ip domain-lookup
analysis of IP device
!
logging of the EMP
!
Crypto pki trustpoint TP-self-signed-364377856
enrollment selfsigned
name of the object cn = IOS - Self - signed - certificate - 364377856
revocation checking no
rsakeypair TP-self-signed-364377856
!
!
TP-self-signed-364377856 crypto pki certificate chain
certificate self-signed 01
30820247 308201B 0 A0030201 02020101 300 D 0609 2A 864886 F70D0101 04050030
2 060355 04031325 494F532D 53656 C 66 2 AND 536967 6E65642D 43657274 30312E30
69666963 33363433 37373835 36301E17 393330 33303130 30303331 0D 6174652D
305A170D 2E302C06 1325494F 03550403 32303031 30313030 30303030 5A 303031
532D 5365 6C662D53 69676E65 642D 4365 72746966 69636174 652 3336 34333737
06092A 86 4886F70D 01010105 38353630 819F300D 00308189 02818100 0003818D
B09F8205 9DD44616 858B1F49 A27F94E4 9E9C3504 F56E18EB 6D1A1309 15C20A3D
31FCE168 5A8C610B 7F77E7FC D9AD3856 E4BABDD1 DFB28F54 6C24229D 97756ED4
975E2222 939CF878 48D7F894 618279CF 2F9C4AD5 4008AFBB 19733DDB 92BDF73E
B43E0071 C7DC51C6 B9A43C6A FF035C63 B53E26E2 C0522D40 3F850F0B 734DADED
02030100 01A 37130 03551 D 13 6F300F06 0101FF04 05300301 01FF301C 0603551D
11041530 13821150 5F494D2B 545F5374 61636B5F 322D312E 301F0603 551D 2304
18301680 1456F3D9 23759254 57BA0966 7C6C3A71 FFF07CE0 A2301D06 03551D0E
04160414 56F3D923 75925457 BA09667C 6C3A71FF F07CE0A2 2A 864886 300 D 0609
F70D0101 5B1CA52E B38AC231 E45F3AF6 12764661 04050003 81810062 819657B 5
F08D258E EAA2762F F90FBB7F F6E3AA8C 3EE98DB0 842E82E2 F88E60E0 80C1CF27
DE9D9AC7 04649AEA 51C49BD7 7BCE9C5A 67093FB5 09495971 926542 4 5A7C7022
8D9A8C2B 794D99B2 3B92B936 526216E0 79 D 80425 12B 33847 30F9A3F6 9CAC4D3C
7C96AA15 CC4CC1C0 5FAD3B
quit smoking
control-dot1x system-auth
dot1x critical eapol
!
pvst spanning-tree mode
spanning tree extend id-system
No vlan spanning tree 294-312,314-319,321-335,337-345,400,480,484-493,499,950
!
!
!
errdisable recovery cause Uni-directional
errdisable recovery cause bpduguard
errdisable recovery cause of security breach
errdisable recovery cause channel-misconfig (STP)
errdisable recovery cause pagp-flap
errdisable recovery cause dtp-flap
errdisable recovery cause link-flap
errdisable recovery cause FPS-config-incompatibility
errdisable recovery cause gbic-invalid
errdisable recovery cause psecure-violation
errdisable cause of port-mode-failure recovery
errdisable recovery cause dhcp-rate-limit
errdisable recovery cause pppoe-AI-rate-limit
errdisable recovery cause mac-limit
errdisable recovery cause vmps
errdisable recovery cause storm-control
errdisable recovery cause inline-power
errdisable recovery cause arp-inspection
errdisable recovery cause loopback
errdisable recovery cause small-frame
errdisable recovery cause psp
!
internal allocation policy of VLAN ascendant
!
!
interface GigabitEthernet1/0/10
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguardinterface GigabitEthernet1/0/16
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard
interface GigabitEthernet1/0/24
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard
!
interface GigabitEthernet1/0/33
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard
interface GigabitEthernet1/0/34
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard
!
interface GigabitEthernet1/0/44
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard!
interface GigabitEthernet1/0/46
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguardinterface GigabitEthernet1/0/48
switchport access vlan 320
switchport mode access
IP access-group ACL-LEAVE in
authentication event fail following action method
action of death server to authenticate the event permit
living action of the server reset the authentication event
multi-domain of host-mode authentication
open authentication
authentication order dot1x mab
authentication priority dot1x mab
Auto control of the port of authentication
periodic authentication
authentication violation replace
MAB
dot1x EAP authenticator
dot1x tx-time 10
spanning tree portfast
spanning tree enable bpduguard
!
interface GigabitEthernet1/0/49
Description link GH
switchport trunk allowed vlan 1,2,320,350,351,401
switchport mode trunk
MLS qos trust dscp
IP dhcp snooping trust
!interface GigabitEthernet1/0/52
Description link CORE1
switchport trunk allowed vlan 1,2,29,277,278,314,320,401
switchport mode trunk
MLS qos trust dscp
IP dhcp snooping trust
!
!
interface Vlan320
IP 10.178.61.5 255.255.255.128
no ip-cache cef route
no ip route cache
!
default IP gateway - 10.178.61.1
IP http server
IP http secure server
IP http secure-active-session-modules no
active session modules IP http no
!
!
Access IP extended ACL-AGENT-REDIRECT list
deny udp any any domain eq bootps
permit tcp any any eq www
permit any any eq 443 tcp
IP extended ACL-ALLOW access list
allow an ip
IP access-list extended by DEFAULT ACL
allow udp any eq bootpc any eq bootps
allow udp any any eq field
allow icmp a whole
allow any host 10.178.5.152 eq 8443 tcp
permit tcp any host 10.178.5.152 eq 8905
allow any host 10.178.5.152 eq 8905 udp
permit tcp any host 10.178.5.152 eq 8906
allow any host 10.178.5.152 eq 8906 udp
allow any host 10.178.5.152 eq 8909 tcp
allow any host 10.178.5.152 eq 8909 udp
allow any host 10.178.5.153 eq 8443 tcp
permit tcp any host 10.178.5.153 eq 8905
allow any host 10.178.5.153 eq 8905 udp
permit tcp any host 10.178.5.153 eq 8906
allow any host 10.178.5.153 eq 8906 udp
allow any host 10.178.5.153 eq 8909 tcp
allow any host 10.178.5.153 eq 8909 udp
refuse an entire ip
Access IP extended ACL-WEBAUTH-REDIRECT list
deny ip any host 10.178.5.152
deny ip any host 10.178.5.153
permit tcp any any eq www
permit any any eq 443 tcpradius of the IP source-interface Vlan320
exploitation forest esm config
logging trap alerts
logging Source ip id
connection interface-source Vlan320
record 192.168.6.31
host 10.178.5.150 record transport udp port 20514
host 10.178.5.151 record transport udp port 20514
access-list 10 permit 10.178.5.117
access-list 10 permit 10.178.61.100
Server SNMP engineID local 800000090300000A8AF5F181
SNMP - server RO W143L355 community
w143l355 RW SNMP-server community
SNMP-Server RO community lthpublic
SNMP-Server RO community lthise
Server SNMP trap-source Vlan320
Server SNMP informed source-interface Vlan320
Server enable SNMP traps snmp authentication linkdown, linkup cold start
SNMP-Server enable traps cluster
config SNMP-server enable traps
entity of traps activate SNMP Server
Server enable SNMP traps ipsla
Server enable SNMP traps syslog
Server enable SNMP traps vtp
SNMP Server enable traps mac-notification change move threshold
Server SNMP enable traps belonging to a vlan
SNMP-server host 10.178.5.152 version 2 c lthise mac-notification
SNMP-server host 10.178.5.153 version 2 c lthise mac-notification
!
RADIUS attribute 6 sur-pour-login-auth server
Server RADIUS attribute 8 include-in-access-req
RADIUS attribute 25-application access server include
dead-criteria 5 tent 3 times RADIUS server
test the server RADIUS host 10.178.5.152 auth-port 1812 acct-port 1813 username test-RADIUS 7 key 03084F030F1C24
test the server RADIUS host 10.178.5.153 auth-port 1812 acct-port 1813 username test-RADIUS 7 key 141B060305172F
RADIUS vsa server send accounting
RADIUS vsa server send authenticationany help would be really appreciated.
I'm not sure that completely understand the question; But if LSE is only political wireless, then none of the wired switches need any configuration of ISE.
Access points tunnel all wireless traffic to the WLC on CAPWAP (unless you use FlexConnect). This is the configuration 802. 1 x on the WLC that implements policies defined in ISE.
Switches wired never need to act as an access network (n) device and so do not need to be defined in ISE unless or until you want to apply policies of ISE for wired devices...
-
How to launch an application in another application without using the framework of the call
Suppose that if I develop an application, and I need to launch another application (provided I have the single app id) within this application, what is best to do.
I plan to use threads and run another app in a thread. But how do I run the app (is there a call specific methodto)? What other information do I need, except for the app id?
A quick search on this topic would have shown you that unless you are a trusted partner of BlackBerry you have not needed access to the api at this...
http://supportforums.BlackBerry.com/T5/native-development/sys-inject-events/m-p/2575865/highlight/tr...
http://supportforums.BlackBerry.com/T5/native-development/automatic-input-control-sys-inject-events/...Even the sticky above would have helped...
-
How to exit the camera application properly
I start the camera application by doing this
Invoke.invokeApplication (Invoke.APP_TYPE_CAMERA, new CameraArguments());
The camera app starts. I take a picture.
I am on a 9000 "BOLD".
You use the camera you will find that you can not close the app until you get rid of the image sets that you have just taken.
For example
take photoPicture is a static view of the screen
If you press close (close menu) it does ' t go away.
If you press the ESC key, then press close he disappears.
now in my application, I need to simulate this but I can't seem to get out
I want to launch the application.
Press the trackball to take the picture
Save the photo.
Then exit.
I inject
EventInjector.invokeEvent (new EventInjector.KeyEvent (EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 10));
EventInjector.invokeEvent (new EventInjector.KeyEvent (EventInjector.KeyEvent.KEY_UP, Characters.ESCAPE, 30));
And it closes ok
BUT... when I opened the camera (for the second time) the image is on the screen, the last shot.
So, it didn't really come out. The user must press the ESC key stupid and then take another picture.
Any ideas?
Thank you
You test this in the simulator of BlackBerry or on a real BlackBerry "BOLD"? What version of BlackBerry device software you are using (beneath Options, about)? Is that you inject events for all the actions in your list or just the ESC key to exit?
-
Permissions of the application (injection hits)
I'm developing a phone dialer application using firmware 4.5 on a BB curve. However the EventInjector fails with an exception of nowhere. I have read that I need to goto Options-> Advanced-> applications, find my app and expand "Interactions" - injection type change "'' to 'Allow'."
However my request does not appear in the list of applications! So, how can I activate this permission?
Also is it possible to programmatically activate this? I don't want our customers to have to get dirty with the permissions of the application manually so that it can work.
Thanks in advance.
Look at this package:
'net.rim.device.api.applicationcontrol '.
-
Key events of injection, but couldn't find what corresponds to the BB button?
I'm trying to inject a key event to simulate the user after pressing the Menu button - IE the one with the logo of BB, which is triggered by pressing Insert on the Simulator. I tried to use Keypad.KEY_APPLICATION (0x15), Keypad.KEY_MIDDLE (0 x 13), Keypad.KEY_MENU (0 x 1002) and there is no result to inject these keys at all. All the other keys I try to inject seems to work very well. There is another constant, should I use?
Using the JDE 4.3.0.1r version and the 8120 Simulator, if that makes a difference.
Nevermind, I got it works using a KeyCodeEvent instead of a KeyEvent...
-
Sailing with the Injection of the event guests
I try to use the event at some point injection back a prompt for the user. Now, however, just trying to get so that when the user clicks on my application of simple test on the home screen, the cursor goes up a line. I use the injector of the event and I can't seem to make it work. I have this simple method:
private void pressKey(char key) { EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN, key, KeypadListener.STATUS_NOT_FROM_KEYPAD)); EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_UP, key, KeypadListener.STATUS_NOT_FROM_KEYPAD)); }
When I call this method with the key "Characters.ESCAPE" it works and have the back screen of a user. However, when I call the method with the key "Characters.CONTROL_UP" it does not seem to do anything.
Inject an EventInjector.NavigationEvent instead of an EventInjector.KeyCodeEvent if you want to move up an icon on the home screen.
-
Injection of the event to answer call waiting
Hello
I am trying to answer a phone call using injection of the event, I saw a few discussions about this, and it seems that the method I use is correct is a sense. I can answer a call on callIncoming, but not on callWaiting. I can answer both using the Simulator, but the device does not respond on callWaiting.
This is my method:
In callIncoming/callWaiting, I create a timer with a delay of 100 ms, which calls a function that sends KEY_SEND up and down events. Simple, but it only accepts a standard appeal, not an appeal pending.
Can someone advise?
Concerning
Lionel
Figured this out, increasing the timer time solves the problem.
-
Permissions to export the user events
Hi all, what are the permissiones of vcenter necessary for a user to export the vcenter events?
Im running this script:
Connect-VIServer xxxxxxx xxxxxxxx of username-password XXXXXX$prevDay = (get-Date-time Minute 0 - 0 - 0 second). AddDays(-1)$filename = "C:\log5" + $prevDay.ToString ("MMddyyy") + ".csv".Get-VIEvent-Start $prevDay - finish $prevDay.AddDays (1) - MaxSamples ([int]: MaxValue) |Select @{N = 'Description'; E={$_. FullFormattedMessage}},@{N = "Date Time"; E={$_. Createduserid}},@{N = "Target"; E={$_. @entity.name}},@{N = 'User'; E={$_. User name}} |Export-Csv $filename - NoTypeInformation - UseCultureThank you!
Hello-
I do not think that you assign a permission named, 'none '. Reference on the APIs listed above, I take this to mean that there is no additional privileges/permissions required for querying of events.
Add'l info (added to this response to 23:10): I tested with a VIAccount who had assigned read-only role, and he was able to retrieve events. So, it would seem that as long as the account can connect to the host vCenter, it can extract events without any required additional right. You see a different behavior?
-
Injection of event using ordinals to menu point
Hello
Is it possible to click on a menu item, if I is ordinal? that is, instead of scrolling down and clicking on it?
see you soon,
the user can make the it? None? Why 'simulation of the user' should be better than the real deal?
If you have access to the menu itself, you can run using their method of execution.
-
When I change the docs in docx there are always a few items off the power. I have the basic service Adobe - is there a service where I can actually work in pdf format? What is an upgrade?
No service for what you describe.
Rather buy you, install and use Acrobat.
However, the PDF forms can be processed (filled) with Adobe Reader XI.
(Note - PDF FORMS - those made with Acrobat that are "acroforms" or those made with Adobe LiveCycle Designer - who make up a large number of government stocks of forms (these are the "xfa" forms - xml encapsulated in PDF format - kind of "pig in a blanket").)
On any platform apple you must always keep the Apple default viewer PDF (preview) away from all the PDF files. This application is for "hostile PDF" PDF Forms.
Be well...
-
Setting the permissions of the application
I'm developing an application which requires capture and screen injection permissions to set.
I use the handler permissions application for these values are defined as allowed. However, whenever I run my application (on the devices of 4.6 and 4.7) I always get the dialog box "application attempts to modify its permissions. How can I get permissions to 'remember' constantly of my application?
I'm not entirely clear how default settings are the settings that I am defining - i.e. If the default settings do not allow any screenshots or an event injection can we deduce that permissions will not be scheduled to allow permanently?
Also is it possible to predefine the permission settings by default for an application that I'm loading on a specific device via a .alx files or javaloader
"When I build I get separate cod JADs and jars for every module."-that's exactly what you expect. If you load these separately, you will get three modules and three applications.
"How my three modules should be packed (that is, as a simple JAD)" - it is relatively easy to package individual modules in a single jad. If you look at chapter "Distributing BlackBerry Java Applications via the wireless network" in the developer's Guide it will tell you what you need to do to create a JAD handset. Basically you just need to copy one of the jads and add additional lines for the other two modules.
"Is it really possible for me to set persistent application permissions in a module that is a dependency of my application" do not think that "Authorization Manager" on the BlackBerry care about what is dependent on what it - it seems to give permissions for an application. If you package your cod upward if the BlackBerry sees the as only one application, then I think everyone will be happy.
-
Event Swipe works in the Simulator, but not on the device
I'm using panels on my 9900 and I have 4 panels that the user will slide back and forth similar functioning BB app world, changing the summary of comments on signs etc..
My expection who was up and down for scanning of touch screen functions and the touchpad has the same function by default, that is to the left and right slide on the screen should also be identical to forehand and left on the block to tack. But it does nothing for the panels when you use the trackpad.
So I replace NavigationMovement and and can see the touchscreen and the track pad to generate a NavigationMovement event with +/-x according to the direction slide. So I'm first puzzled why hit swiping the trackpad on the left and right triggers not the same behavior by hitting swiping left and right on the touch screen.
Accept that as a limitation of the API, I added my own features to NavigationMovement to inject a key event when user left or right on the trackpad moves. As follows:
EventInjector.TouchEvent [] moveEvents = new EventInjector.TouchEvent [7];
moveEvents [0] = new EventInjector.TouchEvent (TouchEvent.MOVE, 420, -1, -1, 60-1);
moveEvents [1] = new EventInjector.TouchEvent (TouchEvent.MOVE, 360, 60,-1, -1, -1);
moveEvents [2] = new EventInjector.TouchEvent (TouchEvent.MOVE, 300, 60,-1, -1, -1);
moveEvents [3] = new EventInjector.TouchEvent (TouchEvent.MOVE, 240, 60,-1, -1, -1);
moveEvents [4] = new EventInjector.TouchEvent (TouchEvent.MOVE, 180, 60,-1, -1, -1);
moveEvents [5] = new EventInjector.TouchEvent (TouchEvent.MOVE, 120, 60,-1, -1, -1);
moveEvents [6] = new EventInjector.TouchEvent (TouchEvent.MOVE, 60, 60,-1, -1, -1);
EventInjector.TouchEvent.injectSwipeGesture (480, 60, moveEvents);It works perfectly in the Simulator, but on the device, there is no movement at all. So I thought that maybe the touchpad on the Simulator is more sensitive than on the real device, so I added a menu item to perform the injection above. Again, this works perfectly on the Simulator, but nothing on the device.
Has anyone tried this brain left and just before the injection? Up and down the injection works perfectly on the device.
Have you enabled event injection in request permission settings for your application? It is disabled by default. You can do so by going to Options-> Application, select your application and click on change permissions. You can also request these permissions programmatically using the class ApplicationPermission.
Maybe you are looking for
-
Problems with content from Facebook (works in IE)
This morning, I am unable to load Facebook. The log in page appears. After I connect my mini photo to page title and notifications, etc., all work - but no sidebar, no content. I have cross checked and it works fine in IE Thoughts anyone?
-
I have Windows 7. My old version of windows has always shown a lock when a Web site has been encrypted and secure. I don't see that now. How will I know that it is safe to give personal information such as credit card numbers, on a web page?
-
I would like to know why the lone daily challenge is always won by someone who solves it generally lower then thirty seconds and around 100 shots or less? I noticed that on average it is resolved at a pace a little more than 3 moves a second. It is s
-
Just downloaded el Capitan and I can not get my mail!
I just downloaded el capitan on my mac book and may no longer have my mail. Also, I don't understand what happened to my slide bar for internet and mail. Is it possible to get rid of this? I can not us my quicken or my word more. This is why I ha
-
Satellite Pro 440 CDT does not supply power to the top
Hi, I have an old 440 CDT which does not supply power to the top. Someone at - it ideas?AC is connected, the power led is lit, green. Battery is dead (as in buried). When I press the power button, the following occurs:-The led is green-Num lock (the