Abstract:
Provided are a method and an apparatus including a communication interface, a memory, and a processor. The processor is configured to detect a connection between the electronic device and at least one external device or a docking device, to recognize context information of the electronic device based on an application being executed in the electronic device or a file being accessed, and to control operations of the electronic device and the at least one external device or the docking device based on the context information and the at least one external device.