CN111767087A - Adaptive theme configuration method and device - Google Patents

Adaptive theme configuration method and device Download PDF

Info

Publication number
CN111767087A
CN111767087A CN202010558091.6A CN202010558091A CN111767087A CN 111767087 A CN111767087 A CN 111767087A CN 202010558091 A CN202010558091 A CN 202010558091A CN 111767087 A CN111767087 A CN 111767087A
Authority
CN
China
Prior art keywords
theme
application
information
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010558091.6A
Other languages
Chinese (zh)
Inventor
尤广来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ezviz Network Co Ltd
Original Assignee
Hangzhou Ezviz Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ezviz Network Co Ltd filed Critical Hangzhou Ezviz Network Co Ltd
Priority to CN202010558091.6A priority Critical patent/CN111767087A/en
Publication of CN111767087A publication Critical patent/CN111767087A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a self-adaptive theme configuration method and self-adaptive theme configuration equipment, wherein the method comprises the following steps: obtaining theme information of a system theme currently configured by a terminal device where an application is located; determining whether a target application theme matched with the current system theme exists in at least one application theme of the application according to the acquired theme information and a preset matching rule; and if so, configuring the application theme of the application as the target application theme. According to the embodiment of the application, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is the intelligence improved, but also the user time is saved, and the user experience is improved.

Description

Adaptive theme configuration method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for adaptive theme configuration.
Background
In order to provide better use experience for users, current smart devices such as mobile phones, tablet computers and the like are equipped with various system themes when leaving a factory. Similarly, developers of Applications (APP) may equip the applications with various Application themes. When a user sets a system theme for the terminal device, in order to match the application theme of the application installed on the terminal device with the system theme of the terminal device, such as color matching, the user needs to set each application theme for the application in sequence in a manual mode to determine whether the application theme is matched with the system theme, which is not only unintelligent, but also tedious operation, time and labor waste and reduced user experience for the user.
Disclosure of Invention
The embodiment of the application aims to provide a self-adaptive theme configuration method and equipment, so as to solve the problems of non-intellectualization, complex operation, time and labor waste and the like of manually configuring themes.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for configuring a self-adaptive theme, including:
obtaining theme information of a system theme currently configured by a terminal device where an application is located;
determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule;
and if so, configuring the application theme of the application as the target application theme.
In a second aspect, an embodiment of the present application provides a terminal device, including:
the processor is used for acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located; determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule; if yes, configuring the application theme of the application as the target application theme;
and the memory is used for storing the theme information and the matching rule information of the system of the terminal equipment and storing the theme information of the application.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; a memory for storing a computer program; and the processor is used for executing the program stored in the memory and realizing the steps of the self-adaptive theme configuration method.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above adaptive theme configuration method.
In the embodiment of the application, whether a target application theme matched with a current system theme exists in at least one application theme of the application is determined by obtaining theme information of the system theme currently configured by the terminal equipment where the application is located and according to the obtained theme information and a preset matching rule; and when the target application theme exists, configuring the application theme of the application as the target application theme. Therefore, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is intelligence improved, but also user time is saved, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a first flowchart of an adaptive theme configuration method provided in an embodiment of the present disclosure;
fig. 2 is a second flowchart of an adaptive theme configuration method provided in an embodiment of the present disclosure;
fig. 3 is a third schematic flowchart of an adaptive theme configuration method provided in an embodiment of the present disclosure;
fig. 4 is a fourth flowchart illustrating an adaptive theme configuration method according to an embodiment of the present disclosure;
fig. 5 is a fifth flowchart illustrating an adaptive theme configuration method according to an embodiment of the present disclosure;
fig. 6 is a sixth flowchart of an adaptive theme configuration method provided in an embodiment of the present disclosure;
fig. 7 is a schematic block diagram illustrating an adaptive theme configuration apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic composition diagram of a terminal device provided in an embodiment of the present specification;
fig. 9 is a schematic composition diagram of an electronic device provided in an embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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 application.
Fig. 1 is a schematic flowchart of a method for configuring an adaptive theme according to one or more embodiments of the present disclosure, and referring to fig. 1, the method may specifically include the following steps:
102, obtaining theme information of a system theme currently configured by a terminal device where an application is located;
an execution subject of the adaptive theme configuration method provided in the embodiment of the present specification may be an adaptive theme configuration device, and the adaptive theme configuration device may be set in an application to perform adaptive configuration on an application theme of the application; the adaptive theme configuration device can also be arranged in the terminal equipment to adaptively configure the application theme of each application installed in the terminal equipment. Specifically, the adaptive theme configuration device calls a preset function interface, and obtains theme information of a system theme currently configured by the terminal device where the application is located based on the function interface. The terminal equipment comprises a mobile phone, a tablet personal computer, a desktop computer, a portable notebook, an intelligent watch and the like, wherein at least one application is installed in the intelligent equipment; systems of the smart device such as an android system, an IOS system, and the like; the theme information includes information such as system theme name, system theme identification, and the like.
104, determining whether a target application theme matched with the current system theme exists in at least one application theme of the application according to the acquired theme information and a preset matching rule;
and 106, if yes, configuring the application theme of the application as a target application theme.
In one or more embodiments of the specification, determining whether a target application theme matched with a current system theme exists in at least one application theme of the application by acquiring theme information of the system theme currently configured by the terminal device where the application is located and according to the acquired theme information and a preset matching rule; and when the target application theme exists, configuring the application theme of the application as the target application theme. Therefore, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is intelligence improved, but also user time is saved, and user experience is improved.
Considering that a user does not generally use a certain application in real time, in order to reduce resource occupation, in one or more embodiments of the present specification, the obtaining condition of the system theme information is preset, and correspondingly, as shown in fig. 2, step 102 may include the following step 102-2:
and 102-2, determining whether the preset acquisition condition of the system theme information is met, and if so, acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located.
Generally, when a user uses an application, the application is started first; in order to enable the application theme configured after the application is started to match the current system theme, in one or more embodiments of the present description, as shown in fig. 3, step 102-2 may include the following steps 102-22:
and 102-22, if the starting information of the application is detected, determining that the preset acquisition condition of the system theme information is met, and acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located.
Specifically, when detecting that a user triggers an application in an un-running state (such as clicking, double-clicking and the like), determining that starting information of the application is detected, and meeting a preset acquisition condition of system theme information.
Further, corresponding to step 102-22, as shown in FIG. 3, step 104 includes the following step 104-2, and step 106 includes the following steps 106-2 and 106-4:
step 104-2, determining whether a target application theme matched with the current system theme exists in at least one application theme of the application according to the acquired theme information and a preset matching rule, if so, executing step 106-2, otherwise, executing step 106-4;
step 106-2, configuring the application theme of the application as a target application theme;
step 106-4, configure the application theme of the application as a default application theme.
Specifically, an application theme identifier of a default application theme is preset, and when it is determined that a target application theme matched with a current system theme does not exist in at least one application theme of the application, the application theme of the application is configured as the corresponding default application theme according to the preset application theme identifier.
Therefore, when the starting information of the application is detected, adaptive theme configuration is carried out, and the application theme after the application is started can be matched with the current system theme.
Furthermore, in the process of being in the running state after the application is started, the user may also change the system theme of the terminal device, or the terminal device changes the system theme by adapting to the external environment; in order to enable the application theme in the running process to be matched with the replaced system theme in time, in one or more embodiments of the present specification, as shown in fig. 4, step 102 further includes:
step 100, if the application is determined to be started successfully, sending a theme change information acquisition request to a system of the terminal equipment where the application is located, so that the system sends notification information to the application when changing the system theme;
when the system changes the system theme, the notification information is sent to the adaptive theme configuration device according to the application identification information, so that the adaptive theme configuration device performs application theme configuration processing on the application corresponding to the application identification information in the notification information.
Corresponding to step 100, as shown in FIG. 4, step 102-2 includes the following steps 102-24:
and 102-24, if receiving the notification information sent by the system, determining that the preset acquisition condition of the system theme information is met, and acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located.
The obtaining of the theme information of the system theme currently configured by the terminal device where the application is located may include calling a preset function interface, and obtaining the theme information of the system theme currently configured by the terminal device where the application is located based on the function interface; or obtaining the theme information of the system theme currently configured by the terminal equipment where the application is located from the received notification information.
Further, corresponding to steps 100 and 102-24, as shown in FIG. 4, step 106 includes the following steps 106-6 and 106-8:
step 106-6, if yes, determining whether the application theme currently configured by the application is a target application theme;
and step 106-8, if not, adjusting the application theme currently configured by the application to the target application theme.
It should be noted that when step 104 is executed by steps 102-24, if it is determined in step 104 that there is no target application theme matching the system theme in at least one application theme of the application, the current application theme is kept unchanged.
In a specific embodiment, when the adaptive theme configuration apparatus detects the enabling information of the application, theme information of a system theme currently configured by the terminal device where the application is located is acquired, and according to the acquired theme information and a preset matching rule, it is determined whether a target application theme matching the current system theme exists in at least one application theme of the application, and if so, the application theme of the application is configured as the target application theme. And sending a theme change information acquisition request to the system, acquiring theme information of a system theme currently configured by the system when receiving theme change notification information sent by the system, determining whether a target application theme matched with the current system theme exists in at least one application theme of the application according to the acquired theme information and a preset matching rule, and if so, configuring the application theme of the application as the target application theme.
Therefore, when the preset acquisition condition of the system theme information is met, the theme information of the system theme currently configured by the terminal equipment where the application is located is acquired, rather than the theme information of the system theme currently configured by the terminal equipment where the application is located, so that the resource occupation can be reduced, and the application theme of the application can be configured in time, and the application theme is matched with the system theme.
Further, in order to quickly determine a target application theme, in one or more embodiments of the present specification, a matching rule is preset, where the matching rule includes an association relationship between a system theme identifier and an application theme identifier; accordingly, as shown in FIG. 5, step 104 includes:
104-4, determining whether the associated application theme identification is inquired from the association relationship between the preset system theme identification and the application theme identification according to the system theme identification in the acquired theme information;
step 104-6, if yes, determining that a target application theme matched with the current system theme exists, and determining an application theme corresponding to the inquired application theme identification as a target application theme;
corresponding to steps 104-4 and 104-6, as shown in FIG. 5, step 106 includes the following steps 106-10:
and 106-10, configuring the application theme of the application as a target application theme.
Further, if it is determined that the associated application theme identifier is not queried from the association relationship between the preset system theme identifier and the application theme identifier according to the system theme identifier in the acquired theme information, it is determined that the target application theme matched with the current system theme does not exist.
Therefore, based on the preset matching rule, the application theme can be automatically matched with the system theme so as to achieve the purpose of self-adapting the system theme to configure the application theme, and the manual configuration of a user is not needed in the process, so that not only is the intelligence improved, but also the user experience is improved.
Generally, the application theme comprises resources such as background pictures, colors, button pictures and the like; in order to be able to configure application themes quickly, whether the application is started or in the running state, in one or more embodiments of the present specification, each resource of each application theme is packaged in advance as a theme resource package, and an association relationship between an application theme identifier and the theme resource package is established. Accordingly, as shown in FIG. 6, the steps 106-10 include the following steps 106-102 and 106-104:
step 106-;
specifically, when the application is installed, the association relationship between the application theme identifier and the theme resource package is downloaded and stored in the designated storage area, and the adaptive theme configuration device acquires the corresponding theme resource package in the storage area according to the inquired application theme identifier.
Step 106 and step 104, the obtained theme resource package is loaded to configure the application theme of the application as the target application theme.
In the embodiment of the present specification, by acquiring theme information of a system theme currently configured by a terminal device where an application is located, and according to the acquired theme information and a preset matching rule, determining whether a target application theme matched with the current system theme exists in at least one application theme of the application; and when the target application theme exists, configuring the application theme of the application as the target application theme. Therefore, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is intelligence improved, but also user time is saved, and user experience is improved.
Based on the same technical concept, one or more embodiments of the present specification further provide an adaptive theme configuration apparatus, fig. 7 is a schematic block diagram of the adaptive theme configuration apparatus provided in one or more embodiments of the present specification, and as shown in fig. 7, the apparatus includes:
an obtaining module 201, configured to obtain theme information of a system theme currently configured by a terminal device where an application is located;
a determining module 202, configured to determine, according to the theme information and a preset matching rule, whether a target application theme matching the system theme exists in at least one application theme of the application;
a configuration module 203, configured to configure the application theme of the application as the target application theme when the determination result of the determination module 202 is yes.
Optionally, the obtaining module 201 is specifically configured to:
and calling a preset function interface, and acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located based on the function interface.
Optionally, the obtaining module 201 is further specifically configured to:
determining whether a preset system theme information acquisition condition is met;
if yes, obtaining the theme information of the system theme currently configured by the terminal equipment where the application is located.
Optionally, the obtaining module 201 is further specifically configured to:
and if the starting information of the application is detected, determining that the preset acquisition condition of the system theme information is met.
Optionally, the configuring module 203 configures the application as a default application theme if the determining module 202 determines that a target application theme matching the system theme does not exist in at least one application theme of the application.
Optionally, the apparatus further comprises: a sending module;
the sending module is used for sending a theme change information acquisition request to a system of the terminal equipment where the application is located if the application is determined to be started successfully, so that the system sends notification information to the application when the system theme is changed;
correspondingly, the obtaining module 201 is further specifically configured to:
and if the notification information sent by the system is received, determining that the preset acquisition condition of the system theme information is met.
Optionally, the configuration module 203 is specifically configured to:
determining whether an application theme currently configured by the application is the target application theme;
if not, adjusting the application theme currently configured by the application to the target application theme.
Optionally, the theme information includes a system theme identifier, and the determining module 202 is specifically configured to:
determining whether the associated application theme identification is inquired from the association relationship between the preset system theme identification and the application theme identification or not according to the system theme identification;
if yes, determining that a target application theme matched with the system theme exists, and determining an application theme corresponding to the inquired application theme identification as the target application theme;
if not, determining that the target application theme matched with the system theme does not exist.
Optionally, the configuration module 203 is further specifically configured to:
acquiring a corresponding theme resource package according to the inquired application theme identification;
and loading the theme resource package to configure the application theme of the application as the target application theme.
The adaptive theme configuration apparatus provided in the embodiment of the present specification determines, by obtaining theme information of a system theme currently configured by a terminal device where an application is located, whether a target application theme matching the current system theme exists in at least one application theme of the application according to the obtained theme information and a preset matching rule; and when the target application theme exists, configuring the application theme of the application as the target application theme. Therefore, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is intelligence improved, but also user time is saved, and user experience is improved.
In addition, for the above device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to partial description of the method embodiment. Further, it should be noted that, among the respective components of the apparatus of the present invention, the components thereof are logically divided according to the functions to be realized, but the present invention is not limited thereto, and the respective components may be newly divided or combined as necessary.
Based on the same technical concept, one or more embodiments of the present specification further provide a terminal device, and fig. 8 is a schematic structural diagram of a terminal device provided in one or more embodiments of the present specification; as shown in fig. 8, the terminal device includes:
the processor 301 is configured to obtain theme information of a system theme currently configured by a terminal device where an application is located; determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule; if yes, configuring the application theme of the application as the target application theme;
a memory 302 for storing information related to the system of the terminal device and storing information related to the application.
Optionally, the processor 301 is specifically configured to: and calling a preset function interface, and acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located based on the function interface.
Optionally, the processor 301 is specifically configured to:
determining whether a preset system theme information acquisition condition is met;
if yes, obtaining the theme information of the system theme currently configured by the terminal equipment where the application is located.
Optionally, the processor 301 is specifically configured to: and if the starting information of the application is detected, determining that the preset acquisition condition of the system theme information is met.
Optionally, the processor 301 is specifically configured to: and if it is determined that the target application theme matched with the system theme does not exist in at least one application theme of the application, configuring the application as a default application theme.
Optionally, the processor 301 is specifically configured to:
if the application is determined to be started successfully, a theme change information acquisition request is sent to a system of the terminal equipment where the application is located, so that the system sends notification information to the application when changing the system theme; and the number of the first and second groups,
and if the notification information sent by the system is received, determining that the preset acquisition condition of the system theme information is met.
Optionally, the processor 301 is specifically configured to:
determining whether an application theme currently configured by the application is the target application theme;
if not, adjusting the application theme currently configured by the application to the target application theme.
Optionally, the subject information includes: a system subject identification; the processor 301 is specifically configured to:
determining whether the associated application theme identification is inquired from the association relationship between the preset system theme identification and the application theme identification or not according to the system theme identification;
if yes, determining that a target application theme matched with the system theme exists, and determining an application theme corresponding to the inquired application theme identification as the target application theme;
if not, determining that the target application theme matched with the system theme does not exist.
Optionally, the processor 301 is specifically configured to:
acquiring a corresponding theme resource package according to the inquired application theme identification;
and loading the theme resource package to configure the application theme of the application as the target application theme.
In the terminal device provided in the embodiment of the present specification, whether a target application theme matched with a current system theme exists in at least one application theme of an application is determined by obtaining theme information of a system theme currently configured by the terminal device where the application is located and according to the obtained theme information and a preset matching rule; and when the target application theme exists, configuring the application theme of the application as the target application theme. Therefore, the application theme is adaptive to the system theme based on an automatic matching mode, manual setting of a user is not needed, not only is intelligence improved, but also user time is saved, and user experience is improved.
In addition, for the above terminal device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant points, reference may be made to partial description of the method embodiment.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and referring to fig. 9, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required by other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the self-adaptive theme configuration device on the logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
The network interface, the processor and the memory may be interconnected by a bus system. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The Memory may include a Random-Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory.
The processor is used for executing the program stored in the memory and specifically executing:
obtaining theme information of a system theme currently configured by a terminal device where an application is located;
determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule;
and if so, configuring the application theme of the application as the target application theme.
The method performed by the adaptive theme configuration apparatus according to the embodiment shown in fig. 9 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method shown in fig. 1 to fig. 6, and implement the functions of the adaptive theme configuration apparatus in the embodiments shown in fig. 1 to fig. 6, which are not described herein again in this embodiment of the present application.
Based on the same technical concept, embodiments of the present application also provide a computer-readable storage medium storing one or more programs, which when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the adaptive theme configuration method provided by any corresponding embodiment of fig. 1 to 6.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. An adaptive theme configuration method, comprising:
obtaining theme information of a system theme currently configured by a terminal device where an application is located;
determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule;
and if so, configuring the application theme of the application as the target application theme.
2. The method according to claim 1, wherein the obtaining of the theme information of the system theme currently configured by the terminal device where the application is located comprises:
and calling a preset function interface, and acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located based on the function interface.
3. The method according to claim 1, wherein the obtaining of the theme information of the system theme currently configured by the terminal device where the application is located comprises:
determining whether a preset system theme information acquisition condition is met;
if yes, obtaining the theme information of the system theme currently configured by the terminal equipment where the application is located.
4. The method according to claim 3, wherein the determining whether the preset system subject information obtaining condition is met comprises:
and if the starting information of the application is detected, determining that the preset acquisition condition of the system theme information is met.
5. The method of claim 4, further comprising:
and if it is determined that the target application theme matched with the system theme does not exist in at least one application theme of the application, configuring the application as a default application theme.
6. The method of claim 3, further comprising:
if the application is determined to be started successfully, a theme change information acquisition request is sent to a system of the terminal equipment where the application is located, so that the system sends notification information to the application when changing the system theme;
the determining whether the preset system theme information acquisition condition is met includes:
and if the notification information sent by the system is received, determining that the preset acquisition condition of the system theme information is met.
7. The method of claim 6, wherein configuring the application theme of the application as the target application theme comprises:
determining whether an application theme currently configured by the application is the target application theme;
if not, adjusting the application theme currently configured by the application to the target application theme.
8. The method of claim 1, wherein the subject information comprises: a system subject identification;
the determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule includes:
determining whether the associated application theme identification is inquired from the association relationship between the preset system theme identification and the application theme identification or not according to the system theme identification;
if yes, determining that a target application theme matched with the system theme exists, and determining an application theme corresponding to the inquired application theme identification as the target application theme;
if not, determining that the target application theme matched with the system theme does not exist.
9. The method of claim 8, wherein configuring the application theme of the application as the target application theme comprises:
acquiring a corresponding theme resource package according to the inquired application theme identification;
and loading the theme resource package to configure the application theme of the application as the target application theme.
10. A terminal device, comprising:
the processor is used for acquiring the theme information of the system theme currently configured by the terminal equipment where the application is located; determining whether a target application theme matched with the system theme exists in at least one application theme of the application according to the theme information and a preset matching rule; if yes, configuring the application theme of the application as the target application theme;
and the memory is used for storing the theme information and the matching rule information of the system of the terminal equipment and storing the theme information of the application.
11. An electronic device, comprising: a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; a memory for storing a computer program; a processor for executing a program stored in a memory to perform the steps of the method of any of claims 1 to 9.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of one of the preceding claims 1 to 9.
CN202010558091.6A 2020-06-18 2020-06-18 Adaptive theme configuration method and device Pending CN111767087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010558091.6A CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010558091.6A CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Publications (1)

Publication Number Publication Date
CN111767087A true CN111767087A (en) 2020-10-13

Family

ID=72721128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010558091.6A Pending CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Country Status (1)

Country Link
CN (1) CN111767087A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817677A (en) * 2021-01-29 2021-05-18 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN116069437A (en) * 2023-04-06 2023-05-05 深圳开鸿数字产业发展有限公司 Atomization service card theme management method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063277A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104951182A (en) * 2015-05-27 2015-09-30 深圳市万普拉斯科技有限公司 Replacement method and device for interface theme of application and intelligent terminal
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN110908565A (en) * 2018-09-18 2020-03-24 中兴通讯股份有限公司 Method, device, equipment and storage medium for customizing screen theme

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063277A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104951182A (en) * 2015-05-27 2015-09-30 深圳市万普拉斯科技有限公司 Replacement method and device for interface theme of application and intelligent terminal
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN110908565A (en) * 2018-09-18 2020-03-24 中兴通讯股份有限公司 Method, device, equipment and storage medium for customizing screen theme

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817677A (en) * 2021-01-29 2021-05-18 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN112817677B (en) * 2021-01-29 2024-05-24 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN116069437A (en) * 2023-04-06 2023-05-05 深圳开鸿数字产业发展有限公司 Atomization service card theme management method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US12035416B2 (en) ESIM card change method and related device
TWI640923B (en) Application processing method and device
CN111708655A (en) Application crash processing method, device and system
CN109391512B (en) Service publishing method and device and electronic equipment
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN111767087A (en) Adaptive theme configuration method and device
WO2016032781A1 (en) Systems and methods of controlling communication with multiple subscriptions and radio protocol stacks
CN115190078B (en) Access flow control method, device, equipment and storage medium
WO2016025145A1 (en) Systems and methods of controlling access of multiple radio protocol stacks within a subscription
CN111125721A (en) Control method for process starting, computer equipment and readable storage medium
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN106658471B (en) User identification module configuration method and device
CN107766094B (en) Method, device and equipment for controlling mutual starting of application programs
CN114527983A (en) Interface adaptation method and device based on middleware and electronic equipment
CN113485758A (en) Micro-service issuing method and device, electronic equipment and storage medium
CN107172610B (en) GSM network self-adaption method and device and electronic equipment
CN113238855B (en) Path detection method and device
WO2021057648A1 (en) Esim card, method for processing and setting card application, terminal and platform device
CN109657455B (en) Application real-time switching method, device, storage medium and apparatus
CN113409758A (en) Intelligent voice interaction method, device and system
CN110968297B (en) Data crawling method and device
CN107066380B (en) Authentication method and device for application containing redundancy function
CN111221651A (en) Load balancing configuration method and device, server and readable storage medium
CN111427603A (en) Application program upgrading method and device
CN111142913A (en) Hot updating method and equipment for iOS system application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination