Method for opening camera based on gravity sensing

2012 
The invention discloses a method for opening a camera based on gravity sensing. The method is applied to cellphones provided with gravity sensors and comprises the following steps: step 1, a cellphone is in an unlocking interface, and a gravity sensor is started at the background; step 2, entering a detection judging program, and judging whether the cellphone is in a horizontal or vertical state; step 3, judging whether the time of the horizontal or vertical state of the cellphone exceeds a preset time T, entering next step on yes judgment, and returning back on no judgement; and step 4, opening a cellphone camera, and entering a shooting mode. By means of the method, the gravity sensor is used for detecting placing state of the cellphone, and when the user place the cellphone in a state for shooting, namely the cellphone is in a horizontal or vertical state, the cellphone can automatically open the camera and enter the shooting state, so that the operations for looking for shortcut icons from various shortcut icons to enter the shooting mode can be avoided. Simultaneously, the cellphone is scientific, and enjoyment of the cellphone is increased.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []