CPC G06F 1/1677 (2013.01) [G06F 1/1616 (2013.01); G06F 1/1652 (2013.01)] | 18 Claims |
1. An electronic device comprising:
a first housing and a second housing;
a hinge configured to rotatably connect the first housing and the second housing;
a display configured to be exposed through a first portion of the first housing and a second portion of the second housing;
a location sensor;
at least one sensor;
a memory; and
a processor configured to be operatively connected to the display, the location sensor, the at least one sensor, and the memory,
wherein the processor is configured to
identify a location of the electronic device through the location sensor and identify a folded state of the electronic device through the at least one sensor,
perform, based on the location of the electronic device being within a first area and the folded state of the electronic device being a first state, a first prestored function corresponding to the first area and the first state, and
perform, based on a determination that the location of the electronic device is within the first area and the folded state of the electronic device being a second state, a second prestored function corresponding to the first area and the second state.
|
10. A method for controlling an electronic device including a first housing and a second housing, a hinge configured to rotatably connect the first housing and the second housing, a display configured to be exposed through a first portion of the first housing and a second portion of the second housing, a location sensor, and at least one sensor other than the location sensor, the method comprising:
identifying a through the location sensor;
identifying a folded state of the electronic device through the at least one sensor; and
performing, based on the being within a first area and the folded state of the electronic device being a first state, a first prestored function corresponding to first area and the first state, and
perform, based on a determination that the is within the first area and the folded state of the electronic device being a second state, a second prestored function corresponding to the first area and the second state.
|