Method for turning screen display of equipment to gravity direction through shaking
A technology of screen display and direction of gravity, applied in the input/output process of data processing, instruments, electrical digital data processing and other directions, can solve the problems of occupying interface space, functions that cannot be discovered by users in time, and blocking users' sight.
- 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