Application processing method, device and system[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of communications technologies, and in particular, to an application processing method, apparatus, and system.
[ background of the invention ]
Currently, after a user uses a mobile terminal for a period of time, some previous settings may cause inconvenience in the use of some applications, which may affect the user experience of the applications. However, the user often does not know which settings will cause inconvenience, and therefore, the application is often restored to the default settings, that is, the item state of the application is restored to the default state when the mobile terminal is turned on.
However, in the prior art, after the application is restored to the default setting, there are some settings or the default state is not restored, the settings are often owned by other applications, and since the settings do not belong to the application, the default setting is only restored to the application, so that the restoration of the default setting is incomplete, and the use of the mobile terminal is still affected.
[ summary of the invention ]
In view of this, embodiments of the present invention provide an application processing method, apparatus, and system, so as to solve the problem that the restoration of default settings is incomplete in the prior art, which may affect the use of a mobile terminal.
In a first aspect, an embodiment of the present invention provides an application processing method, which is applied to a system including a first application and a second application; the method comprises the following steps:
receiving a default restoration instruction of a user, wherein a first application restores a set value of a first designated item in the first application to a default value of the first designated item;
the first application determines a second designated item, the second designated item being related to the first designated item and the second designated item belonging to a second application;
the first application sends a broadcast message to the second application;
and the second application receives the broadcast message and restores the setting value of the second specified item to the default value of the second specified item according to the broadcast message.
In a second aspect, an embodiment of the present invention provides an application processing method, applied to a first application, including:
receiving a default restoration instruction of a user, and restoring the set value of a first specified item in the first application to the default value of the first specified item;
determining a second designated item, the second designated item being related to the first designated item and the second designated item belonging to a second application;
sending a broadcast message to the second application.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, wherein restoring the setting value of the first specified item in the first application to the default value of the first specified item includes:
modifying a setting value of a first specified item stored in a specified file in the first application to a default value of the first specified item; or deleting the setting value of a first designated item stored in a designated file in the first application, and generating the setting value of the first designated item in the designated file in the first application according to the state of the mobile terminal where the first application is positioned when the mobile terminal is started for the first time;
wherein the specified file comprises at least one of an XML file, a file in a database, and a generated file.
The above aspect and any possible implementation manner further provide an implementation manner, where the second application includes all applications except the first application in the mobile terminal where the first application is located; or,
the second application comprises part of applications except the first application in the terminal where the first application is located.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the broadcast message carries an identifier of the second application and a list of second specified items in the second application, where a default value needs to be restored.
In a third aspect, an embodiment of the present invention provides an application processing method, applied to a second application, including:
receiving a broadcast message sent by a first application;
and restoring the set value of the second specified item of the second application to the default value of the second specified item according to the broadcast message.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the broadcast message carries an identifier of the second application and a list of second specified items in the second application, where a default value needs to be restored.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner that, according to the broadcast message, the restoring the setting value of the second specified item of the second application to the default value of the second specified item includes:
judging whether the identifier of the second application carried in the broadcast message contains the identifier of the second application;
and if the identifier of the second application carried in the broadcast message contains the identifier of the second application, acquiring a list of second specified items of which the default values need to be recovered in the second application from the broadcast message, and modifying the setting values of the second specified items in the list into the default values of the second specified items.
In a fourth aspect, an embodiment of the present invention provides an application processing system, including a first application and a second application:
the first application is used for receiving a default restoration instruction of a user and restoring the set value of a first specified item in the first application to the default value of the first specified item; and determining a second specified item, the second specified item being related to the first specified item and the second specified item belonging to the second application;
the first application is further used for sending a broadcast message to the second application;
and the second application is used for receiving the broadcast message and restoring the setting value of the second specified item to the default value of the second specified item according to the broadcast message.
In a fifth aspect, an embodiment of the present invention provides an application processing apparatus, configured to a first application, including:
the receiving unit is used for receiving a default recovery instruction of a user;
the processing unit is used for restoring the set value of a first specified item in the first application to the default value of the first specified item;
an obtaining unit, configured to determine a second specified item, where the second specified item is related to the first specified item, and the second specified item belongs to a second application;
a transmitting unit, configured to transmit a broadcast message to the second application.
The above aspect and any possible implementation manner further provide an implementation manner, where the second application includes all applications except the first application in the mobile terminal where the first application is located; or,
the second application comprises part of applications except the first application in the mobile terminal where the first application is located.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the broadcast message carries an identifier of the second application and a list of second specified items in the second application, where a default value needs to be restored.
In a sixth aspect, an embodiment of the present invention provides an application processing apparatus, configured to a second application, including:
a receiving unit, configured to receive a broadcast message sent by a first application;
and the processing unit is used for restoring the set value of a second specified item of the second application to the default value of the second specified item according to the broadcast message.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the broadcast message carries an identifier of the second application and a list of second specified items in the second application, where a default value needs to be restored.
The above-described aspect and any possible implementation further provide an implementation, where the processing unit is specifically configured to:
judging whether the identifier of the second application carried in the broadcast message contains the identifier of the second application;
and if the identifier of the second application carried in the broadcast message contains the identifier of the second application, acquiring a list of second specified items of which the default values need to be recovered in the second application from the broadcast message, and modifying the setting values of the second specified items in the list into the default values of the second specified items.
One of the above technical solutions has the following beneficial effects:
the application processing method provided by the embodiment of the invention is applied to a system comprising a first application and a second application; specifically, when a default restoring instruction of a user is received, the first application restores the setting value of the first specified item in the first application to the default value of the first specified item; then, the first application determines a second specified item, the second specified item being related to the first specified item, and the second specified item belonging to the second application; then, the first application sends a broadcast message to the second application; finally, the second application receives the broadcast message and restores the setting value of the second designated item to the default value of the second designated item according to the broadcast message. In the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is an interaction diagram of an application processing method provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first embodiment of an application processing method according to the present invention;
fig. 3 is a schematic flowchart of a second embodiment of an application processing method according to the present invention;
FIG. 4 is a functional block diagram of an application processing system according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a first embodiment of an application processing apparatus according to the present invention;
fig. 6 is a functional block diagram of a second embodiment of an application processing apparatus according to the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes 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.
It should be understood that although the terms first, second, third, etc. may be used in describing applications, etc., in embodiments of the present invention, these applications, etc. should not be limited to these terms. These terms are only used to distinguish one application from another. For example, a first application may also be referred to as a second application, and similarly, a second application may also be referred to as a first application, without departing from the scope of embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Example one
In order to solve the above problems in the prior art, an embodiment of the present invention provides an application processing method. The method is applied to a system comprising a first application and a second application. The number of the second applications is at least one, and the specific number of the second applications is not particularly limited in the present invention.
Specifically, please refer to fig. 1, which is an interaction diagram of an application processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, receiving a default restoring instruction of a user, and restoring the setting value of the first designated item in the first application to the default value of the first designated item by the first application.
It is to be understood that the user, when issuing the default restoring instruction, indicates that all the settings in the first application are to be restored to the default settings, that is, the first designated item in the first application is to be restored from the setting values to the default values. The default value is a default value in a default setting state in the first application when the mobile terminal is started for the first time, and the setting value is a value obtained after a user modifies a first designated item in the first application according to the user's own needs.
S102, the first application determines a second designated item, the second designated item is related to the first designated item, and the second designated item belongs to the second application.
Specifically, a large number of setting states exist in the mobile terminal, which are related to default values of setting (settings) applications of the mobile terminal, and a large number of setting states are related to android basic core applications of the mobile terminal, such as settings provider and framework; and the state of the part of the setting can not be recovered in the process of recovering the default setting by the first application. Based on this, in order to avoid a situation where the default settings are not comprehensive, it is necessary to determine these items, i.e., the second designated item, in the mobile terminal.
It should be noted that the number of the second designated items is at least one, and the second designated items may include, but are not limited to: setting items and/or function items. For example, the setting items may include, but are not limited to: sending information setting, receiving information setting, notification setting, prompt setting and the like; the function items may include: turning functions on or off, etc.
S103, the first application sends a broadcast message to the second application.
The broadcast message is used to inform the second application to restore the setting value of the second specified item to the default value of the second specified item. Therefore, the broadcast message sent by the first application carries data that the default setting value of the first application is to be restored to the default setting state in the second application.
And S104, the second application receives the broadcast message and restores the setting value of the second specified item to the default value of the second specified item according to the broadcast message.
It should be noted that the mobile terminal according to the embodiment of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the application processing method provided by the embodiment of the invention is applied to a system comprising a first application and a second application; specifically, when a default restoring instruction of a user is received, the first application restores the setting value of the first specified item in the first application to the default value of the first specified item; then, the first application determines a second specified item, the second specified item being related to the first specified item, and the second specified item belonging to the second application; then, the first application sends a broadcast message to the second application; finally, the second application receives the broadcast message and restores the setting value of the second designated item to the default value of the second designated item according to the broadcast message. In the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
Example two
In order to solve the above problems in the prior art, an embodiment of the present invention provides an application processing method. The method is applied to a first application.
Specifically, referring to fig. 2, which is a schematic flow chart of a first embodiment of an application processing method according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
s201, receiving a default restoration instruction of a user, and restoring the setting value of the first specified item in the first application to the default value of the first specified item.
Specifically, after receiving a default restoration instruction from a user, a first application restores a first specified item in the first application to a default value from a set value, and the embodiment of the present invention provides the following two specific implementation manners:
first, a setting value of a first specified item stored in a specified file in a first application is modified to a default value of the first specified item.
And secondly, deleting the setting value of the first designated item stored in the designated file in the first application, and generating the setting value of the first designated item in the designated file in the first application according to the state of the first application when the mobile terminal is started for the first time.
It should be noted that the specific file includes at least one of an XML file, a file in a database, and a generated file.
S202, a second designated item is determined, wherein the second designated item is related to the first designated item, and the second designated item belongs to a second application.
S203, sending the broadcast message to the second application.
It should be noted that the second application identified in the embodiment of the present invention may have the following two cases:
first, the second application includes all applications except the first application in the mobile terminal where the first application is located.
At this time, a broadcast message is transmitted to all applications except itself in the mobile terminal.
And secondly, the second application comprises a part of the application except the first application in the terminal where the first application is located.
At this time, the broadcast message may be sent to all applications except the mobile terminal, so that the first application may send the broadcast message to the second application.
Alternatively, it is also possible to previously designate a second application related to a first designated item in the first application and then directly transmit the broadcast message to the determined second application, in which case the broadcast message is not transmitted to applications other than itself and the second application.
In the embodiment of the present invention, the data of the first application default setting value carried in the broadcast message to be restored to the default setting state in the second application may include, but is not limited to, the following two parts:
a first portion, an identification of a second application.
In a specific implementation process, the identifier of the second application may be a package name list of the application, and the package name list may include a package name (list _ packages _ name) of each application.
And in the second part, the list (list _ keys _ name) of the second specified items in the default setting needs to be restored in the second application.
Specifically, the list of the second specified items in the second application that need to restore the default setting may include, but is not limited to: setting items and/or function items.
For example, in a specific implementation process, if the received default instruction for recovery is sent for an information application in the mobile terminal, the information application is the first application in the embodiment of the present invention. S202 determines that there are three second specified items of the default setting state, which are: an EMERGENCY message (EMERGENCY _ response _ SMS _ CONTENT), whether the EMERGENCY message is on (EMERGENCY _ response _ SMS _ ENABLE), and the number of times of EMERGENCY transmission (EMERGENCY _ response _ SMS _ response). Specifically, the default settings for these three second designated items are stored in the db database of the SettingProvider (package name: com. android. providers. settings) application. Therefore, after the above S202 is executed, list _ packages _ name { "com.android.providers.settings" } new String [ ] can be obtained; list _ keys _ name { "error _ response _ SMS _ CONTENT, error _ response _ SMS _ ENABLE, error _ response _ SMS _ FREQUENCY" } two data lists, then add the data in the two data lists to the broadcast message, and finally broadcast the broadcast message to all applications in the mobile terminal. Thus, after the second application related to the second designated item receives the broadcast message, the setting value of the second designated item can be restored to the default value according to the information carried in the broadcast message.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
EXAMPLE III
In order to solve the above problems in the prior art, an embodiment of the present invention provides an application processing method. The method is applied to a second application.
Specifically, referring to fig. 3, which is a schematic flow chart of a second embodiment of the application processing method according to the embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
s301, receiving a broadcast message sent by a first application.
In the embodiment of the invention, all the applications in the mobile terminal can receive the broadcast for recovering the default setting, therefore, when a second application receives the broadcast for recovering the default setting, the second application can asynchronously filter the state value of a second specified item which needs to recover the default setting by the application of the second application, the realization and processing logic is clear and simple, and the influence on the use of the mobile terminal can not be generated.
And S302, restoring the set value of the second specified item of the second application to the default value of the second specified item according to the broadcast message.
In the embodiment of the present invention, the broadcast message carries data that the default setting value of the first application is to be restored to the default setting state in the second application, and the data may include, but is not limited to, the following two parts:
a first portion, an identification of a second application.
In a specific implementation process, the identifier of the second application may be a package name list of the application, and the package name list may include a package name (list _ packages _ name) of each application.
And in the second part, the list (list _ keys _ name) of the second specified items in the default setting needs to be restored in the second application.
Specifically, the list of the second specified items in the second application that need to restore the default setting may include, but is not limited to: setting items and/or function items.
In a specific implementation process, restoring the setting value of the second specified item of the second application to the default value of the second specified item according to the broadcast message may include the following steps:
judging whether the identifier of the second application carried in the broadcast message contains the identifier of the second application;
and if the identifier of the second application carried in the broadcast message contains the identifier of the second application, acquiring a list of second specified items of which the default values need to be recovered in the second application from the broadcast message, and modifying the setting values of the second specified items in the list into the default values of the second specified items.
Or, when the identifier of the second application carried in the broadcast message does not include the identifier of the second application, it indicates that the second application does not include the second specified item related to the first specified item, and at this time, no other processing is performed.
Still taking the above example as an example for specific explanation, since the broadcast message carries list _ packages _ name and list _ keys _ name, in the embodiment of the present invention, after receiving the broadcast message, the second application may compare or search the packet name in the list of list _ packages _ name with the packet name (com.android.providers.settings) in its own application, and when determining that the packet name in the list _ packages _ name carried in the broadcast message includes the own application packet name, restore the second specified item (emergency rescue short message, whether the emergency rescue short message is turned on, and the number of times of emergency rescue transmission) indicated in the list _ keys _ name to the default value correspondingly, specifically, restore the setting values of the three second specified items in the db database of the second application itself to the default values.
It can be understood that the implementation manner of restoring the second specified item from the setting value to the default value in the second application may also be implemented by the implementation manner of restoring the first specified item from the setting value to the default value in the first application, which is not described again in the embodiment of the present invention.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
Example four
Based on the application processing method provided in the first embodiment, the embodiment of the present invention further provides an embodiment of an apparatus for implementing each step and method in the above method embodiment.
Specifically, please refer to fig. 4, which is a functional block diagram of an application processing system according to an embodiment of the present invention. As shown in fig. 4, the apparatus includes: first application 41 and second application 42:
the first application 41 is configured to receive a default restoring instruction of a user, and restore a setting value of a first specified item in the first application 41 to a default value of the first specified item; and determining a second specified item, the second specified item being related to the first specified item and the second specified item belonging to the second application 42;
a first application 41, also for sending broadcast messages to a second application 42;
and a second application 42 for receiving the broadcast message and restoring the setting value of the second designated item to a default value of the second designated item according to the broadcast message.
Since each unit in the present embodiment can execute the method shown in fig. 1, reference may be made to the related description of fig. 1 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
Example four
Based on the application processing method provided in the second embodiment, embodiments of the apparatus for implementing the steps and methods in the second embodiment of the present invention are further provided.
Specifically, please refer to fig. 5, which is a functional block diagram of an application processing apparatus according to a first embodiment of the present invention. As shown in fig. 5, the apparatus is provided in a first application, and includes:
a receiving unit 51, configured to receive a default recovery instruction from a user;
a processing unit 52, configured to restore the setting value of the first specified item in the first application to the default value of the first specified item;
an obtaining unit 53, configured to determine a second specified item, where the second specified item is related to the first specified item, and the second specified item belongs to a second application;
a sending unit 54, configured to send the broadcast message to the second application.
Specifically, in the embodiment of the present invention, the second application includes all applications except the first application in the mobile terminal where the first application is located; or,
the second application comprises a part of the application except the first application in the mobile terminal where the first application is located.
In the embodiment of the invention, the broadcast message carries the identifier of the second application and a list of second specified items in the second application, which need to recover the default value.
Since each unit in the present embodiment can execute the method shown in fig. 2, reference may be made to the related description of fig. 2 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
EXAMPLE six
Based on the application processing method provided in the third embodiment, embodiments of the apparatus for implementing the steps and methods in the third embodiment of the present invention are further provided.
Specifically, please refer to fig. 6, which is a functional block diagram of a second embodiment of an application processing apparatus according to the present invention. As shown in fig. 6, the apparatus is provided for a second application, and includes:
a receiving unit 61, configured to receive a broadcast message sent by a first application;
a processing unit 62, configured to restore the setting value of the second specified item of the second application to the default value of the second specified item according to the broadcast message.
In the embodiment of the invention, the broadcast message carries the identifier of the second application and a list of second specified items in the second application, which need to recover the default value.
In a specific implementation, the processing unit 62 is specifically configured to:
judging whether the identifier of the second application carried in the broadcast message contains the identifier of the second application;
and if the identifier of the second application carried in the broadcast message contains the identifier of the second application, acquiring a list of second specified items of which the default values need to be recovered in the second application from the broadcast message, and modifying the setting values of the second specified items in the list into the default values of the second specified items.
Since each unit in the present embodiment can execute the method shown in fig. 3, reference may be made to the related description of fig. 3 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a default recovery instruction of a user is received, a first application recovers a specified item of the first application to a default value according to the instruction, and then, after a second specified item in other applications related to the first application is determined, the second specified item is recovered to the default value by a second application in a mode of sending a broadcast message; therefore, when the default setting is recovered, the mobile terminal can not only recover the relevant setting of the first application to the default state, but also recover all relevant items in the second application relevant to the first application in the mobile terminal to the default state, so that the mobile terminal can be more comprehensively executed in the process of recovering the default setting, and further, the problem of system failure caused by the fact that some default settings are not recovered in other applications is avoided. Therefore, the technical scheme provided by the embodiment of the invention solves the problem that the use of the mobile terminal is influenced due to incomplete recovery of default settings in the prior art.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.