×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    55

    Question Detect if earpiece is connected.

    Hi,

    How do I detect if earpiece is connected or not??

    Regards,

    --
    S.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Detect if earpiece is connected.

    Check KAccessoryModeChanged API from the plugin packs (http://wiki.forum.nokia.com/index.php/SDK_API_Plug-in)

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    55

    Re: Detect if earpiece is connected.

    I need to check it on demand, not just get notified about _changes_.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Detect if earpiece is connected.

    Checking an API is not the same as reading some fragments about it in the Wiki. Since I also had some doubts yesterday, I have checked the API itself, and I am pretty convinced about that you should also do that.

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    55

    Re: Detect if earpiece is connected.

    I've read through the API and actually I didn't even find KAccessoryModeChanged. That's because I'm using headers present in epoc32/include/oem in my product environment. My company is an S60 licensee and I suppose if there's an older version of dossvrservices.h than in Nokia plugin release then probably this API is just not supported. Fortunately I've found an internal API dedicated solely to checking status of the headset. I'm grateful for the suggestion to read through the API itself though because it got me started browsing the whole source tree. Thanks wizard, you're the best.

Similar Threads

  1. Unable to detect devices
    By yeezhihao in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2008-03-08, 14:21
  2. Unable to detect devices
    By yeezhihao in forum Bluetooth Technology
    Replies: 2
    Last Post: 2008-02-28, 11:00
  3. play sound in the loudspeaker when a earpiece is connected
    By alexpr in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2007-10-04, 16:55
  4. How to detect phone connected to ear speaker
    By binli120 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2007-08-06, 17:39
  5. how to detect whether headset is connected or not
    By kamaljaiswal in forum Symbian
    Replies: 0
    Last Post: 2007-06-29, 13: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
  •  
×