Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Welcome to the whoisit-android wiki!
How does the app work?
We attach to the onCallStateChanged event provided by the Android System. If the incoming phone number matches an entry you've saved as part of a group, we'll play the ringtone attached to the group. The way we do this:
- Receive Incoming call
- If incoming number is in your contacts list and has a custom ringtone, we play that instead!
- If no custom ringtone, we continue checking for a match
- If match found, we'll play ringtone associated with the Phone Group you've configured
- If no match, we end execution and let Android handle ringtone audio
If we found a match, we actually mute the Ringer audio stream, and use the Alarm audio stream to play the ringtone on repeat. Once the call has ended, we reset the ringer audio stream & alarm audio stream back to their original volume levels and phone resumes normal operation.
For tips on using the app, see the following guides: