4 Android app that shows a notification icon in the status bar when
5 headphones are plugged into the phone.
7 Shows a different icon when a headset is attached.
8 Both 3.5mm audio jack devices and USB headphones/headsets are supported.
10 The app aims to be a tiny as possible.
18 After installation_, you have to start the application `at least once`__.
19 Then it will be running as a background service that shows the headset
20 status icon whenever the headphones are plugged in.
22 You can close the app, and the status icon will still work - even after
25 __ http://stackoverflow.com/a/8535062/282601
31 I wrote the headphone indicator app because I was immensely unsatisfied
32 with apps like `susomena's Headphones Indicator`__ which are over
33 2 MiB in size, but 99% of their code is only related to advertisement.
35 My task was to show that you can make it much, much better.
37 __ https://play.google.com/store/apps/details?id=com.susomena.headphonesindicator
43 You have several installation options:
45 #. Install from `F-Droid`__
46 #. Pay on `Google Play`__
47 #. Download ``.apk`` from `Github`__
48 #. `Build it yourself <#building>`_
50 __ https://f-droid.org/repository/browse/?fdid=de.cweiske.headphoneindicator
51 __ https://play.google.com/store/apps/details?id=de.cweiske.headphoneindicator
52 __ https://github.com/cweiske/headphoneindicator/releases
65 Modify the version in ``AndroidManifest.xml```.
67 Disable resource file optimization in ``gradle.properties``:
69 android.enableResourceOptimizations=false
71 Build it normally, then sign the generated package file::
73 $ gradle assembleRelease
75 To sign the release with your key, put the path to the signing configuration
76 file into ``gradle.properties``::
78 signingconfigfile=/path/to/signing-config.gradle
80 The signing configuration file should look like shown in
81 `Handling signing configs with Gradle`__
83 __ https://www.timroes.de/2013/09/22/handling-signing-configs-with-gradle/
88 * gradle 8.5.2 (earlier will probably work, too)
89 * Android SDK 34 (compiles for SDK 19 - Android 4.4)
94 The code repository contains the meta data needed for the Google Play store:
95 Text, icons, screenshots.
97 They follow the `Triple-T gradle publisher`__, which are also
98 `ingested by F-Droid`__.
100 The meta data directory is ``src/main/play/`` - with ``main`` even though
101 this app has no flavors, but it's `required by f-droid`__.
103 __ https://github.com/Triple-T/gradle-play-publisher
104 __ https://f-droid.org/en/docs/FAQ_-_App_Developers/#how-do-i-change-the-description-and-add-meta-information-like-screenshots
105 __ https://gitlab.com/fdroid/fdroiddata/-/issues/3447
108 =========================
109 About headphone indicator
110 =========================
114 Headphone indicators's source code is available from
115 http://git.cweiske.de/headphoneindicator.git
116 or the `mirror on github`__.
118 __ https://github.com/cweiske/headphoneindicator
123 Headphone indicator is licensed under the `GPL v3 or later`__.
125 __ http://www.gnu.org/licenses/gpl.html
130 Headphone indicator was written by `Christian Weiske`__.
132 __ http://cweiske.de/