What part of the Android software stack handles commands through the headphone jack? (e.g. answering calls w/ a headset)

Where does Android deal with commands sent through headsets connected through a headphone jack? Specifically, for play/pause and answering calls? Is this buried in the OS or can it be accessed through an API?

  • how to set width of buttons in android to cover screen width?
  • Android: How can I make text views float to the left?
  • Android development with Netbeans IDE
  • Android List view refresh
  • Progressive Image Rendering, loading image pixel by pixel & updating imageview in imageLoader
  • difference between @id and @android:id
  • Related posts:

    How to get a Color from hexadecimal Color String
    Can't handle both click and touch events simultaneously
    XMPP (Openfire) Push Notifications Android
    Android ndk-build iostream: No such file or directory
    Extracting Android .apk and reading contents of XML file in res/layout
    Android: How to get a custom view to redraw partially?
  • How to check if all AsyncTasks finished?
  • Differences between Android Palette colors
  • Retrofit throwing IllegalArgumentException exception for asynchronous FormUrlEncoded DELETE call
  • Why aren't the Android SDK Jars in any Maven Repository?
  • Load Contact Image Into Bitmap
  • Drag and Drop RecyclerView Which is Populated from SQLiteDatabase
  • One Solution collect form web for “What part of the Android software stack handles commands through the headphone jack? (e.g. answering calls w/ a headset)”

    this isn’t really related to any of the android features or capabilities, it’s just hardware related, a 3.5 doesn’t have a limited and clearly defined number of connection, you can have a jack that is mono, stereo, with 3 channels or even other configurations.

    as far as I know this kind of hardware ( the jack slot ) it’s not even named in the list of requirements for getting the Google’s commercial version of Android, so you can’t even picture a clear set of devices based on the android version that you are targeting.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.