4 Android app that shows a notification icon in the status bar when
5 headphones are plugged into the phone.
7 The app aims to be a tiny as possible.
15 After installation_, you have to start the application `at least once`__.
16 Then it will be running as a background service that shows the headset
17 status icon whenever the headphones are plugged in.
19 You can close the app, and the status icon will still work - even after
22 __ http://stackoverflow.com/a/8535062/282601
28 I wrote the headphone indicator app because I was immensely unsatisfied
29 with apps like `susomena's Headphones Indicator`__ which are over
30 2 MiB in size, but 99% of their code is only related to advertisement.
32 My task was to show that you can make it much, much better.
34 __ https://play.google.com/store/apps/details?id=com.susomena.headphonesindicator
40 You have several installation options:
42 #. Install from `F-Droid`__
43 #. Pay on `Google Play`__
44 #. Download ``.apk`` from `Github`__
45 #. `Build it yourself <#building>`_
47 __ https://f-droid.org/repository/browse/?fdid=de.cweiske.headphoneindicator
48 __ https://play.google.com/store/apps/details?id=de.cweiske.headphoneindicator
49 __ https://github.com/cweiske/headphoneindicator/releases
59 Note that AndroidStudio 1.5.1 does not detect the gradle configuration correctly
60 and produces ``.apk`` files much larger than necessary, with duplicated files.
62 ``gradle`` on command line does it correctly, though.
67 Build it normally, then sign the generated package file::
69 $ gradle assembleRelease
71 To sign the release with your key, put the path to the signing configuration
72 file into ``gradle.properties``::
74 signingconfigfile=/path/to/signing-config.gradle
76 The signing configuration file should look like shown in
77 `Handling signing configs with Gradle`__
79 __ https://www.timroes.de/2013/09/22/handling-signing-configs-with-gradle/
84 * gradle 2.12 (earlier will probably work, too)
88 =========================
89 About headphone indicator
90 =========================
94 Headphone indicators's source code is available from
95 http://git.cweiske.de/headphoneindicator.git
96 or the `mirror on github`__.
98 __ https://github.com/cweiske/headphoneindicator
103 Headphone indicator is licensed under the `GPL v3 or later`__.
105 __ http://www.gnu.org/licenses/gpl.html
110 Headphone indicator was written by `Christian Weiske`__.
112 __ http://cweiske.de/