A method for controlling a front camera of a mobile terminal, the method comprising: in a case that the front camera is to be used by an application, calling, by the application, a camera service which is a software architecture adapted to control and manage various operations of the front camera, sending, by the application, an operation instruction for the front camera, and receiving, by the camera service, the operation instruction for the front camera; characterized by the method further comprising: sending, by the camera service, a trigger message to a pop-up motor service which is a software architecture adapted to control pop-up or retraction of the front camera, wherein the pop-up motor service is an application layer service and the software architecture adopted for implementing the camera service is independent of the software architecture adopted for implementing the pop-up motor service; calling, by the pop-up motor service, a bottom-layer motor service, wherein the bottom-layer motor service comprises a daemon process, and calling, by the bottom-layer motor service, a motor running program to control the pop-up or retraction of the front camera; controlling, by the camera service based on the operation instruction, the front camera to perform a corresponding operation; acquiring, by the bottom-layer motor service, a position of the front camera detected by a geomagnetic sensor, determining, by the bottom-layer motor service based on the position of the front camera, whether the pop-up or retraction of the front camera is normal; and sending, by the pop-up motor service, an alarm message to a user when the pop-up or retraction of the front camera is abnormal. in a case that the front camera is to be used by an application, calling, by the application, a camera service which is a software architecture adapted to control and manage various operations of the front camera, sending, by the application, an operation instruction for the front camera, and receiving, by the camera service, the operation instruction for the front camera; characterized by the method further comprising: sending, by the camera service, a trigger message to a pop-up motor service which is a software architecture adapted to control pop-up or retraction of the front camera, wherein the pop-up motor service is an application layer service and the software architecture adopted for implementing the camera service is independent of the software architecture adopted for implementing the pop-up motor service; calling, by the pop-up motor service, a bottom-layer motor service, wherein the bottom-layer motor service comprises a daemon process, and calling, by the bottom-layer motor service, a motor running program to control the pop-up or retraction of the front camera; controlling, by the camera service based on the operation instruction, the front camera to perform a corresponding operation; acquiring, by the bottom-layer motor service, a position of the front camera detected by a geomagnetic sensor, determining, by the bottom-layer motor service based on the position of the front camera, whether the pop-up or retraction of the front camera is normal; and sending, by the pop-up motor service, an alarm message to a user when the pop-up or retraction of the front camera is abnormal. sending, by the camera service, a trigger message to a pop-up motor service which is a software architecture adapted to control pop-up or retraction of the front camera, wherein the pop-up motor service is an application layer service and the software architecture adopted for implementing the camera service is independent of the software architecture adopted for implementing the pop-up motor service; calling, by the pop-up motor service, a bottom-layer motor service, wherein the bottom-layer motor service comprises a daemon process, and calling, by the bottom-layer motor service, a motor running program to control the pop-up or retraction of the front camera; controlling, by the camera service based on the operation instruction, the front camera to perform a corresponding operation; acquiring, by the bottom-layer motor service, a position of the front camera detected by a geomagnetic sensor, determining, by the bottom-layer motor service based on the position of the front camera, whether the pop-up or retraction of the front camera is normal; and sending, by the pop-up motor service, an alarm message to a user when the pop-up or retraction of the front camera is abnormal.