Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor sadysta's Avatar
    Join Date
    Apr 2008
    Posts
    55
    Hi,

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

    Regards,

    --
    S.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Check KAccessoryModeChanged API from the plugin packs (http://wiki.forum.nokia.com/index.php/SDK_API_Plug-in)

  3. #3
    Regular Contributor sadysta's Avatar
    Join Date
    Apr 2008
    Posts
    55
    I need to check it on demand, not just get notified about _changes_.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 sadysta's Avatar
    Join Date
    Apr 2008
    Posts
    55
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved