Method, device, storage medium and mobile terminal for controlling application scenario data
By using an acceleration sensor in the mobile terminal to detect user operation information and store scene data at the switching moment, the problem of users being unable to restore the original application data options after switching applications is solved, improving the user experience and the continuity of application scenarios.
Patent Information
- Application Number
- CN202011203245.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-11-02
AI Technical Summary
The mobile terminal cannot restore the data options of the previous application when the user switches applications, resulting in a degraded user experience.
By setting up a detection module in the mobile terminal, including an acceleration sensor, the user operation information is detected and the scene data at the switching moment is stored. When the user returns to the original application, the application scene of the original application is restored.
Automatically save and restore application scenario data when switching applications, improving user experience and ensuring the continuity of application scenarios.
Smart Images

Figure CN112199183B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile terminal technology, and in particular to a method, device, storage medium and mobile terminal for controlling application scenario data. Background Art
[0002] With the development of science and technology, accelerometers are widely used, especially in the design of mobile terminals. Accelerometers play a huge role in the motion detection of mobile terminals, such as screen rotation, navigation, games, etc. The accelerometer identifies the user's operation of the mobile terminal based on the acceleration of the mobile terminal. When the user is using certain applications, the data detected by the accelerometer will be different for each type of application. For example, when the user is making a phone call and playing a game, the data of the mobile terminal detected by the accelerometer will be different, indicating that the user's usage status in the two applications is different. The mobile terminal system is equipped with data options for a variety of application scenarios. The system will judge the user's usage status based on the data of the mobile terminal detected by the accelerometer, automatically select the appropriate data option for the user in the corresponding state, and store it.
[0003] Currently, when a user switches to another application and then returns to a previous application, the system of the mobile terminal cannot restore the data options of the previous application, that is, the application scenario of the previous application cannot be restored, which reduces the user's experience. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, storage medium and mobile terminal for controlling application scenario data. When a user switches from a previous application to another application and then switches back to the previous application, the system restores the data options of the application and restores the application scenario of the application.
[0005] In a first aspect, an embodiment of the present invention provides a method for controlling application scenario data, which is applied to a mobile terminal, wherein a detection module is provided in the mobile terminal, and the detection module includes at least an acceleration sensor, and the method includes:
[0006] The acceleration sensor detects a plurality of first usage information of the mobile terminal when using the first application, and the mobile terminal selects first scene data adapted to the first usage information according to the first usage information;
[0007] When the mobile terminal switches from the first application to the second application, the mobile terminal stores the first scene data at the first switching moment;
[0008] The acceleration sensor detects a plurality of second usage information of the mobile terminal when the mobile terminal is in the second application, and the mobile terminal selects second scene data adapted to the second usage information according to the second usage information;
[0009] When the mobile terminal switches back to the first application from the second application, the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment.
[0010] In a second aspect, an embodiment of the present invention provides a device for controlling application scenario data, which is applied to a mobile terminal, wherein a detection module is provided in the mobile terminal, wherein the detection module includes at least an acceleration sensor, and the device includes:
[0011] A first detection and selection unit, configured to detect, by the acceleration sensor, a plurality of first usage information of the mobile terminal when using the first application, and the mobile terminal selects, according to the first usage information, first scene data adapted to the first usage information;
[0012] A storage unit, configured to store the first scene data at a first switching moment when the mobile terminal switches from the first application to the second application;
[0013] A second detection and selection unit, configured to detect, by the acceleration sensor, a plurality of second usage information of the mobile terminal when the mobile terminal is in the second application, and the mobile terminal selects, according to the second usage information, second scene data adapted to the second usage information;
[0014] A scene restoration unit is used for, when the mobile terminal switches from the second application back to the first application, the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment.
[0015] In a third aspect, an embodiment of the present invention further provides a storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the above-mentioned method for controlling application scenario data.
[0016] In the fourth aspect, an embodiment of the present invention also provides a mobile terminal, including a processor, a memory and a detection module, wherein the memory and the detection module are electrically connected to the processor, and the memory is used to store instructions and data; the processor is used to execute the above-mentioned method for controlling application scenario data, and the detection module is used to detect the data of the mobile terminal.
[0017] In an embodiment of the present invention, a detection module is provided in the mobile terminal, and the detection module at least includes an acceleration sensor. When the user is operating the first application, the acceleration sensor detects the first usage information of the first application, and the mobile terminal selects the first scene data adapted to the first usage information according to the first usage information. The first usage information and the first scene data are both multiple and one-to-one corresponding. When the user switches to the second application, the mobile terminal stores the first scene data at the first switching moment, and the acceleration sensor detects the second usage information of the second application, and the mobile terminal selects the second scene data adapted to the second usage information according to the second usage information. The second usage information and the second scene data are both multiple and one-to-one corresponding. When the user switches from the second application back to the first application, the mobile terminal stores the second scene data at the second switching moment, and selects to switch the first scene data stored at the first moment, and the first application returns to the application scene under the first scene data at the first switching moment. In the above manner, even if the user generates an action of switching applications during use, since the system automatically saves the scene data of the application at the switching moment, when the user switches back, the mobile terminal will automatically select the scene data at the switching moment of the application, restore the application scene of the application at the time of switching, ensure that the application scene remains unchanged, and improve the user's sense of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flow chart of a method for controlling scene data provided by an embodiment of the present application;
[0020] Figure 2 is another flow chart of the method for controlling scene data provided by an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of the structure of a device for controlling scene data provided in an embodiment of the present application;
[0022] Figure 4 It is a structural diagram of a mobile terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0024] The embodiments of the present application propose a method, device, storage medium and mobile terminal for controlling scene data, which will be described in detail below.
[0025] The method for controlling scene data proposed in an embodiment of the present application is applied to a mobile terminal, which may be a smart phone or a tablet computer. A detection module is provided in the mobile terminal, which includes at least an acceleration sensor. Optionally, the detection module includes at least an acceleration sensor and a gyroscope. The mobile terminal includes multiple applications. Optionally, the mobile terminal includes at least a first application and a second application.
[0026] See also Figure 1 , Figure 1 A flow chart of a method for controlling scene data provided in an embodiment of the present application, the method comprising:
[0027] 101. The acceleration sensor detects a plurality of first usage information of the mobile terminal in the first application, and the mobile terminal selects first scenario data adapted to the first usage information according to the first usage information.
[0028] When the user uses the first application, the interface of the first application is displayed on the display screen of the mobile terminal, and the acceleration sensor detects first usage information of the mobile terminal when using the first application. Through the first usage information, the user's usage status and actions when using the first application can be known. Since the user's status and actions change during use, the acceleration sensor detects multiple first usage information, and each first usage information corresponds to the user's status and actions at a certain moment or a certain time period. The mobile terminal automatically selects the adapted first scene data according to each first usage information. The first scene data is built-in to the system of the mobile terminal, and is the result of settings made by R&D personnel through experiments and data calculations when developing the system of the mobile terminal. There are multiple options for the first scene data, and each of the first scene data includes multiple range values or numerical values.
[0029] Furthermore, the first scenario data is reflected in the application scenario of the first application, that is, in the interface information of the first application. The corresponding appropriate first scenario data is selected according to each of the first usage information, so that when the user uses the first application, the application scenario of the application is better. The data setting of the application scenario of the first application at each time is consistent with the user's status at the corresponding time, conforms to the human-computer relationship, and improves the user experience.
[0030] 102. When the mobile terminal switches from the first application to the second application, the mobile terminal stores the first scene data at a first switching moment.
[0031] When a user is using a first application, when the user wants to switch to a second application, at a first switching moment, the mobile terminal automatically stores the first application and the first data scene corresponding to the first switching moment, so that when the user subsequently switches back to the first application, the mobile terminal can restore the application scene of the first application at the first switching moment.
[0032] For example, when a user is playing a game, WeChat prompts that there is a new message or an incoming call, and the user switches to the corresponding application to read the new message or answer the call. The switching moment from the game interface to the WeChat interface is defined as the first switching moment. At the first switching moment, the mobile terminal automatically saves the first scene data corresponding to the game interface at the first switching moment.
[0033] For example, when a user is playing a game, WeChat prompts that there is a new message, and the mailbox prompts that there is a new email. The user first switches to WeChat to read the new message, then switches to the mailbox to read the new email, and finally switches back to the game interface. At the switching moment from the game to WeChat, the mobile terminal automatically saves the first scene data of the game interface at the switching moment. At the switching moment from WeChat to the mailbox, the mobile terminal automatically saves the second scene data of the WeChat interface at that moment. When switching from the mailbox back to the mailbox interface, the mobile terminal automatically saves the third scene data of the mailbox interface at the switching moment.
[0034] 103. The acceleration sensor detects a plurality of second usage information of the mobile terminal in the second application, and the mobile terminal selects second scenario data adapted to the second usage information according to the second usage information.
[0035] When the user switches from the first application to the second application, the interface of the second application is displayed on the display screen of the mobile terminal, and the acceleration sensor detects second usage information of the mobile terminal in the second application. Through the second usage information, the user's usage status and actions when using the second application can be known. Since the user's status and actions change during use, the acceleration sensor detects multiple second usage information, and each second usage information corresponds to the user's status and actions at a certain moment or a certain time period. The mobile terminal automatically selects the adapted second scene data according to each second usage information. The second scene data is built-in to the system of the mobile terminal, and is the result of settings made by R&D personnel through experiments and data calculations when developing the system of the mobile terminal. There are multiple options for the second scene data, and each second scene data includes multiple range values or numerical values.
[0036] Furthermore, the second scenario data is reflected in the application scenario of the second application, that is, in the interface information of the second application. The corresponding second scenario data is selected according to each of the second usage information, so that the application scenario of the application is better when the user uses the second application. The data setting of the application scenario of the second application at each time is consistent with the user's status at the corresponding time, conforms to the human-computer relationship, and improves the user experience.
[0037] 104. When the mobile terminal switches from the second application back to the first application, the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment.
[0038] Since the mobile terminal has automatically stored the first scene data of the first application at the first switching moment when switching from the first application to the second application, when switching back to the first application, the mobile terminal stores the second scene data at the second switching moment, that is, the second scene data stored at the moment of switching from the second application back to the first application, and the mobile terminal selects the first scene data corresponding to the first switching moment, so that the application scene of the first application remains unchanged, that is, the application scene of the first application at the switching moment is restored, thereby improving the user experience.
[0039] Optionally, the first usage information and the second usage information both include at least a movement direction, an acceleration value, and a tilt angle, wherein the movement direction and the tilt angle are detected by the gyroscope, and the acceleration value is detected by the acceleration sensor.
[0040] The movement direction is the movement direction of the mobile terminal, for example, the mobile terminal is vertically downward, or the mobile terminal moves toward a certain angle, etc. The acceleration value is the speed of change of the movement speed of the mobile terminal, and the tilt angle is the angle of the mobile terminal when it is moving.
[0041] The specific movement information of the mobile terminal can be obtained through the movement direction, acceleration value, tilt angle and other data in the first usage information and the second usage information, and then the user's state and action can be determined.
[0042] The data of the first usage information and the second usage information in the embodiment of the present application are not limited to the above-mentioned movement direction, acceleration value and tilt angle, and may also include other data.
[0043] Optionally, the first scene data and the second scene data both include at least a fast gear, a tilt angle sensitivity and a range, and the sizes of the fast gear, the tilt angle sensitivity and the range are automatically selected by the system of the mobile terminal based on the detection results of the acceleration sensor and the gyroscope.
[0044] The movement status of the mobile terminal is obtained based on the first usage information and the second usage information, and then the user's status and actions are obtained, and then the adapted first scene data and second scene data are selected accordingly. For example, the fast or slow gear is selected according to the acceleration value, the tilt angle sensitivity is selected according to the tilt angle, and so on.
[0045] In some embodiments, the fast and slow gears can be set to three options, namely fast gear, medium gear and slow gear, the tilt angle sensitivity can be set to three options, namely 5 degrees, 10 degrees and 20 degrees, etc., the range can be set to three options, namely positive and negative 2g, positive and negative 4g and positive and negative 8g, etc., and the various data of the fast and slow gears, tilt angle sensitivity and the range are combined into multiple options. For example, the first application is a cool running game. When the user is using the first application, the acceleration sensor and the gyroscope detect the interface information of the mobile terminal in the cool running game, that is, detect the first usage information. At the beginning of the game, since the game has just been entered, the mobile terminal can select the first scene data as slow gear, 20 degrees and positive and negative 8g according to the first usage information. When the game enters the later stage and is more intense, or the requirements for passing the level are increased, the user's movement amplitude may become larger, and the various values of the detected first usage information will also change accordingly, and the mobile terminal automatically selects the first scene data as fast gear, 5 degrees and positive and negative 2g.
[0046] For example, the game application is set as the first application and the WeChat application is set as the second application. When the user is playing the game, WeChat prompts new information and the user switches to the application interface of WeChat. At the switching time, the first scene data of the game interface is mid-range, 10 degrees and plus or minus 4g. The first scene data stored in the mobile terminal is mid-range, 10 degrees and plus or minus 4g. The display screen of the mobile terminal displays the WeChat interface. After the user reads the new information, when switching back to the game interface from the WeChat interface, the mobile terminal selects the first scene data stored at the switching time, that is, mid-range, 10 degrees and plus or minus 4g. The game interface restores the scene data at the time of switching, that is, the application scene of the game interface remains unchanged before and after the switching.
[0047] Optionally, the contact signal of the mobile terminal is collected, and the contact time of each contact signal is recorded. When the contact signal is not collected and the acceleration sensor detects that the movement directions of the first usage information and the second usage information are both vertically downward, the mobile terminal stores the first scene data and the second scene data of the last contact time.
[0048] During the process of a user using a mobile terminal, when the user operates an application, the user operates the application by operating the virtual buttons and physical buttons on the mobile terminal, so that the contact signal can be collected, and the contact time corresponding to each contact signal can be recorded. At this time, the mobile terminal has a change in movement direction, but it should not be vertically downward. Therefore, by collecting the contact signal and movement direction of the mobile terminal, it can be determined whether the mobile terminal is in a falling state. When the contact signal is not collected, and the movement direction of the mobile terminal is detected to be vertically downward, the mobile terminal is likely to be falling. At this time, the mobile terminal stores the first scene data and the second scene data of the last contact time, so that even if the mobile terminal is turned off after falling, when the mobile terminal and the corresponding application are restarted again, the application scenario of the corresponding application remains unchanged, avoiding the situation where, for example, the mobile phone falls and turns off while playing a game, and the mobile phone and the corresponding game program need to be restarted and played again from the beginning.
[0049] Optionally, the contact signal of the mobile terminal is collected, and the contact time of each contact signal is recorded. When the contact signal is not collected and the acceleration sensor detects that the acceleration values of the first usage information and the second usage information have increased, the mobile terminal stores the first scene data and the second scene data of the last contact time.
[0050] By combining the collection of contact signals and the detection of acceleration values, it is determined whether the mobile terminal is in a dropped state, thereby saving the scene data of the application. When the mobile terminal is dropped and shut down and then restarted, and the program is restarted again, the scene data of the application is not affected, thereby avoiding the situation where, for example, the mobile phone is dropped and shut down while playing a game, and the mobile phone and the corresponding game program need to be restarted and played again from the beginning.
[0051] The method for controlling scene data of an embodiment of the present application detects data of a mobile terminal through a detection module, wherein the detection module includes at least an acceleration sensor and a gyroscope, and the mobile terminal includes multiple applications. Optionally, the mobile terminal includes at least a first application and a second application. When a user uses the first application, an interface of the first application is displayed on a display screen of the mobile terminal, and the acceleration sensor and the gyroscope jointly detect first usage information of the mobile terminal when using the first application. The user's state and action can be known through the first usage information. Due to changes in the user's state and action, there are multiple first usage information, and the mobile terminal automatically selects an adapted first application according to each first usage information. Scene data. When the mobile terminal switches from the first application to the second application, the mobile terminal automatically stores the first scene data of the first application at the first switching moment. The acceleration sensor and the gyroscope detect second usage information of the mobile terminal in the second application. Similarly, the second usage information is also multiple. The mobile terminal automatically selects the adapted second scene data according to each second usage information. When switching back to the first application, the mobile terminal stores the second scene data at the second switching moment and selects the first scene data stored at the first switching moment, so that the first application restores the application scene at the first switching moment, keeps the application scene before and after the switching unchanged, and improves the user's sense of use.
[0052] See also Figure 2 , Figure 2 Another flow chart of the method for controlling scene data provided by an embodiment of the present application, after performing the above step 104, the method further includes:
[0053] 105. The mobile terminal detects whether the second application is closed.
[0054] When the mobile terminal switches from the second application back to the first application, the mobile terminal stores the second scene data at the second switching moment, that is, stores the second scene data when switching from the second application to the first application, the interface of the mobile terminal switches back to the first application, the application interface of the first application is displayed on the display screen of the mobile terminal, the first application restores the application scene at the first switching moment, and the mobile terminal detects the status of the second application and determines whether the status of the second application is closed or in the system background.
[0055] 106. When it is detected that the second application is closed, the mobile terminal clears all the second scenario data.
[0056] Optionally, when the user switches from the second application to the first application, the mobile terminal stores the second scene data at the second switching moment and detects whether the second application is closed. When it is detected that the second application is closed, the mobile terminal clears all second scene data of the second application. When it is detected that the second application is not closed, the mobile terminal stores the second scene data at the second switching moment.
[0057] In some embodiments, when the user is using the first application, the mobile terminal can save each of the first usage information and the first scene data corresponding to each of the first usage information. When the user is using the second application, the mobile terminal can save each of the second usage information and the second scene data corresponding to each of the second usage information. When switching from the first application to the second application and then switching from the second application back to the first application, the mobile terminal stores the second scene data at the moment of switching from the second application back to the first application, and automatically selects the first scene data at the first switching moment of switching from the first application to the second application. The interface of the first application is displayed on the display screen of the mobile terminal. The mobile terminal detects whether the second application is closed. When it is detected that the second application is closed, the mobile terminal clears all second scene data related to the second application.
[0058] In other embodiments, when the user is using the first application, the mobile terminal automatically selects the adapted first scene data according to each of the first usage information; when switching from the first application to the second application, the mobile terminal only saves the first scene data at the switching moment, and does not store other first scene data of the first application; when switching from the second application back to the first application, the mobile terminal stores the second scene data at the time of switching; the application interface of the first application is displayed on the display screen of the mobile terminal; the mobile terminal detects whether the second application is closed; when it is detected that the second application is closed, the mobile terminal clears the second scene data stored at the time of switching; the second application does not have any second scene data; when it is detected that the second application is not closed but is in the system background, the mobile terminal still stores the second scene data at the time of switching, so that when switching to the second application again, the second scene data can be selected to restore the application scene when the second application is switched.
[0059] See also Figure 3 , Figure 3 The device for controlling scene data provided in an embodiment of the present application includes:
[0060] The first detection selection unit 201 is used for the acceleration sensor to detect a plurality of first usage information of the mobile terminal when using the first application, and the mobile terminal selects first scene data adapted to the first usage information according to the first usage information.
[0061] Optionally, the gyroscope is also used to detect usage information of the mobile terminal in the first application, and the mobile terminal automatically selects the adapted first scene data according to the usage information detected by the acceleration sensor and the gyroscope.
[0062] The storage unit 202 is configured to store the first scene data at a first switching moment when the mobile terminal switches from the first application to the second application.
[0063] Optionally, it is also used to store the second scenario data of the second application at the time of switching, and to store the first usage information and the second usage information when the mobile terminal switches back from the second application to the first application.
[0064] The second detection selection unit 203 is used for the acceleration sensor to detect a plurality of second usage information of the mobile terminal when the mobile terminal is in the second application, and the mobile terminal selects second scene data adapted to the second usage information according to the second usage information.
[0065] Optionally, the gyroscope is also used to detect usage information of the mobile terminal in the second application, and the mobile terminal automatically selects adapted second scene data according to the usage information detected by the acceleration sensor and the gyroscope.
[0066] The scene restoration unit 204 is used for storing the second scene data at the second switching moment, selecting the first scene data at the first switching moment, and returning the first application to the application scene under the first scene data at the first switching moment when the mobile terminal switches from the second application back to the first application.
[0067] Optionally, it is also used to, when the mobile terminal switches from the first application to the second application again, select the second scenario data of the second application stored during the second switching, and restore the application scenario of the second application under the second scenario data.
[0068] The status detection unit 205 is used to store the second scene data at the second switching moment in the mobile terminal, select the first scene data at the first switching moment, and after the first application returns to the application scene under the first scene data at the first switching moment, the mobile terminal detects whether the second application is closed.
[0069] The data clearing unit 206 is configured to cause the mobile terminal to clear all the second scene data when it is detected that the second application is closed.
[0070] Furthermore, the device for controlling scene data further includes:
[0071] The collection and recording unit is used to collect the contact signal of the mobile terminal and record the contact time of each contact signal.
[0072] The first drop judgment unit is used for storing the first scene data and the second scene data of the last contact time by the mobile terminal when the contact signal is not collected and the acceleration sensor detects that the movement directions of the first usage information and the second usage information are both vertically downward.
[0073] The second drop judgment unit is used for storing the first scene data and the second scene data of the last contact time by the mobile terminal when the contact signal is not collected and the acceleration sensor detects that the acceleration values of the first usage information and the second usage information are increased.
[0074] Optionally, the mobile terminal stores scene data of all applications in working state at the last contact time, and the applications in working state include applications being displayed by the mobile terminal and applications in the system background.
[0075] Optionally, the device also includes other units, which will not be described here.
[0076] See also Figure 4 , Figure 4 The structural diagram of the mobile terminal provided in the embodiment of the present application is as follows: the mobile terminal 100 includes: a processor 301, a memory 302, a detection module 303 and a collection module 304, and the memory 302, the detection module 303 and the collection module 304 are all electrically connected to the processor 301.
[0077] The processor 301 is the core of the entire system and is used to process and adjust the working status of each module to control scene data.
[0078] The memory 302 is used to store instructions and data. For example, the memory 302 stores a plurality of the first scene data and a plurality of the second scene data.
[0079] The detection module 303 is used to detect the first usage information and the second usage information, and at least includes an acceleration sensor and a gyroscope. Optionally, the detection module is also used to detect other data of the mobile terminal 100.
[0080] The collection module 304 is used to collect the contact signal and other information of the mobile terminal 100 , such as the contact point information of the mobile terminal 100 .
[0081] Optionally, the mobile terminal 100 also includes other components such as a display screen and a battery and various functional circuits, which are not described in detail here.
[0082] The mobile terminal of the embodiment of the present application detects data of the mobile terminal through a detection module, the detection module includes at least an acceleration sensor and a gyroscope, the mobile terminal includes multiple applications, and optionally, the mobile terminal includes at least a first application and a second application. When a user uses the first application, an interface of the first application is displayed on a display screen of the mobile terminal, the acceleration sensor and the gyroscope jointly detect first usage information of the mobile terminal when using the first application, and the user's state and action can be known through the first usage information. Due to changes in the user's state and action, the first usage information is multiple, and the mobile terminal automatically selects an adapted first scene according to each of the first usage information When the mobile terminal switches from the first application to the second application, the mobile terminal automatically stores the first scene data of the first application at the first switching moment, and the acceleration sensor and the gyroscope detect the second usage information of the mobile terminal in the second application. Similarly, the second usage information is also multiple, and the mobile terminal automatically selects the adapted second scene data according to each second usage information. When switching back to the first application, the mobile terminal stores the second scene data at the second switching moment, and selects the first scene data stored at the first switching moment, so that the first application restores the application scene at the first switching moment, keeps the application scenes before and after the switching unchanged, and improves the user's sense of use.
[0083] In some embodiments, a computer-readable storage medium is further provided, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to execute any of the above-mentioned methods for controlling scene data.
[0084] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0085] The above is a detailed introduction to the method, device, storage medium and mobile terminal for controlling scene data provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling application scenario data, applied to a mobile terminal, characterized in that: The mobile terminal is provided with a detection module, the detection module at least comprising an acceleration sensor and a gyroscope, and the method comprises: The acceleration sensor and the gyroscope detect a plurality of first usage information of the mobile terminal when the mobile terminal is in a first application, and the mobile terminal selects first scene data adapted to the first usage information according to the first usage information; When the mobile terminal switches from the first application to the second application, the mobile terminal stores the first scene data at the first switching moment; The acceleration sensor and the gyroscope detect a plurality of second usage information of the mobile terminal when the mobile terminal is in the second application, and the mobile terminal selects second scene data adapted to the second usage information according to the second usage information, wherein the first usage information and the second usage information both include at least a motion direction, an acceleration value, and a tilt angle; the first scene data and the second scene data both include at least a speed gear, a tilt angle sensitivity, and a range, the speed gear is selected according to the acceleration value, and the tilt angle sensitivity is selected according to the tilt angle; When the mobile terminal switches back to the first application from the second application, the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment.
2. The method for controlling application scenario data according to claim 1, characterized in that: After the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment, the method further includes: The mobile terminal detects whether the second application is closed; When it is detected that the second application is closed, the mobile terminal clears all the second scene data.
3. The method for controlling application scenario data according to claim 1, characterized in that: Also includes: Collecting contact signals of the mobile terminal and recording the contact time of each contact signal; When the contact signal is not collected, and the acceleration sensor detects that the movement directions of the first usage information and the second usage information are both vertically downward, the mobile terminal stores the first scene data and the second scene data of the last contact time.
4. The method for controlling application scenario data according to claim 1, characterized in that: Also includes: Collecting contact signals of the mobile terminal and recording the contact time of each contact signal; When the contact signal is not collected and the acceleration sensor detects that the acceleration values of the first usage information and the second usage information both increase, the mobile terminal stores the first scene data and the second scene data of the last contact time.
5. A device for controlling application scenario data, applied to a mobile terminal, characterized in that: The mobile terminal is provided with a detection module, the detection module at least includes an acceleration sensor and a gyroscope, and the device includes: A first detection and selection unit, configured to detect, by the acceleration sensor and the gyroscope, a plurality of first usage information of the mobile terminal when the mobile terminal is in a first application, and the mobile terminal selects, according to the first usage information, first scene data adapted to the first usage information; A storage unit, configured to store the first scene data at a first switching moment when the mobile terminal switches from the first application to the second application; a second detection and selection unit, configured for the acceleration sensor and the gyroscope to detect a plurality of second usage information of the mobile terminal when the mobile terminal is in the second application, wherein the mobile terminal selects second scene data adapted to the second usage information according to the second usage information, wherein the first usage information and the second usage information both include at least a motion direction, an acceleration value, and a tilt angle; and the first scene data and the second scene data both include at least a fast or slow gear, a tilt angle sensitivity, and a range, wherein the fast or slow gear is selected according to the acceleration value, and the tilt angle sensitivity is selected according to the tilt angle; A scene restoration unit is used for, when the mobile terminal switches from the second application back to the first application, the mobile terminal stores the second scene data at the second switching moment, selects the first scene data at the first switching moment, and the first application returns to the application scene under the first scene data at the first switching moment.
6. The device for controlling application scenarios according to claim 5, characterized in that: Also includes: a state detection unit, configured to store the second scene data at the second switching moment in the mobile terminal, select the first scene data at the first switching moment, and after the first application returns to the application scene under the first scene data at the first switching moment, the mobile terminal detects whether the second application is closed; A data clearing unit is used to cause the mobile terminal to clear all the second scene data when it is detected that the second application is closed.
7. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the method for controlling application scenario data according to any one of claims 1 to 4.
8. A mobile terminal, characterized in that: It includes a processor, a memory and a detection module, the memory and the detection module are electrically connected to the processor, the memory is used to store instructions and data; the processor is used to execute the method for controlling application scenario data described in any one of claims 1-4, and the detection module is used to detect the data of the mobile terminal.
