Giter VIP home page Giter VIP logo

headphoneindicator's Introduction

Headphone indicator

Android app that shows a notification icon in the status bar when headphones are plugged into the phone.

The app aims to be a tiny as possible.

Runs on Android 4.4+.

Usage

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.

Why was it written?

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.

Installation

You have several installation options:

  1. Install from F-Droid
  2. Pay on Google Play
  3. Download .apk from Github
  4. Build it yourself

Building

$ gradle build

Note that AndroidStudio 1.5.1 does not detect the gradle configuration correctly and produces .apk files much larger than necessary, with duplicated files.

gradle on command line does it correctly, though.

Releasing

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

Dependencies

  • gradle 2.12 (earlier will probably work, too)
  • Android SDK 19

About headphone indicator

Source code

Headphone indicators's source code is available from http://git.cweiske.de/headphoneindicator.git or the mirror on github.

License

Headphone indicator is licensed under the GPL v3 or later.

Author

Headphone indicator was written by Christian Weiske.

headphoneindicator's People

Contributors

cweiske avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

headphoneindicator's Issues

Notification issue

The headphone indicator icon will be removed when I clear all notifications. I don't think this program should appear as a notification because they are often cleared when they are multiplied.

Show inline microphone

It would be useful if the indicator also detected if an inline microphone is included, and presented that information cleanly.

Headset indicator

It would be very useful to also detect the microphone for microphone blocker tests

Perhaps you want to rename the program to headsetindicator if you implement this.

Display icon on the right

I think it would be more natural to have the icon on the right without a notification.

Does this require root? (As an optional feature I would still appreciate it)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.