as I am currently developing a J2ME midlet using bluetooth running on Series 40 platform cell phones like the Nokia 6600 fold, I'd like to know how to detect if bluetooth is active/enabled.
Or is it even possible to enable and disable bluetooth from inside a J2ME midlet?
I want my midlet to only use bluetooth if it was enabled before and to remind the user to switch off bluetooth afterwards to save energy.
Currently, if bluetooth isn't enabled, any bluetooth action leads to a user dialog asking the user if he/she wants to enable bluetooth. I'd like to know before that dialog, if bluetooth is enabled and I'd like to know afterwards to be able to remind the user to switch it off again.
Thanks in advance,