Why? The state of the dialer application is altered when the receiver connects on the other end. The Call log immediately begins to time the period of connection at that point. hell just reading text on screen when a call is dialed and waiting for a timer to start. It counts for declined if that...
Surely ends a little taking per device/screen size/etc.. but I had a lazy easy morning so went ahead and threw this together real quick for ya bud. Stay safe, God Bless you and your family.
How do you turn it on and off? Is there a power button with "restart, power-off, etc" options? If so your screen resolution and power off button positon will be important.
And how long do you want the inactive period to be?