Abstract:
A method for operation of an electronic device and an electronic device are provided. The method includes determining if an object is detected at a first terminal and a second terminal among a plurality of terminals of an ear jack. If the object is detected, the impedance of the second terminal is calculated, and a type of the object is determined according to the calculated impedance.