Disclosure of Invention
The invention provides a short message processing method and a terminal, aiming at improving the convenience and efficiency of short message management of terminal equipment.
A first aspect of the embodiments of the present invention provides a short message processing method, including:
the method comprises the steps that the terminal detects whether an application icon of a short message application installed in an ith domain currently running by the terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
when the application icon of the short message application is selected, the terminal displays the content information of the short message in a content interface of the short message application;
the short message receiving domain management service of the application layer of the terminal determines that a receiving domain corresponding to the short message is the ith domain and then stores the receiving domain in the short message application installed in the ith domain according to the mapping relation between the characteristic information of the short message preset by a user and the N domains and the characteristic information of the received short message.
In the embodiment of the invention, the terminal firstly detects whether an application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in a content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
In a first possible implementation manner of the first aspect of the present invention, before detecting whether an application icon of a short message application installed in an ith domain currently running in a terminal is selected, the method further includes:
the method comprises the steps that a terminal detects whether an application icon of a short message application installed in the ith domain in a feature information associated domain setting interface of a preset feature information set is selected or not, wherein the preset feature information set comprises feature information of a short message;
when an application icon of a short message application installed in the ith domain in a feature information associated domain setting interface is selected, the terminal establishes a mapping relation between the short message application and a feature information set;
in the embodiment of the invention, a user can independently and conveniently establish the mapping relation between the short message application and the characteristic information set through the characteristic information associated domain setting interface, so that the convenience of short message management of the terminal is improved.
Or,
the terminal detects whether an identifier of a preset feature information set in an associated feature information setting interface of a short message application installed in the ith domain is selected, wherein the preset feature information set comprises feature information of the jth short message;
and when the mark of the preset characteristic information set in the associated characteristic information setting interface is selected, the terminal establishes the mapping relation between the short message application and the characteristic information set.
In the embodiment of the invention, a user can independently and conveniently establish the mapping relation between the short message application and the characteristic information set through the associated characteristic information setting interface, so that the convenience of short message management of the terminal is improved.
With reference to the first aspect of the present invention or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect of the present invention, before detecting whether an application icon of a short message application in a display interface corresponding to an ith domain currently running in a terminal is selected, the method further includes:
the terminal receives the short message;
the terminal determines a receiving domain corresponding to the short message as an ith domain according to the mapping relation between the characteristic information of the short message preset by a user and the N domains and the characteristic information of the received short message through a short message receiving domain management service of an application layer;
the terminal detects whether a current running domain of the terminal is the ith domain;
and when the current operation domain of the terminal is the ith domain, storing the short message in the short message application installed in the ith domain.
With reference to the second possible implementation manner of the first aspect of the present invention, in a third possible implementation manner of the first aspect of the present invention, the method further includes:
when the current operation domain of the terminal is not the ith domain, the terminal switches the current operation domain of the terminal to be the ith domain;
and the terminal stores the short message in the short message application installed in the ith domain.
With reference to the first aspect or the first or second or third possible implementation manner of the first aspect of the present invention, in a fourth possible implementation manner of the first aspect of the present invention,
the short message receiving domain management service of the application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file storing the short message receiving domain management service.
A second aspect of the present invention provides a terminal, including:
the detection unit is used for detecting whether an application icon of a short message application installed in an ith domain currently operated by the terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
the display unit is used for displaying the content information of the short message in a content interface of the short message application when the application icon of the short message application is selected;
the short message receiving domain management service of the application layer of the terminal determines that a receiving domain corresponding to the short message is the ith domain and then stores the receiving domain in the short message application installed in the ith domain according to the mapping relation between the characteristic information of the short message preset by a user and the N domains and the characteristic information of the received short message.
In the embodiment of the invention, the terminal firstly detects whether an application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in a content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
In a first possible implementation of the second aspect of the invention,
the detection unit is further configured to detect whether an application icon of the short message application installed in the ith domain in a feature information associated domain setting interface of a preset feature information set is selected before detecting whether the application icon of the short message application installed in the ith domain currently running in the terminal is selected, wherein the preset feature information set includes feature information of the short message;
the terminal further includes:
the first establishing unit is used for establishing a mapping relation between the short message application and the characteristic information set when an application icon of the short message application installed in the ith domain in the characteristic information associated domain setting interface is selected;
or,
the detection unit is further configured to detect whether an identifier of a preset feature information set in an associated feature information setting interface of the short message application installed in the ith domain is selected before detecting whether an application icon of the short message application installed in the ith domain currently running in the terminal is selected, wherein the preset feature information set includes feature information of the jth short message;
the terminal further includes:
and the second establishing unit is used for establishing the mapping relation between the short message application and the characteristic information set when the mark of the preset characteristic information set in the associated characteristic information setting interface is selected.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect of the present invention, the terminal further includes:
the receiving unit is used for receiving the short message before the detection unit detects whether an application icon of the short message application in a display interface corresponding to the ith domain currently operated by the terminal is selected;
a determining unit, configured to determine, through a short message receiving domain management service of an application layer, a receiving domain corresponding to a short message as an ith domain according to a mapping relationship between feature information of the short message preset by a user and the N domains and the feature information of the received short message;
the detection unit is further configured to detect whether a domain currently running by the terminal is an ith domain;
and the storage unit is used for storing the short message in the short message application installed in the ith domain when the current operating domain of the terminal is the ith domain.
With reference to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the terminal further includes:
the switching unit is used for switching the domain currently operated by the terminal to be the ith domain when the domain currently operated by the terminal is not the ith domain;
the storage unit is also used for storing the short message in the short message application installed in the ith domain.
With reference to the second aspect or the first or second or third possible implementation manner of the second aspect of the present invention, in a fourth possible implementation manner of the second aspect of the present invention,
the short message receiving domain management service of the application layer is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer is started by loading a database file storing the short message receiving domain management service.
The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention provides a short message processing method and a terminal, aiming at improving the convenience and efficiency of short message management of terminal equipment.
The terminal described in the embodiment of the present invention may be, for example, a mobile electronic device such as a tablet computer, a smart phone, a smart television, a vehicle-mounted device, a wearable device (a smart watch, a smart ring), and the like, in which an Android operating system is installed, and a concept of multiple domains in an Android5.1 version operating system is equivalent to a concept of multiple spaces, specifically, different spatial attributes are distinguished from an application layer of the operating system, and the terminal substantially always operates an operating system, and the domains described in the embodiment of the present invention are similar to a concept of multiple domains in a Windows operating system. The terminal is provided with at least N domains, wherein each domain is pre-installed with a short message application, and after receiving a short message sent by a network side, the terminal can dispatch the short message to the short message application installed in the domain associated with the characteristic information of the short message, so that the short message classification management is realized.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, fig. 1 is a flowchart of a short message processing method according to a first embodiment of the present invention, and as shown in fig. 1, the short message processing method may specifically include the following steps:
s101, a terminal detects whether an application icon of a short message application installed in an ith domain currently running by the terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
in the embodiment of the present invention, the ith domain currently running in the terminal may be started by the terminal when the terminal is started to display selectable interfaces of multiple domains and the user selects the identifier of the ith domain.
The ith domain currently running by the terminal may also be started by the terminal when performing a domain switching operation to pop up an authentication notification of the ith domain and detecting that a password input by the user for the authentication notification matches a preset password.
S102, when the application icon of the short message application is selected, the terminal displays the content information of the short message in a content interface of the short message application;
the short message is stored in the short message application after determining that a receiving domain corresponding to the short message is the ith domain according to the mapping relation between the characteristic information of the short message and the N domains and the characteristic information of the received short message by a short message receiving domain management service of an application layer of the terminal, wherein the mapping relation is preset by a user.
In a specific implementation, a short message receiving domain management service of an application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file in which the short message receiving domain management service is stored. The short message receiving domain management service can be realized by writing the software development kit SDK or the database file into the software development kit SDK or the database file in advance by a developer.
For example, the terminal may load the software development kit SDK or the database file through an intent mechanism (a runtime binding mechanism capable of connecting two different components during a program running process) to pull up the sms receiving domain management service.
In the embodiment of the invention, the terminal firstly detects whether the application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in the content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
Referring to fig. 2, fig. 2 is a flowchart of a short message processing method according to a second embodiment of the present invention, as shown in fig. 2, the short message processing method may specifically include the following steps:
s201, a terminal detects whether an application icon of the short message application installed in the ith domain in a feature information associated domain setting interface aiming at a preset feature information set is selected, wherein the preset feature information set comprises feature information of the short message;
s202, when an application icon of the short message application installed in the ith domain in the feature information associated domain setting interface is selected, the terminal establishes a mapping relation between the short message application and the feature information set;
in the embodiment of the invention, the characteristic information associated domain setting interface is used for setting the short message application installed in the domain associated with the preset characteristic information set.
For example, it is assumed that the associated domain setting interface displays application icons of short message applications installed in domains of 5 terminals, where the 5 short message applications are SMSAPP1, SMSAPP2, SMSAPP3, SMSAPP4, and SMSAPP5, and if it is detected that the user selects an application icon of the SMSAPP3, the terminal establishes a mapping relationship between the short message application SMSAPP3 and the feature information set.
S203, the terminal detects whether an application icon of a short message application installed in an ith domain currently running by the terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
in the embodiment of the present invention, the ith domain currently running in the terminal may be started by the terminal when the terminal is started to display selectable interfaces of multiple domains and the user selects the identifier of the ith domain.
The ith domain currently running by the terminal may also be started by the terminal when performing a domain switching operation to pop up an authentication notification of the ith domain and detecting that a password input by the user for the authentication notification matches a preset password.
The application icon of the short message application installed in the ith domain currently running by the terminal may be displayed in an application desktop of the ith domain of the terminal, where the application desktop at least includes the short message application installed in the ith domain, and may also include application icons of other applications installed in the ith domain, such as a QQ application icon, a wechat application icon, and the like.
S204, when the application icon of the short message application is selected, the terminal displays the content information of the short message in a content interface of the short message application;
the short message is stored in the short message application after determining that a receiving domain corresponding to the short message is the ith domain according to the mapping relation between the characteristic information of the short message and the N domains and the characteristic information of the received short message by a short message receiving domain management service of an application layer of the terminal, wherein the mapping relation is preset by a user.
In a specific implementation, a short message receiving domain management service of an application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file in which the short message receiving domain management service is stored.
In the embodiment of the invention, the terminal firstly detects whether the application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in the content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
Optionally, in the embodiment of the present invention, before the terminal detects whether an application icon of the short message application in a display interface corresponding to an ith domain currently running in the terminal is selected, the terminal is further configured to perform the following operations:
the terminal receives the short message;
the terminal determines a receiving domain corresponding to the short message as the ith domain according to the mapping relation between the characteristic information of the short message preset by a user and the N domains and the characteristic information of the received short message through the management of the short message receiving domain of an application layer;
the terminal detects whether the current running domain of the terminal is the ith domain;
and when the current running domain of the terminal is the ith domain, the terminal stores the short message in the short message application installed in the ith domain.
Optionally, in this embodiment of the present invention, the terminal is further configured to perform the following operations:
when the current operation domain of the terminal is not the ith domain, the terminal switches the current operation domain of the terminal to be the ith domain;
and the terminal stores the short message in the short message application installed in the ith domain.
In a specific implementation, a specific implementation manner of the terminal switching the currently running domain of the terminal to the ith domain is as follows:
and the short message receiving domain management service of the application layer of the terminal switches the currently running domain of the terminal into the ith domain. Compared with the technical scheme of executing the switching operation of the domains from the application framework frame layer of the Android operating system architecture, the method and the device have the advantages that the switching operation of different domains of the terminal is executed through the short message receiving domain management service of the application layer of the Android operating system architecture, the probability of switching abnormality is reduced, the situation of short message loss caused by the switching abnormality of the domains of the terminal is avoided, and the user experience is improved.
Referring to fig. 3, fig. 3 is a flowchart of a short message processing method according to a third embodiment of the present invention, as shown in fig. 3, the short message processing method may specifically include the following steps:
s301, the terminal detects whether an identifier of a preset feature information set in an associated feature information setting interface of the short message application installed in the ith domain is selected, wherein the preset feature information set comprises feature information of the jth short message;
s302, when the mark of a preset feature information set in the associated feature information setting interface is selected, the terminal establishes a mapping relation between the short message application and the feature information set.
In the embodiment of the invention, the associated characteristic information setting interface is used for setting the short message application installed in the domain associated with the preset characteristic information set.
For example, it is assumed that the associated feature information setting interface displays identifiers of 5 feature information sets, where the 5 feature information sets are smsis 1, smsis 2, smsis 3, smsis 4, and smsis 5, respectively, and if it is detected that the user selects an identifier of smsis 3, the terminal establishes a mapping relationship between the short message application and the feature information set smsis 3.
S303, the terminal detects whether an application icon of a short message application installed in an ith domain currently operated by the terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
in the embodiment of the present invention, the ith domain currently running in the terminal may be started by the terminal when the terminal is started to display selectable interfaces of multiple domains and the user selects the identifier of the ith domain.
The ith domain currently running by the terminal may also be started by the terminal when performing a domain switching operation to pop up an authentication notification of the ith domain and detecting that a password input by the user for the authentication notification matches a preset password.
S304, when the application icon of the short message application is selected, the terminal displays the content information of the short message in a content interface of the short message application;
the short message is stored in the short message application after determining that a receiving domain corresponding to the short message is the ith domain according to the mapping relation between the characteristic information of the short message and the N domains and the characteristic information of the received short message by a short message receiving domain management service of an application layer of the terminal, wherein the mapping relation is preset by a user.
In a specific implementation, a short message receiving domain management service of an application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file in which the short message receiving domain management service is stored.
In the embodiment of the invention, the terminal firstly detects whether the application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in the content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
Optionally, in the embodiment of the present invention, before the terminal detects whether an application icon of the short message application in a display interface corresponding to an ith domain currently running in the terminal is selected, the terminal is further configured to perform the following operations:
the terminal receives the short message;
the terminal determines a receiving domain corresponding to the short message as the ith domain according to the mapping relation between the characteristic information of the short message preset by a user and the N domains and the characteristic information of the received short message through a short message receiving domain management service of an application layer;
the terminal detects whether the current running domain of the terminal is the ith domain;
and when the current running domain of the terminal is the ith domain, the terminal stores the short message in the short message application installed in the ith domain.
Optionally, in this embodiment of the present invention, the terminal is further configured to perform the following operations:
when the current operation domain of the terminal is not the ith domain, the terminal switches the current operation domain of the terminal to be the ith domain;
and the terminal stores the short message in the short message application installed in the ith domain.
In a specific implementation, a specific implementation manner of the terminal switching the currently running domain of the terminal to the ith domain is as follows:
and the terminal switches the currently running domain of the terminal into the ith domain through the short message receiving domain management service of the application layer. Compared with the technical scheme of executing the domain switching operation from the application framework frame layer of the Android operating system architecture, the method and the device have the advantages that the switching operation of the domain is executed by receiving the short message of the application layer of the Android operating system architecture through the domain management service, the probability of switching abnormality is reduced, the situation of short message loss caused by the switching abnormality of the domain of the terminal is avoided, and the user experience is improved.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific techniques are not disclosed, please refer to the first to third embodiments of the present invention.
Referring to fig. 4, fig. 4 is a structural diagram of a terminal according to a fourth embodiment of the present invention. As shown in fig. 4, the terminal in the embodiment of the present invention includes a detecting unit 401 and a displaying unit 402, wherein,
the detection unit 401 is configured to detect whether an application icon of a short message application installed in an ith domain currently running in the terminal is selected, where the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
the display unit 402 is configured to display content information of the short message in a content interface of the short message application when the application icon of the short message application is selected;
the short message is stored in the short message application after determining that a receiving domain corresponding to the short message is the ith domain according to the mapping relation between the characteristic information of the short message and the N domains and the characteristic information of the received short message by a short message receiving domain management service of an application layer of the terminal, wherein the mapping relation is preset by a user.
In a specific implementation, a short message receiving domain management service of an application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file in which the short message receiving domain management service is stored.
Optionally, the detecting unit 401 is further configured to detect whether an application icon of the short message application installed in the ith domain in a feature information associated domain setting interface of a preset feature information set is selected before detecting whether an application icon of the short message application installed in the ith domain currently running in the terminal is selected, where the preset feature information set includes feature information of the short message;
further, the terminal further includes:
the first establishing unit is used for establishing the mapping relation between the short message application and the characteristic information set when the application icon of the short message application installed in the ith domain in the characteristic information associated domain setting interface is selected;
or,
optionally, the detecting unit 401 is further configured to detect whether an identifier of a preset feature information set in an associated feature information setting interface of a short message application installed in an ith domain installed in the ith domain is selected before detecting whether an application icon of the short message application installed in the ith domain currently running in the terminal is selected, where the preset feature information set includes feature information of the jth short message;
further, the terminal further includes:
and the second establishing unit is used for establishing the mapping relation between the short message application and the characteristic information set when the identifier of the preset characteristic information set in the associated characteristic information setting interface is selected.
Optionally, the terminal further includes:
the receiving unit is used for receiving the short message before the detection unit detects whether an application icon of the short message application in a display interface corresponding to the ith domain currently operated by the terminal is selected;
a determining unit, configured to determine, through a short message receiving domain management service of an application layer, a receiving domain corresponding to the short message as the ith domain according to a mapping relationship between feature information of the short message preset by a user and the N domains and the feature information of the received short message;
the detecting unit 401 is further configured to detect whether a domain currently running by the terminal is the ith domain;
and the storage unit is used for storing the short message in the short message application installed in the ith domain when the current operating domain of the terminal is the ith domain.
Optionally, the terminal further includes:
a switching unit, configured to switch a domain currently operated by the terminal to be the ith domain when the domain currently operated by the terminal is not the ith domain;
the storage unit is further configured to store the short message in the short message application installed in the ith domain.
It can be understood that the functions of each module of the terminal of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the terminal firstly detects whether the application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in the content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
Fig. 5 is a schematic structural diagram of another terminal according to a fifth embodiment of the present invention. As shown, the terminal may include: at least one processor 501, e.g. a CPU, at least one receiver 503, at least one memory 504, at least one transmitter 505, at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The receiver 503 and the transmitter 505 of the apparatus in the embodiment of the present invention may be wired transmission ports, or may also be wireless devices, for example, including an antenna apparatus, for performing signaling or data communication with other node devices. The memory 504 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 504 may optionally be at least one storage device located remotely from the processor 501. A set of program code is stored in the memory 504 and the processor 501 is used to call the program code stored in the memory for performing the following operations:
the processor 501 detects whether an application icon of a short message application installed in an ith domain currently running by a terminal is selected, wherein the ith domain is any one of N domains of the terminal, and N is a positive integer greater than 1;
when the application icon of the short message application is selected, the processor 501 displays the content information of the short message in the content interface of the short message application;
the short message is stored in the short message application after determining that a receiving domain corresponding to the short message is the ith domain according to the mapping relation between the characteristic information of the short message and the N domains and the characteristic information of the received short message by a short message receiving domain management service of an application layer of the terminal, wherein the mapping relation is preset by a user.
In a specific implementation, a short message receiving domain management service of an application layer of the terminal is started by loading a Software Development Kit (SDK) storing the short message receiving domain management service; or,
the short message receiving domain management service of the application layer of the terminal is started by loading a database file in which the short message receiving domain management service is stored.
Optionally, before the processor 501 detects whether an application icon of a short message application installed in an ith domain currently running in the terminal is selected, the method further includes:
the processor 501 detects whether an application icon of the short message application installed in the ith domain in a feature information associated domain setting interface of a preset feature information set is selected, wherein the preset feature information set comprises feature information of the short message;
when the application icon of the short message application installed in the ith domain in the feature information associated domain setting interface is selected, the processor 501 establishes a mapping relationship between the short message application and the feature information set;
or,
the processor 501 detects whether an identifier of a preset feature information set in an associated feature information setting interface of the short message application installed in the ith domain is selected, wherein the preset feature information set comprises feature information of the jth short message;
when the identifier of the preset feature information set in the associated feature information setting interface is selected, the processor 501 establishes a mapping relationship between the short message application and the feature information set.
Optionally, before the processor 501 detects whether an application icon of a short message application in a display interface corresponding to an ith domain currently running in the terminal is selected, the method further includes:
the receiver 503 receives the short message;
the processor 501 determines, through a short message receiving domain management service of an application layer, that a receiving domain corresponding to a short message is the ith domain according to a mapping relationship between feature information of the short message preset by a user and the N domains and the feature information of the received short message;
the processor 501 detects whether the currently operating domain of the terminal is the ith domain;
when the current operating domain of the terminal is the ith domain, the processor 501 stores the short message in the short message application installed in the ith domain.
Optionally, when the currently operated domain of the terminal is not the ith domain, the processor 501 switches the currently operated domain of the terminal to the ith domain;
the processor 501 stores the short message in the short message application installed in the ith domain.
It can be understood that the functions of each module of the terminal of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the terminal firstly detects whether the application icon of the short message application installed in the ith domain currently operated by the terminal is selected, and when the application icon of the short message application is selected, the content information of the short message is displayed in the content interface of the short message application. The short message is stored in the short message application installed in the ith domain after the short message receiving domain corresponding to the short message is determined to be the ith domain by the short message receiving domain management service of the application layer of the terminal according to the mapping relation between the characteristic information of the short message preset by the user and the N domains and the characteristic information of the received short message. It can be seen that, because the mapping relationship between the feature information of the short message and the N domains is managed by the short message receiving domain management service of the application layer of the terminal, the mapping relationship can be directly modified and updated from the user layer, that is, the user can autonomously establish the mapping relationship between the feature information of the short message and the short message application of the ith domain, so that the short message displayed by the short message application installed in each domain of the terminal is the short message associated with the feature information of the short message and the short message application installed in each domain, which is beneficial to improving the convenience and efficiency of the short message management of the terminal.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash memory disks, Read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The method and the related device provided by the embodiment of the present invention are described in detail above, and the principle and the embodiment of the present invention are explained in the present document by applying a specific example, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.