主权项 |
1. A method for an automatic response to an incoming call, comprising:
configuring, at a communication device, a destination and a message template with at least one blank field; capturing, at the communication device, a picture by a rear camera; detecting, at the communication device, whether there the picture is in an even color when an incoming call is received; detecting, at the communication device, whether there is an obstruction in front of the communication device; disabling, at the communication device, a ringtone of the incoming call if there is an obstruction in front of the communication device and the picture is in an even color; detecting, by a GPS unit of the communication device, a current position and position variation; calculating, at the communication device, an average speed based on the position variation; determining, at the communication device, whether the average speed is equal to or exceeds a predefined value; and hanging up, at the communication device, the incoming call, if the average speed equals to or exceeds a predefined value; calculating, at the communication device, a time required to reach the destination based on the average speed and a distance between the current position and the destination; and filling out, at the communication device, the message template with the time required to form a predefined message, and then transmitting the predefined message to the caller of the incoming call. |