This Android app demonstrates examples of usage:
BroadcastReceiver
for catching calls.- Creating a window from the
BroadcastReceiver
. - Dragging the created window.
- Show caller's name (only if contact saved) and number.
- Button for Canceling floating window
- Works while phone is locked
The following permissions are required to complete these steps:
android.permission.READ_PHONE_STATE
.android.permission.READ_CALL_LOG
.android.permission.SYSTEM_ALERT_WINDOW
.android.permission.READ_CONTACTS
.