Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2013

    How to handle BluetoothStateException

    My J2ME (Eclipse) app requires bt connection in order to run.. When app starts it checks for bt and in most nokia phones, if bt is off it asks to turn it on, but on N95 it throws BluetoothStateException. My question is - is there a way to handle this exception? Cause usual:

         discoveryAgent = LocalDevice.getLocalDevice().getDiscoveryAgent();
    }catch(BluetoothStateException e) { CustomFunctionToShowErrorWindow();}
    is not working....

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    Mar 2003

    Re: How to handle BluetoothStateException

    Not aware of any solution, and I tried a lot.
    I guess, turning on Bluetooth (or causing the user to be asked) was introduced very late on the Symbian platform.
    If you find something, please, update this thread.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2013

    Re: How to handle BluetoothStateException

    How about just asking the user to turn on the BT and retry the discover flow? (if an exception occour that is)

Similar Threads

  1. Error: BluetoothStateException:Busy
    By mobile_tekki in forum Bluetooth Technology
    Replies: 4
    Last Post: 2007-08-27, 11:41
  2. Replies: 0
    Last Post: 2006-12-26, 12:35
  3. BluetoothStateException
    By histu in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 8
    Last Post: 2006-07-12, 11:26
  4. Unable to load Class BluetoothStateException
    By farasnf@yahoo.com in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-10-28, 08:35
  5. 6230 and device discovery - BluetoothStateException
    By Robert111 in forum Bluetooth Technology
    Replies: 6
    Last Post: 2004-08-02, 12:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts