A method of turning the device screen display to the direction of gravity by shaking
A screen display and gravity direction technology, applied in the input/output process of data processing, instruments, electrical digital data processing, etc., can solve the problems of blocking the user's sight, occupying interface space, and functions that cannot be discovered by the user in time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0014] In this specific embodiment, we take a smart phone using the Android system as an example for illustration, and the implementation of the present invention on smart phones using other operating systems is similar.
[0015] First, the present invention uses the acceleration sensor provided by the Android system to realize the determination of the user's "shake" action, and this determination can activate the change of the display direction of the mobile phone screen. Specifically, obtain the current device sensor-related service SensorManager by calling Activity.getSystemService(Context.SENSOR_SERVICE) of the Android system; then obtain the acceleration sensor on the device through getDefaultSensor(Sensor.TYPE_ACCELEROMETER) from the SensorManager, if it returns null, If the current device does not support the acceleration sensor, the shake function cannot be realized. Otherwise, register the monitoring of the acceleration sensor through SensorManager.registerListener, th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More