Friday, July 31, 2009

Close Application BlackBerry By injecting Escape Key

import net.rim.device.api.system.Characters;
import net.rim.device.api.system.EventInjector;

private void  closeCamera()
 {
EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN,Characters.ESCAPE, 50);
inject.post();
inject.post();
}
Post a Comment