Android application monitoring calls
There is a simple android application to create.
Its main purpose is to send connection states to an external server by polling specific terminals. (The order is for the application itself, the tips are ready).
For example, an incoming call comes, the application sends json:
POST https://xxx.pl/register_state
{state = 'new', number = 123456789, apk_id = '123QAZ'}
In addition, the application itself is to have several buttons, one below the other, after pressing the button, a call will be made (USSD code - used to redirect the call) and it will ask the end, passing the appropriate status.
United:
- answered incoming call,
- incoming call rejected,
- incoming call terminated,
- missed incoming call,
- outgoing call,
- outgoing call terminated,
- call transferred (state triggered by the button)
- airplane mode is turned on *,
- airplane mode turned off *,
I allow freedom in the structure of sent data. apk_id - is a unique value for a given phone (it can be a phone number, sim card number, phone serial number, random value saved on the device, whatever - important to be unique)
- a separate ending to be asked, for example:
POST https://xxx.pl/phone_status
{apk_id = '123QAZ', status = 'ON'}
A Ready That Can Help: