05-17-2009 02:31 PM
I'm creating a Bluetooth application using the (Java JSR-82) with the objective of constantly send/receive data with another Bluetooth device. Currently with my application if the BlackBerry is left unattended the screen goes black and I assume goes into sleep mode. The problem with this is that it does not allow me to send/receive Bluetooth data to my other device anymore.
Is there a way to prevent the BlackBerry from going into sleep mode? I've read elsewhere that I could use the BB API to keep the screen on, but that requires a signed application. Does anyone have any solutions for me? Thanks!
05-17-2009 03:20 PM
I did not hear about such API to prevent going to sleep mode.
But I think there is a workaround.
Try to send keyboard events to the device via EventInjector class.
Your application will send these events and consume them.
I think it should work, like a user clicks on keyboard from time to time.
what do you think ?
try this.
05-17-2009 04:07 PM
05-17-2009 04:09 PM - edited 05-17-2009 04:11 PM
Signing keys cost just 20 USD for unlimited signatures for unlimited qty of applications.
In case you intend to make an application that is a bit more complex than helloworld you will need to use classes which use signed API and will need to sign the cod file.
05-17-2009 04:10 PM
05-17-2009 04:23 PM
05-17-2009 04:48 PM
Thanks for your input. I'll leave this thread open if anyone can come up with any other solutions.
BTW I submitted the form for the code signing key.
05-17-2009 04:56 PM
RIM takes several days to consider your form for signing keys.
After that you will receive email with signing keys and instruction how to install them.
Keep the received files in secure place.
05-17-2009 04:58 PM
05-17-2009 05:01 PM
Never checked this.
Try to check the class: net.rim.device.api.system.Backlight
there are methods to enable/disable device backlight.
try to turn off backlight and send a keyboard event.