Quote:
Originally Posted by MobileDeveloper
Can any one please say how I can create an app that
As soon as a number is dialled will check the number and if its a particular number will automatically disconnect the call
|
hi,
u can use this code for disconnecting the call..
EventInjector.KeyCodeEvent pressEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN,( char)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM _KEYPAD,100);
EventInjector.KeyCodeEvent releaseEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP,(ch ar)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM_K EYPAD,100);
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);