Headphone indicator
Android app that shows a notification icon in the status bar when headphones are plugged into the phone.
Shows a different icon when a headset is attached. Both 3.5mm audio jack devices and USB headphones/headsets are supported.
The app aims to be a tiny as possible.
Runs on Android 4.4+.
After installation_, you have to start the application at least once
__.
Then it will be running as a background service that shows the headset
status icon whenever the headphones are plugged in.
You can close the app, and the status icon will still work - even after rebooting your phone.
__ http://stackoverflow.com/a/8535062/282601
I wrote the headphone indicator app because I was immensely unsatisfied
with apps like susomena's Headphones Indicator
__ which are over
2 MiB in size, but 99% of their code is only related to advertisement.
My task was to show that you can make it much, much better.
__ https://play.google.com/store/apps/details?id=com.susomena.headphonesindicator
You have several installation options:
F-Droid
__Google Play
__.apk
from Github
__Build it yourself <#building>
_https://f-droid.org/repository/browse/?fdid=de.cweiske.headphoneindicator https://play.google.com/store/apps/details?id=de.cweiske.headphoneindicator __ https://github.com/cweiske/headphoneindicator/releases
::
$ ./gradlew build
Modify the version in ``AndroidManifest.xml```.
Disable resource file optimization in gradle.properties
:
android.enableResourceOptimizations=false
Build it normally, then sign the generated package file::
$ gradle assembleRelease
To sign the release with your key, put the path to the signing configuration
file into gradle.properties
::
signingconfigfile=/path/to/signing-config.gradle
The signing configuration file should look like shown in
Handling signing configs with Gradle
__
__ https://www.timroes.de/2013/09/22/handling-signing-configs-with-gradle/
The code repository contains the meta data needed for the Google Play store: Text, icons, screenshots.
They follow the Triple-T gradle publisher
, which are also
ingested by F-Droid
.
The meta data directory is src/play/
because this app has no flavors.
https://github.com/Triple-T/gradle-play-publisher https://f-droid.org/en/docs/FAQ_-_App_Developers/#how-do-i-change-the-description-and-add-meta-information-like-screenshots
Headphone indicators's source code is available from
http://git.cweiske.de/headphoneindicator.git
or the mirror on github
__.
__ https://github.com/cweiske/headphoneindicator
Headphone indicator is licensed under the GPL v3 or later
__.
__ http://www.gnu.org/licenses/gpl.html
Headphone indicator was written by Christian Weiske
__.