CN107133021B - Information processing method and electronic equipment - Google Patents
Information processing method and electronic equipment Download PDFInfo
- Publication number
- CN107133021B CN107133021B CN201610109469.8A CN201610109469A CN107133021B CN 107133021 B CN107133021 B CN 107133021B CN 201610109469 A CN201610109469 A CN 201610109469A CN 107133021 B CN107133021 B CN 107133021B
- Authority
- CN
- China
- Prior art keywords
- state
- electronic device
- operating
- working
- switched
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 19
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 33
- 230000000694 effects Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005452 bending Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides an information processing method and electronic equipment, which are used for realizing the technical effect of respectively storing working parameters in different state forms. The method comprises the following steps: determining that an electronic device switches from a first state to a second state different from the first state; wherein the device form of the electronic device can be a first form and a second form different from the first form; if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form; if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing a second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device.
Background
In order to meet the requirements of various application scenarios of users, some electronic devices provide multiple states for users. For example, in a movie-watching scene, the tablet mode of the electronic device can be used, because the larger display area is more favorable for watching the movie in the tablet mode; in the scene of receiving and making calls, a large screen is not needed, so that the user can use the mobile phone mode of the electronic equipment.
However, in the electronic device capable of switching between multiple states in the prior art, the stored operating parameters are usually only a certain number of latest operating parameters.
Disclosure of Invention
The embodiment of the application provides an information processing method and electronic equipment, which are used for realizing the technical effect of respectively storing working parameters in different forms.
In a first aspect, the present application provides an information processing method, including:
determining that an electronic device switches from a first state to a second state different from the first state; wherein the device form of the electronic device can be a first form and a second form different from the first form;
if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form;
if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing a second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state.
Optionally, storing a first operating parameter corresponding to the first form includes:
storing the first working parameter in a first storage space, wherein the first storage space is used for storing the working parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space;
storing a second operating parameter corresponding to the second modality, including:
storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
Optionally, after storing the first operating parameter corresponding to the first form or storing the second operating parameter corresponding to the second form, the method further includes:
judging whether the electronic equipment can operate based on the first working parameter in the second state;
determining that the electronic device is unable to operate based on the first operating parameter in the second state;
obtaining the second working parameter from the second storage space;
operating based on the second operating parameter.
Optionally, determining that the electronic device is switched from the first state to a second state different from the first state includes:
determining that the electronic device is switched from the first modality to the second modality; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or
Determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
Optionally, after determining that the electronic device is switched from the first operating mode to a second operating mode different from the first operating mode, the method further includes:
determining that the electronic device is switched from the first modality to the second modality.
Optionally, after determining whether the electronic device can operate based on the first operating parameter in the second state, the method further includes:
determining that the electronic device is capable of operating based on the first operating parameter in the second state;
obtaining the first working parameter from the first storage space;
and operating based on the first working state.
Optionally, after storing the first operating parameter corresponding to the first form or storing the second operating parameter corresponding to the second form, the method further includes:
determining that the electronic device switches from the second state back to the first state;
judging that the electronic equipment is in the first form or the second form after being switched back to the first state from the second state;
if the electronic equipment is in the first form after being switched back to the first state from the second state, obtaining the first working parameter and operating based on the first working parameter;
and if the electronic equipment is in the second state after the electronic equipment is switched from the second state to the first state, acquiring the second working parameter and operating based on the second working parameter.
In a second aspect, the present application provides an electronic device comprising:
a first determination unit configured to determine that the electronic device is switched from a first state to a second state different from the first state; wherein the device form of the electronic device can be a first form and a second form different from the first form;
the storage unit is used for storing a first working parameter corresponding to the first form to update the working parameter corresponding to the first form if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state; if the electronic device is in the second state before the electronic device is switched from the first state to the second state, the electronic device is configured to store a second operating parameter corresponding to the second state, so as to update the operating parameter corresponding to the second state.
Optionally, the storage unit is configured to store the first operating parameter in a first storage space, where the first storage space is used to store the operating parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space; or storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
Optionally, the electronic device further includes:
a first determination unit configured to determine whether the electronic device is operable based on a first operating parameter in the second state after storing the first operating parameter corresponding to the first state or storing a second operating parameter corresponding to the second state;
a second determination unit, configured to determine that the electronic device cannot operate based on the first operating parameter in the second state;
a second parameter obtaining unit, configured to obtain the second operating parameter from the second storage space;
and the second operation unit is used for operating based on the second working parameter.
Optionally, the first determining unit is configured to determine that the electronic device is switched from the first form to the second form; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
Optionally, the electronic device further includes:
a third determining unit, configured to determine that the electronic device is switched from the first form to the second form after determining that the electronic device is switched from a first operating mode to a second operating mode different from the first operating mode.
Optionally, the electronic device further includes:
a fourth determination unit, configured to determine that the electronic device is operable in the second state based on the first operating parameter after determining whether the electronic device is operable in the second state based on the first operating parameter;
a first parameter obtaining unit, configured to obtain the first operating parameter from the first storage space;
and the first operation unit is used for operating based on the first working state.
Optionally, the electronic device further includes:
a fifth determining unit, configured to determine that the electronic device switches from the second state to the first state after storing the first operating parameter corresponding to the first form or storing the second operating parameter corresponding to the second form;
a second determining unit, configured to determine that the electronic device is in the first form or the second form after being switched from the second state to the first state;
a third operation unit, configured to obtain the first working parameter and operate based on the first working parameter if the electronic device is in the first state after being switched from the second state to the first state; and if the electronic equipment is in the second state after being switched back to the first state from the second state, the electronic equipment is used for obtaining the second working parameter and operating based on the second working parameter.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical scheme of the embodiment of the application, the electronic equipment is determined to be switched from a first state to a second state different from the first state; the device form of the electronic device can be a first form and a second form different from the first form; if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form; if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing the second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state. Because the electronic device in the embodiment of the application stores the working parameters respectively corresponding to different forms when storing the working parameters, the technical effect of storing the working parameters of different forms respectively is achieved.
Drawings
FIG. 1 is a flow chart of an information processing method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a tablet configuration of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a handset configuration of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The embodiment of the application provides an information processing method and electronic equipment, which are used for realizing the technical effect of respectively storing working parameters in different forms.
The technical scheme provided by the application has the following general idea:
in the technical scheme of the embodiment of the application, the electronic equipment is determined to be switched from a first state to a second state different from the first state; the device form of the electronic device can be a first form and a second form different from the first form; if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form; if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing the second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state. Because the electronic device in the embodiment of the application stores the working parameters respectively corresponding to different forms when storing the working parameters, the technical effect of storing the working parameters of different forms respectively is achieved.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
A first aspect of the present application provides an information processing method, please refer to fig. 1, including:
s101: determining that an electronic device switches from a first state to a second state different from the first state.
S102: if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form; if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing a second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state.
Specifically, the device form of the electronic device in the embodiment of the present application may be a first form and a second form different from the first form. And, the first form and the second form can be switched with each other.
The first form and the second form may be selected in various ways, and those skilled in the art to which the present application belongs may select them according to the actual situation. For example, the first configuration is a notebook configuration, and the second configuration is a tablet configuration; the first configuration is a tablet configuration as shown in fig. 2, and the second configuration is a mobile phone configuration as shown in fig. 3. For convenience of explanation, the first mode will be described as a tablet mode as shown in fig. 2, and the second mode will be described as a mobile phone mode as shown in fig. 3.
In particular, the electronic device is provided with a flexible means, such as a flexible hinge or a flexible screen. Further, when the electronic device is in the handset configuration, the first position is curved as shown in fig. 3. At the moment, the electronic equipment is small in size and convenient to hold by one hand of a user. When the electronic device is in the tablet configuration, as shown in fig. 2, the first position is flat and the device body is flat. At this time, the display area of the electronic device is located in one plane, and the display area is large.
In S101, it is determined that the electronic device switches from a first state to a second state different from the first state. Before the electronic device is switched from the first state to the second state, namely when the electronic device is in the first state, the device posture is in the first form or the second form. In other words, assuming that it is determined at time T1 that the electronic device is switched from the first state to the second state, the electronic device is in the first state and the device form is in the first form or the second form before time T1. After time T1, the electronic device is in the second state.
Specifically, in the embodiments of the present application, the first state and the second state include, but are not limited to, the following two possibilities.
The first method comprises the following steps:
the first state is the first form or the second form, and the second state is the second form or the first form. For convenience of explanation, it is assumed that in the first possibility, the first state is the first form, and the second state is the second form. In other words, in the first possibility, the switching of the electronic device state is specifically switching of the device form.
Further, in the first possibility, S102 includes:
determining that the electronic device is switched from the first modality to the second modality; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat.
Specifically, in the embodiment of the present application, switching the configuration of the electronic device may be implemented by a flexible screen of the electronic device, and then the curvature of the flexible screen may be detected by a sensor, so as to determine that the electronic device is switched from the first configuration to the second configuration.
Alternatively, the posture of the electronic device may be switched by a flexible hinge of the electronic device, and the degree of bending of the flexible hinge may be detected by a sensor connected to the flexible hinge, so as to determine that the electronic device is switched from the first form to the second form. In the specific implementation process, a person skilled in the art to which the present application belongs may select a mode of detecting the form switching according to the actual situation, and the present application is not limited specifically.
And the second method comprises the following steps:
the first state is a first working mode or a second working mode different from the first working mode, and the second state is the second working mode or the first working mode. Wherein the first operating mode and the second operating mode are different. For example, the power consumption of the electronic device in the first operating mode and the second operating mode is different, for example, the first operating mode is a normal operating state, the second operating mode is a sleep state, or the second operating mode is a mode after unlocking the screen, and the first operating mode is a screen locking mode. For convenience of explanation, it is assumed that in the second possibility, the first state is the screen-lock mode, and the second state is the mode after the screen is unlocked.
Further, in the second possibility, S102 includes:
determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
Specifically, a state list of the electronic device is recorded in the electronic device, and the state list is refreshed when an operation mode of the electronic device is switched. Therefore, by inquiring the mode recorded in the electronic device status list, it can be determined that the electronic device is switched from the first operating mode to the second operating mode.
And executing S102 after determining that the electronic equipment is switched from the first state to the second state. Specifically, there are different implementations because the device configuration may be the first configuration or the second configuration before the first state is switched to the second state. Specifically, if the electronic device is in the first state before the first state is switched to the second state, the first operating parameter corresponding to the first state is stored, and the operating parameter corresponding to the first state is updated. Or, if the electronic device is in the second state before the first state is switched to the second state, the second operating parameter corresponding to the second state is stored, and the operating parameter corresponding to the second state is updated.
In the embodiment of the present application, storing the first operating parameter to update the operating parameter corresponding to the first form means to erase the existing operating parameter corresponding to the first form and write the data before leaving the first form for the last time. Furthermore, the working parameters corresponding to the first form are always the latest working parameters corresponding to the form. Similarly, the second operating parameter is stored to update the operating parameter corresponding to the second configuration.
Meanwhile, the electronic device is in the first state before the state is switched, so the first working parameter is also the working parameter corresponding to the first state. In the embodiment of the present application, the working parameter is, for example, an identifier of a running application, a function value, a called interface, stack data, and the like, and the present application is not particularly limited.
In the prior art, only a part of the latest operating parameters is stored according to time, for example, the operating parameters within 10 minutes before the current time are stored, or the operating parameters within 5 minutes before the current time are stored. Therefore, after the state of the electronic device is switched, for example, after the form is switched, the electronic device cannot quickly acquire the working parameters corresponding to the form in which the electronic device is switched, and then the original working state is quickly recovered. In the above description, at the time T2 before the time T1, the electronic device switches from the second state to the first state, and at the time T1, the electronic device switches back to the second state at the time T1, and cannot quickly return to the operating state at the time T2, for example, at the time T2, the electronic device plays a movie, and cannot quickly continue playing the movie after switching to the second state.
Therefore, as can be seen from the above description, since the embodiment of the present application stores the first operating parameter or the second operating parameter after determining that the electronic device is switched from the first state to the second state. In other words, the state of the electronic device is switched, and whether the posture is switched or not, the electronic device is triggered to store the latest working parameters corresponding to the form of the electronic device before switching. Therefore, the technical effect of storing different working parameters based on the form is achieved. And when the electronic equipment needs to obtain working parameters of different forms, the working parameters can be conveniently obtained. For example, after the electronic device switches to the second form at time T1, the electronic device may obtain the second operating parameter, so as to continue playing the movie at time T2.
Specifically, S102 may be specifically implemented by the following process:
storing a first operating parameter corresponding to the first modality, comprising:
storing the first working parameter in a first storage space, wherein the first storage space is used for storing the working parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space;
storing a second operating parameter corresponding to the second modality, including:
storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
Specifically, the electronic device in the embodiment of the present application includes at least two storage spaces therein. The first form corresponds to a first storage space, and the first storage space is used for storing working parameters corresponding to the first form; the second form corresponds to a second storage space, and the second storage space is used for storing the working parameters corresponding to the second form. The first storage space and the second storage space are two different storage spaces.
When the first working parameter or the second working parameter is stored, the first working parameter is stored in the first storage space, and the second working parameter is stored in the second storage space. In a specific implementation process, the first working parameter and the second working parameter are respectively stored in the first storage space and the second storage space when the state of the electronic device is switched. Moreover, the first working parameter can be stored firstly, and then the second working parameter can be stored; or the second working parameter can be stored firstly, and then the first working parameter can be stored; or both the first operating parameter and the second operating parameter. Those of ordinary skill in the art to which the present application pertains may set the setting according to the practice, and the present application is not particularly limited.
Optionally, after S102, the method may further include:
judging whether the electronic equipment can operate based on the first working parameter in the second state;
determining that the electronic device is unable to operate based on the first operating parameter in the second state;
obtaining the second working parameter from the second storage space;
operating based on the second operating parameter.
Since the user switches the state of the electronic device during the use process, the user may still want the electronic device to be able to continue the operating state in the first state. For example, in a first state where the electronic device is playing a movie, the user may wish to switch to a second state where the electronic device continues to play the movie.
Therefore, after S102, the electronic device will determine whether the electronic device is in the second state and is capable of operating based on the first operating parameter. Specifically, the electronic device may determine by determining whether the first application in the first operating parameter is capable of operating in the second state. The first application is the application which is running at the moment when the first state is switched to the second state.
Since there are two possibilities for the first state and the second state, there are two implementations for determining whether the first application can run in the first state.
In a first implementation, the first state and the second state are specifically a first form and a second form, as shown in fig. 2 and 3.
When the first application is an application capable of operating in the first and second modalities, such as a chat application, a music player, a weather application, and the like, the electronic device may determine that the first application is capable of operating in the second modality.
On the contrary, when the first application is an application that can only run in the first form, such as a call application, the electronic device determines that the first application cannot run in the second form. In particular, since some applications, such as a conversation application, are difficult for a user to use in a tablet posture, the setting is made to be operable only in the first form.
In a second implementation manner, the first state and the second state are specifically a first operating mode and a second operating mode.
When the first application is an application capable of operating in the first operating mode and the second operating mode, the electronic device may determine that the first application is capable of operating in the second operating mode.
On the contrary, when the first application is an application that can only operate in the first working mode, the electronic device determines that the first application cannot operate in the second working mode.
For example, the first operation mode is assumed to be a mode after unlocking the screen, and the second operation mode is assumed to be a screen locking mode. Since the application cannot be run in the screen lock mode, the electronic device may determine that the first application cannot be run in the second operating mode. Then, assume that the first working mode is a standard electric quantity mode and the second working mode is a power saving mode. When the first application is the short message application, the short message application can run in the standard electric quantity mode and the power saving mode due to low power consumption, and therefore the electronic equipment judges that the first application can run in the second working mode. When the first application is a game application, the game application cannot run in the power saving mode and only can run in the standard power mode due to higher game power consumption, so that the electronic device judges that the first application cannot run in the second working mode.
Next, if the electronic device determines that the electronic device cannot operate based on the first operating parameter in the second state, the electronic device further obtains the second operating parameter from the second storage space and then operates based on the second operating parameter.
For example, the electronic device switches from the tablet configuration to the cell phone configuration at time T2. Before time T2, the electronic device runs the video player application and plays movie a for 50 minutes and 36 seconds. At time T2, the electronic device stores the second operating parameter of the tablet configuration. Wherein the second operating parameters include at least the video player, movie name a, and 50 minutes 36 seconds. Between the time T2 and the time T1, the electronic device in the form of a mobile phone runs a call application and makes a call with another electronic device. At time T1, the electronic device switches from the handset configuration back to the tablet configuration. The electronic equipment stores first working parameters of the mobile phone form. The first working parameter at least comprises a call application, a communication number, call time and the like.
The electronic equipment is difficult to hold and call due to the fact that the display area of the electronic equipment is large in the tablet form, so that the electronic equipment judges that the call application can only run in the mobile phone form, and further determines that the electronic equipment cannot run based on the first working parameter in the tablet form.
Further, the electronic device obtains a second operating parameter. And based on the parameters of the video player, the movie name a, 50 minutes and 36 seconds and the like in the second working parameter, the video player is quickly controlled to continue playing the movie from 50 minutes and 36 seconds of the movie a. Thus, the operating state of the electronic device is quickly restored to time T2.
In addition, after determining whether the electronic device is capable of operating based on the first operating parameter in the second state, the method further includes:
determining that the electronic device is capable of operating based on the first operating parameter in the second state;
obtaining the first working parameter from the first storage space;
and operating based on the first working state.
Specifically, if the electronic device determines that it is capable of operating in the second state based on the first operating parameter, the first operating parameter is obtained from the first storage space and operated based on the first operating parameter.
In the above example, it is assumed that between T2 and T1, the electronic device is running not a conversation application, but a chat application. At time T1, the electronic device switches from the handset configuration back to the tablet configuration. The electronic equipment stores first working parameters of the mobile phone form. The first working parameters at least comprise a chat application, a chat object name, a chat record and the like.
The electronic device determines that the electronic device can still run the chat application in the tablet configuration, i.e., the electronic device can run based on the first operating parameter. Therefore, the electronic device obtains the first working parameter from the first storage space, and further starts the chat application based on the first working parameter to recover the chat with the chat object.
As can be seen from the above description, after the state of the electronic device is switched to trigger the storage of the first working parameter or the second working parameter, if the electronic device can operate based on the first working parameter, the electronic device operates according to the first working parameter, so that the operating state of the electronic device is not affected after the state is switched, and the operating state before the switching can be continuously maintained; and if the electronic equipment cannot operate based on the first operating parameter, acquiring a second operating parameter operation corresponding to the second form. Therefore, after the state of the electronic device is switched, the operating state of the electronic device in the second state can be quickly recovered based on the second operating parameter.
Further, in this embodiment of the application, the first state is specifically a first operating mode, and the second state is specifically a second operating mode, and after it is determined that the electronic device is switched from the first operating mode to the second operating mode, the method may further include:
determining that the electronic device is switched from the first modality to the second modality.
Specifically, in the embodiment of the present application, after the electronic device switches the operation mode, it is possible to further switch the form, and therefore, after determining that the operation mode of the electronic device is switched, it is further detected whether the form of the electronic device is changed. The specific implementation manner for determining the form switching of the electronic device is described above, and is not repeated here.
Further, in the embodiment of the present application, after the electronic device switches the operating mode, and after the electronic device switches from the first mode to the second mode, when the electronic device switches back to the first operating mode again, the electronic device may still further determine whether the electronic device can operate based on the first operating parameter in the second mode and the first operating mode; determining that the electronic equipment cannot operate based on the first operating parameter in the second-form first operating mode; obtaining a second working parameter from a second storage space; and operating based on the second operating parameter.
Assume that the electronic device switches from the mode after unlocking the screen to the screen-locked mode at time T1. Before time T1, the device is in the form of a mobile phone, and the electronic device runs a call application. Therefore, the first operating parameters stored at time T1 include at least a call application, a communication number, a call time, and the like. At time T3 after T1, the electronic device switches from the cell phone configuration to the tablet configuration. At a time T4 after T3, the electronic device switches from the screen-locking mode back to the mode after unlocking the screen, and the electronic device determines that the call application cannot be run in the tablet configuration, thereby determining that the call application cannot be run based on the first operating parameter in the tablet configuration. Therefore, the electronic device obtains the second operating parameter and operates based on the second operating parameter.
Or, if it is determined that the electronic device is capable of operating in the second configuration, the first operating mode, based on the first operating parameters; obtaining a first working parameter from the first storage space; the operation is based on the first operating parameter.
Assume that the electronic device switches from the mode after unlocking the screen to the screen-locked mode at time T1. Before time T1, the device is in the form of a mobile phone, and the electronic device runs a chat application. Therefore, the first operating parameters stored at time T1 include at least chat application, chat object name, chat history, and the like. At time T3 after T1, the electronic device switches from the cell phone configuration to the tablet configuration. At a time T4 after T3, the electronic device is switched from the screen-locking mode to the mode after unlocking the screen, and the electronic device determines that the electronic device can run the chat application in the tablet configuration, and further determines that the electronic device can run based on the first operating parameter in the tablet configuration. Therefore, the electronic equipment obtains the first working parameter, runs the chat application based on the first working parameter and recovers the chat.
As can be seen from the above description, even when the operating mode of the electronic device is switched and the device form is switched, if the electronic device can operate based on the operating parameters before posture switching, the electronic device operates according to the operating parameters before form switching; and if the electronic equipment can not operate based on the working parameters before the form switching, the electronic equipment operates according to the working parameters after the form switching. Therefore, even if the mode is switched during the use process of the user, the working state before the mode switching can be quickly recovered as long as the mode is switched back to the required equipment form, so that the user can conveniently use the electronic equipment.
In another embodiment, after S102, the method may further include:
determining that the electronic device switches from the second state back to the first state;
judging that the electronic equipment is in the first form or the second form after being switched back to the first state from the second state;
if the electronic equipment is in the first form after being switched back to the first state from the second state, loading the first working parameter and operating based on the first working parameter;
and if the electronic equipment is in the second state after the electronic equipment is switched from the second state to the first state, loading the second working parameter and operating based on the second working parameter.
Specifically, during the use process, after the electronic device is switched from the first state to the second state, the user may also switch from the second state back to the first state. Therefore, after S102, it is also possible to determine that the electronic device switches back to the first state by detection. The manner of determining that the electronic device switches back to the first state is similar to the manner of detecting whether the electronic device switches to the second state, and therefore, the description is not repeated here.
Next, in order to determine whether to operate based on the first operating parameter or based on the second operating parameter, the electronic device further needs to determine whether the electronic device is in the first state or the second state after being switched back to the first state.
Specifically, if the form of the electronic device is switched by the flexible screen of the electronic device, the sensor can detect the curvature of the flexible screen, so as to determine whether the electronic device is in the first form or the second form after being switched to the second state.
Or if the posture is switched through the flexible hinge of the electronic equipment, the bending degree of the flexible hinge is detected through the sensor connected with the flexible hinge, and then the electronic equipment is determined to be in the first form or the second form.
In order to quickly recover the running state before the equipment form after the state switching, the working parameters are obtained from the storage space corresponding to the equipment form after the state switching. Specifically, if the electronic device is in the first form after being switched back to the first state from the second state, obtaining a first working parameter from a first storage space corresponding to the first form, and operating based on the first working parameter; and if the electronic equipment is in the second state after being switched back to the first state from the second state, obtaining the second operating parameter from the second storage space corresponding to the second state, and operating based on the second operating parameter.
For example, the electronic device switches back to the first state at a time T5 after T1, and the first state is specifically a tablet configuration. Therefore, the electronic device obtains the parameters of the video player, the movie name a, 50 minutes and 36 seconds and the like in the second working parameter from the second storage space corresponding to the tablet form, and quickly controls the video player to continue playing the movie from 50 minutes and 36 seconds of the movie a. Thus, the operating state of the electronic device is quickly restored to time T2.
Based on the same inventive concept as the information processing method in the foregoing embodiment, a second aspect of the present application further provides an electronic device, as shown in fig. 4, including:
a first determining unit 401, configured to determine that the electronic device is switched from a first state to a second state different from the first state; wherein the device form of the electronic device can be a first form and a second form different from the first form;
a storage unit 402, configured to store a first operating parameter corresponding to the first form to update an operating parameter corresponding to the first form if the electronic device is in the first form before the electronic device is switched from the first state to the second state; if the electronic device is in the second state before the electronic device is switched from the first state to the second state, the electronic device is configured to store a second operating parameter corresponding to the second state, so as to update the operating parameter corresponding to the second state.
Specifically, the storage unit 402 is configured to store the first operating parameter in a first storage space, where the first storage space is used to store the operating parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space; or storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
Further, the electronic device further includes:
a first determination unit configured to determine whether the electronic device is operable based on a first operating parameter in the second state after storing the first operating parameter corresponding to the first state or storing a second operating parameter corresponding to the second state;
a second determination unit, configured to determine that the electronic device cannot operate based on the first operating parameter in the second state;
a second parameter obtaining unit, configured to obtain the second operating parameter from the second storage space;
and the second operation unit is used for operating based on the second working parameter.
Specifically, the first determination unit 401 is configured to determine that the electronic device is switched from the first form to the second form; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
Further, the electronic device further includes:
a third determining unit, configured to determine that the electronic device is switched from the first form to the second form after determining that the electronic device is switched from a first operating mode to a second operating mode different from the first operating mode.
Still further, the electronic device further includes:
a fourth determination unit, configured to determine that the electronic device is operable in the second state based on the first operating parameter after determining whether the electronic device is operable in the second state based on the first operating parameter;
a first parameter obtaining unit, configured to obtain the first operating parameter from the first storage space;
and the first operation unit is used for operating based on the first working state.
Still further, the electronic device further includes:
a fifth determining unit, configured to determine that the electronic device switches from the second state to the first state after storing the first operating parameter corresponding to the first form or storing the second operating parameter corresponding to the second form;
a second determining unit, configured to determine that the electronic device is in the first form or the second form after being switched from the second state to the first state;
a third operation unit, configured to obtain the first working parameter and operate based on the first working parameter if the electronic device is in the first state after being switched from the second state to the first state; and if the electronic equipment is in the second state after being switched back to the first state from the second state, the electronic equipment is used for obtaining the second working parameter and operating based on the second working parameter.
Various changes and specific examples of the information processing method in the foregoing embodiments of fig. 1 to 3 are also applicable to the electronic device of this embodiment, and those skilled in the art can clearly know the implementation method of the electronic device in this embodiment through the foregoing detailed description of the information processing method, so that the detailed description is omitted here for the sake of brevity of the description.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
in the technical scheme of the embodiment of the application, the electronic equipment is determined to be switched from a first state to a second state different from the first state; the device form of the electronic device can be a first form and a second form different from the first form; if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form; if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing the second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state. Because the electronic device in the embodiment of the application stores the working parameters respectively corresponding to different forms when storing the working parameters, the technical effect of storing the working parameters of different forms respectively is achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable information processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable information processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to an information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the computer program instructions corresponding to the first information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
determining that an electronic device switches from a first state to a second state different from the first state; wherein the device form of the electronic device can be a first form and a second form different from the first form;
if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form;
if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing a second working parameter corresponding to the second state so as to update the working parameter corresponding to the second state.
Optionally, the first operating parameter corresponding to the first form is stored in the storage medium, and the corresponding computer instruction specifically includes the following steps in a specific executed process:
storing the first working parameter in a first storage space, wherein the first storage space is used for storing the working parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space;
the storage medium stores a second working parameter corresponding to the second form, and the corresponding computer instruction specifically comprises the following steps in the specific executed process:
storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space. Then executed, comprising the steps of:
judging whether the electronic equipment can operate based on the first working parameter in the second state;
determining that the electronic device is unable to operate based on the first operating parameter in the second state;
obtaining the second working parameter from the second storage space;
operating based on the second operating parameter.
Optionally, the step of determining that the electronic device is switched from the first state to the second state different from the first state stored in the storage medium specifically includes, in a specific executed process, the following steps:
determining that the electronic device is switched from the first form to the second form; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or
Determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: the electronic equipment is determined to be executed after being switched from a first working mode to a second working mode different from the first working mode, and the electronic equipment comprises the following steps when being executed:
determining that the electronic device is switched from the first modality to the second modality.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: judging whether the electronic equipment can be executed after running based on the first working parameter in the second state, wherein the method comprises the following steps:
determining that the electronic device is capable of operating based on the first operating parameter in the second state;
obtaining the first working parameter from the first storage space;
and operating based on the first working state.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: the method is executed after storing a first working parameter corresponding to the first form or storing a second working parameter corresponding to the second form, and comprises the following steps when executed:
determining that the electronic device switches from the second state back to the first state;
judging that the electronic equipment is in the first form or the second form after being switched back to the first state from the second state;
if the electronic equipment is in the first form after being switched back to the first state from the second state, obtaining the first working parameter and operating based on the first working parameter;
and if the electronic equipment is in the second state after the electronic equipment is switched from the second state to the first state, acquiring the second working parameter and operating based on the second working parameter.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (14)
1. An information processing method comprising:
determining that an electronic device switches from a first state to a second state different from the first state; before the electronic equipment is switched from a first state to a second state, the equipment form of the electronic equipment can be in a first form and a second form different from the first form;
if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state, storing a first working parameter corresponding to the first form so as to update the working parameter corresponding to the first form;
if the electronic equipment is in the second state before the electronic equipment is switched from the first state to the second state, storing a second working parameter corresponding to the second state to update the working parameter corresponding to the second state;
the electronic equipment can operate with the stored first working parameter or the second working parameter after switching the state.
2. The method of claim 1, wherein storing the first operating parameter corresponding to the first modality comprises:
storing the first working parameter in a first storage space, wherein the first storage space is used for storing the working parameter corresponding to the first form; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space;
storing a second operating parameter corresponding to the second modality, including:
storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
3. The method of claim 2, further comprising, after storing the first operating parameter corresponding to the first modality, or storing the second operating parameter corresponding to the second modality:
judging whether the electronic equipment can operate based on the first working parameter in the second state;
determining that the electronic device is unable to operate based on the first operating parameter in the second state;
obtaining the second working parameter from the second storage space;
operating based on the second operating parameter.
4. The method of claim 2, wherein determining that the electronic device switches from a first state to a second state different from the first state comprises:
determining that the electronic device is switched from the first modality to the second modality; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or
Determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
5. The method of claim 4, after determining that the electronic device is switched from a first operating mode to a second operating mode different from the first operating mode, further comprising:
determining that the electronic device is switched from the first modality to the second modality.
6. The method of claim 4 or 5, after determining whether the electronic device is capable of operating based on the first operating parameter in the second state, further comprising:
determining that the electronic device is capable of operating based on the first operating parameter in the second state;
obtaining the first working parameter from the first storage space;
and operating based on the first working state.
7. The method of claim 2, further comprising, after storing the first operating parameter corresponding to the first modality, or storing the second operating parameter corresponding to the second modality:
determining that the electronic device switches from the second state back to the first state;
judging that the electronic equipment is in the first form or the second form after being switched back to the first state from the second state;
if the electronic equipment is in the first form after being switched back to the first state from the second state, obtaining the first working parameter and operating based on the first working parameter;
and if the electronic equipment is in the second state after the electronic equipment is switched from the second state to the first state, acquiring the second working parameter and operating based on the second working parameter.
8. An electronic device, comprising:
a first determination unit configured to determine that the electronic device is switched from a first state to a second state different from the first state; before the electronic equipment is switched from a first state to a second state, the equipment form of the electronic equipment can be in a first form and a second form different from the first form;
the storage unit is used for storing a first working parameter corresponding to the first form to update the working parameter corresponding to the first form if the electronic equipment is in the first form before the electronic equipment is switched from the first state to the second state; if the electronic device is in the second state before the electronic device is switched from the first state to the second state, storing a second operating parameter corresponding to the second state to update the operating parameter corresponding to the second state;
the electronic equipment can operate with the stored first working parameter or the second working parameter after switching the state.
9. The electronic device of claim 8, wherein the storage unit is configured to store the first operating parameter in a first storage space, and the first storage space is configured to store the operating parameter corresponding to the first modality; wherein the electronic device comprises at least two storage spaces, the at least two storage spaces comprising the first storage space; or storing the second working parameter in a second storage space, wherein the second storage space is used for storing the working parameter corresponding to the second form; wherein the at least two storage spaces include the second storage space, and the second storage space is different from the first storage space.
10. The electronic device of claim 9, wherein the electronic device further comprises:
a first determination unit configured to determine whether the electronic device is operable based on a first operating parameter in the second state after storing the first operating parameter corresponding to the first state or storing a second operating parameter corresponding to the second state;
a second determination unit, configured to determine that the electronic device cannot operate based on the first operating parameter in the second state;
a second parameter obtaining unit, configured to obtain the second operating parameter from the second storage space;
and the second operation unit is used for operating based on the second working parameter.
11. The electronic device of claim 9, wherein the first determining unit is configured to determine that the electronic device is switched from the first form to the second form; when the electronic device is in the first form, a first position of the electronic device is bent, and when the electronic device is in the second form, the first position is flat; or determining that the electronic equipment is switched from a first working mode to a second working mode different from the first working mode.
12. The electronic device of claim 11, wherein the electronic device further comprises:
a third determining unit, configured to determine that the electronic device is switched from the first form to the second form after determining that the electronic device is switched from a first operating mode to a second operating mode different from the first operating mode.
13. The electronic device of claim 11 or 12, wherein the electronic device further comprises:
a fourth determination unit, configured to determine that the electronic device is operable in the second state based on the first operating parameter after determining whether the electronic device is operable in the second state based on the first operating parameter;
a first parameter obtaining unit, configured to obtain the first operating parameter from the first storage space;
and the first operation unit is used for operating based on the first working state.
14. The electronic device of claim 9, wherein the electronic device further comprises:
a fifth determining unit, configured to determine that the electronic device switches from the second state to the first state after storing the first operating parameter corresponding to the first form or storing the second operating parameter corresponding to the second form;
a second determining unit, configured to determine that the electronic device is in the first form or the second form after being switched from the second state to the first state;
a third operation unit, configured to obtain the first working parameter and operate based on the first working parameter if the electronic device is in the first state after being switched from the second state to the first state; and if the electronic equipment is in the second state after being switched back to the first state from the second state, the electronic equipment is used for obtaining the second working parameter and operating based on the second working parameter.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610109469.8A CN107133021B (en) | 2016-02-26 | 2016-02-26 | Information processing method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610109469.8A CN107133021B (en) | 2016-02-26 | 2016-02-26 | Information processing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107133021A CN107133021A (en) | 2017-09-05 |
| CN107133021B true CN107133021B (en) | 2021-01-15 |
Family
ID=59720650
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610109469.8A Active CN107133021B (en) | 2016-02-26 | 2016-02-26 | Information processing method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107133021B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110704008B (en) * | 2019-09-30 | 2021-07-16 | 联想(北京)有限公司 | Data reading and writing method and device |
| JP2023170481A (en) * | 2022-05-19 | 2023-12-01 | 株式会社デンソー | In-vehicle communication apparatus and push server |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102187296A (en) * | 2008-09-08 | 2011-09-14 | 高通股份有限公司 | Sending parameters based on screen size or screen resolution of the multi-panel electronic device to the server |
| CN103297606A (en) * | 2012-03-05 | 2013-09-11 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
| CN103688238A (en) * | 2012-05-25 | 2014-03-26 | 松下电器产业株式会社 | Information processing device, information processing method, and information processing program |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8943434B2 (en) * | 2010-10-01 | 2015-01-27 | Z124 | Method and apparatus for showing stored window display |
| CN104077017B (en) * | 2013-03-29 | 2018-01-23 | 联想(北京)有限公司 | A kind of electronic equipment and control method |
-
2016
- 2016-02-26 CN CN201610109469.8A patent/CN107133021B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102187296A (en) * | 2008-09-08 | 2011-09-14 | 高通股份有限公司 | Sending parameters based on screen size or screen resolution of the multi-panel electronic device to the server |
| CN103297606A (en) * | 2012-03-05 | 2013-09-11 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
| CN103688238A (en) * | 2012-05-25 | 2014-03-26 | 松下电器产业株式会社 | Information processing device, information processing method, and information processing program |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107133021A (en) | 2017-09-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10528434B2 (en) | Method, device and terminal for restoring firmware program | |
| CN104050035B (en) | The processing method and processing device of application program | |
| CN105955765B (en) | Application preloading method and device | |
| CN104375828B (en) | Memory Optimize Method and device | |
| US11202066B2 (en) | Video data encoding and decoding method, device, and system, and storage medium | |
| CN105117211B (en) | The method and device of prompting message | |
| EP2990949B1 (en) | Methods and devices for backing up file | |
| US20220070523A1 (en) | Audio and video processing method and apparatus, terminal and storage medium | |
| CN110785996B (en) | Dynamic control of camera resources in devices with multiple displays | |
| CN106507204B (en) | Video reverse playing method and device | |
| CN106547663B (en) | Key management method and device | |
| CN105556419B (en) | Scene power management | |
| KR102013373B1 (en) | Method, apparatus and recovering medium for interworking with external terminal | |
| CN105653323A (en) | Application program management method and device | |
| CN110166776B (en) | Video encoding method, device and storage medium | |
| CN104156236A (en) | Storage space saving method and device | |
| CN107272896B (en) | Method and device for switching between VR mode and non-VR mode | |
| US11756586B2 (en) | Method for splicing audio file and computer device | |
| CN107832111A (en) | Game application control method and device | |
| CN105100915A (en) | Method and television for switching audio video application | |
| CN104123075B (en) | The method of control terminal and device | |
| CN107133021B (en) | Information processing method and electronic equipment | |
| CN104714826A (en) | Application theme loading method and device | |
| CN107890667A (en) | Game application program control method and device | |
| CN110989816A (en) | Application processing method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |