×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    2

    How to turn off bluetooth in S40

    Hello.

    Could you please tell me how to turn off bluetooth in s40?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: How to turn off bluetooth in S40

    From a Java MIDlet? If so, I don't think it can be done (no Java API to do it).

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    2

    Re: How to turn off bluetooth in S40

    Yes. I have an application that sends files over bluetooth. When I exit the application I want to turn off bluetooth. I noticed there is a method in LocalDevice class, isPowerOn()...but nothing to turn it off

  4. #4
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to turn off bluetooth in S40

    Hi, laurica

    In fact direct it is not possible to turn on and off the Bluetooth.

    You can just initialize your Bluetooth connection, if Bluetooth exception is thrown then may be your Bluetooth will be disabled.
    Best regards,
    RaHuL

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: How to turn off bluetooth in S40

    Quote Originally Posted by laurica87 View Post
    Hello.

    Could you please tell me how to turn off bluetooth in s40?
    AFAIK, we don't have any direct API to switch off Bluetooth, but you can very well make it non discoverable by using:

    javax.bluetooth.LocalDevice.setDiscoverable(DiscoveryAgent.NOT_DISCOVERABLE);
    Thanks,
    Ekta

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2003
    Posts
    4,105

    Re: How to turn off bluetooth in S40

    Why do you worry? In Series 40, all this is handled automatically: If your codes needs Bluetooth, the device asks. If your MIDlet finishes and Bluetooth was of before, the device asks. It is perfect in Series 40 land.

Similar Threads

  1. Java turn backlight off on S40
    By sirisak_b2 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-06-16, 05:01
  2. Turn on Bluetooth
    By RamiX in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-01-09, 13:31
  3. Turn Bluetooth Off
    By vinayashrestha in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-12-10, 03:29
  4. turn on bluetooth
    By 13nesta in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-05-26, 13:19

Posting Permissions

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