Skip to main content

Android: Get a vibration when a call is answered

 I used to own an old Huawei phone that had this awesome feature that gives a small vibration when a call gets answered from the receiver. This was such an awesome feature I came to like coz:

  1. I don't need to keep my phone on the ear listening to the ringing.
  2. No need to keep staring at the screen until I see the call timer starts.
  3. I can keep working on whatever I was in the middle of until the person actually answers.
However, I couldn't find this feature in other Android phones that I used after that. I was using Samsung, and Pixel. I've been using Pixel for many years now and I wanted this feature in Pixel phones all these years. So, I decided to build it on my own. Hence the app was built CallVibe Guard.


I tested this on Google Pixel 10 pro and working great. I've published the code in GitHub as an open source project so anybody can pitch in for testing in different Android phones and report bugs, help make it stable for others to use as well.

Basically this is a simple feature that does the above vibration notification. Also it requires to mute the call during that vibration so it won't be a noise to the receiver. 
The usage instructions and installation help is found on the Readme on the repo itself. It requires a bunch of restricted permissions coz it needs to tap into telco calls access as well. I've added some instructions about how to enable this on Readme. Haven't published on the App Store yet, but surely one day I will.



Cheers!

Comments

Popular posts from this blog

How to set terminal title in Ubuntu 18.04 LTS

In older Ubuntu versions, you could have just right-clicked on the Ubuntu Terminal window's title bar and set any title you would like. But unfortunately after Ubuntu 18.04 LTS this feature is gone. I used to love this feature because I'm multiple tabs in the single terminal window kind of a guy. I usually like to work in multiple named terminal tabs like below. By default, in newer Ubuntu version, it is showing just the current directory. Let's see how we can do this. Ubuntu prompt In ubuntu's Bash, there's an environment variable $PS1 which is responsible for the details that the command line prompts. You'll be able to echo this and see what's inside it. If I echo it it will print something like this. echo $PS1 \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ If you really want to understand what this means, you can refer this page .  Updating the termina...

Java, how to create a list with a single element

 I wanted to create a Java List with a single element. Yet, I wanted to add more elements later. So, I was looking for a couple of ways to do this. So far there are multiple elegant ways to create a list with a single element with a one-liner. Not so much for a modifiable list though. Here's what I gathered so far. Followings are a few ways of creating a list with strictly a single entry. Can't add more elements. 1. Collections.singletonList() This returns an immutable list that cannot be modified or add more elements. // An immutable list containing only the specified object. List<String> oneEntryList = Collections. singletonList ( "one" ) ; oneEntryList.add( "two" ) ; // throws UnsupportedOperationException 2.  Arrays.asList() This returns a fixed-size list consisting of the number of elements provided as arguments. The number of elements provided would be an array hence the size is fixed to the length of the array. // Returns a fixed-size list List...

Find command: How to find and delete 0 bytes files in Linux

In Linux, "find" command is a powerful command that we can use not only to find files. I've used it for different requirements, so thought of posting some of the convenient usages of find commands in a series of posts. For some application issue, I've got one of my directories in Ubuntu system swarmed with empty files with 0 bytes. Some of the files got data in them but some of them were empty. I just wanted to delete the empty files and it wasn't possible to identify them by file names or dates. So find command comes to rescue. find . -size 0 -type f  If I needed to isolate the files by file extension, we can use something like this. find . -size 0 -type f -name "*.tar" You can get the file count by piping it to wc command. find . -size 0 -type f -name "*.tar" | wc -l The awesome thing about the find command is you can use it for deleting files just by adding the -delete flag to the command. find . -size 0 -type f -name "*.tar" -dele...