IT Community - Software Programming, Web Development and Technical Support

Eventinjector in blackberry

This is a discussion on Eventinjector in blackberry within the Blackberry forums, part of the Mobile Software Development category; hi there, event injector Invokes certain events by applying into application without actually pressing the keypad.. i like to implement ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > Blackberry

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-17-2007, 09:56 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Eventinjector in blackberry

hi there,
event injector Invokes certain events by applying into application without actually pressing the keypad.. i like to implement eventinjector how come its possible????
__________________
cheers
Aman

Last edited by amansundar : 12-20-2007 at 12:49 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-19-2007, 09:19 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Eventinjector in blackberry

hi aman,
using navigationevent,trackwheelevents and keycodeevents you can do it....following code help you:

Code:
  EventInjector.invokeEvent( new EventInjector.TrackwheelEvent( EventInjector.TrackwheelEvent.THUMB_ROLL_UP, 1, 1 ));
        EventInjector.invokeEvent( new EventInjector.TrackwheelEvent( EventInjector.TrackwheelEvent.THUMB_ROLL_DOWN, 1, 1 ));
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!

Last edited by S.Vinothkumar : 12-20-2007 at 12:57 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-20-2007, 02:26 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

hi vinoth,
i have already gone through above code in sample jde programs....
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-26-2007, 12:12 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Eventinjector in blackberry

there are three subclasses in event injector which are trackwheel events,keypadevents and navigation events using this you can invoke many events in your application...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-28-2008, 09:38 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

hi vinoth
i tried implementing trackwheelinjector in my app but there is no sign of invoking any operation in my app...what am lacking am sure i didnt make any mistake in coding..am screwed up..fix me buddy....
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-28-2008, 09:48 PM
saloni srivatsava saloni srivatsava is offline
D-Web Trainee
 
Join Date: Sep 2007
Posts: 16
saloni srivatsava is on a distinguished road
Default Re: Eventinjector in blackberry

well amansundar!
lot of issue need to be considered apart from coding...check out permission settings.. try this homescreen->option->advanced option->application->core application->modules->your application->edit permission->interaction->keystroke injection->allow
this will help think so....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-06-2008, 08:43 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

thank you saloni it works..
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 09:22 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

Hi,
am surprised why when I inject ALT key event to my application which receives but no change in ALT status? keyStatus() to be called whenever the ALT status changes, but it does not.
This must be an error, or perhaps a misunderstand on my part?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 03:00 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Eventinjector in blackberry

am too realizing this problem .i think there no point of giving alt status in event injector .RIM should make some clear notice of this....
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-11-2008, 08:16 PM
saloni srivatsava saloni srivatsava is offline
D-Web Trainee
 
Join Date: Sep 2007
Posts: 16
saloni srivatsava is on a distinguished road
Default Re: Eventinjector in blackberry

well guys, key injection is a bit of hack, i would like to use it in commercial software.do this injector class require signing?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 03-25-2008, 09:04 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

ofcourse you need to sign,following link suggest how to get sign for ur application

BlackBerry - BlackBerry | Wireless Handheld Devices, Software & Services from Research In Motion (RIM)
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-11-2008, 08:57 PM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Default Re: Eventinjector in blackberry

Hai geeks,

does anyone know how to assign keyinjection for "press" the menu button? I haven't found something usable but not sure to had overseen something. KeyEvent and KeyCodeEvent are both using char values but I don't see a char for the menu button.

Code:
EventInjector.invokeEvent(newEventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN,Keypad.map(Keypad.KEY_MENU),0,100));
EventInjector.invokeEvent(newEventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_UP,Keypad.map(Keypad.KEY_MENU),0,100));
above code never works
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-14-2008, 12:36 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 322
amansundar is on a distinguished road
Default Re: Eventinjector in blackberry

folk
check it out with below code it works..

Code:
(char) Keypad.KEY_MENU

.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 09-29-2008, 04:59 AM
levelup levelup is offline
D-Web Trainee
 
Join Date: Sep 2008
Posts: 18
levelup is on a distinguished road
Default Re: Eventinjector in blackberry

Thanks for all your post, I have the same problem and now it has been sorted
__________________
business card printing
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
blackberry in netbeans amansundar Blackberry 30 04-15-2008 09:58 PM
j2me programing with BlackBerry phones -useful tips jeyaprakash.c Blackberry 27 04-02-2008 04:25 AM
j2me application in Blackberry amansundar Mobile Software Development 2 12-20-2007 01:22 AM
What Kind of Blackberry software User prefer? mobilegeek Blackberry 0 12-02-2007 09:19 PM


All times are GMT -7. The time now is 10:32 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0