CN109558042A - Show topics the method, apparatus and computer readable storage medium of skin - Google Patents

Show topics the method, apparatus and computer readable storage medium of skin Download PDF

Info

Publication number
CN109558042A
CN109558042A CN201811333392.8A CN201811333392A CN109558042A CN 109558042 A CN109558042 A CN 109558042A CN 201811333392 A CN201811333392 A CN 201811333392A CN 109558042 A CN109558042 A CN 109558042A
Authority
CN
China
Prior art keywords
theme
packet
skin
server
theme packet
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
CN201811333392.8A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811333392.8A priority Critical patent/CN109558042A/en
Publication of CN109558042A publication Critical patent/CN109558042A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This disclosure relates to a kind of method, apparatus and computer readable storage medium of the skin that shows topics, to realize the quick-replaceable of theme skin.The method of the skin that shows topics in the disclosure is applied to client, comprising: the theme for sending destination application to server updates request;Receive the response message that request is updated for responding the theme that the server is sent, the response message includes theme packet address, and the theme packet address is stored in the server can be called directly by the client to replace the corresponding address of theme packet of the theme skin of the display interface of the destination application;According to the theme packet address, the theme packet is downloaded from the server and is installed;In destination application starting, theme skin is called to be shown from the theme packet newly installed.

Description

Show topics the method, apparatus and computer readable storage medium of skin
Technical field
This disclosure relates to computer application technology more particularly to a kind of method, apparatus and meter of the skin that shows topics Calculation machine readable storage medium storing program for executing.
Background technique
Theme skin refers to the display interface of application program in computer system, that is, includes title bar, program window, menu The background set of the interface element of column and other controls.In order to meet the various needs of users, the theme skin of application program It needs continually to be updated.In the related technology, the theme skin of the display interface of application program is updated mainly logical Cross following manner realization:
A set of Default Subject skin is first arranged in the destination application of client, when needing to update theme skin, User end to server requests the corresponding picture resource of theme skin should if server has corresponding picture resource Picture resource is issued to client in the mode of JSON (JavaScript Object Notation, data interchange format) data End, then client parses the JSON data that receive, gets picture resource, then shows picture is many pieces of.
In this process, the corresponding picture resource of theme skin all issues together, and client wants one when display Reading is opened, is then shown one by one, the time of picture conversion is longer, entire to load when especially picture is more Process can be very slow, and therefore, the starting of destination application also can be slack-off, and user experience is poor.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides the method, apparatus and meter of a kind of skin that shows topics Calculation machine readable storage medium storing program for executing, to realize the quick update of application program theme skin.
According to the first aspect of the embodiments of the present disclosure, a kind of method of skin that shows topics is provided, client, packet are applied to It includes:
The theme for sending destination application to server updates request;
Receive the response message that request is updated for responding the theme that the server is sent, the response message packet Theme packet address is included, the theme packet address is stored in the server can be called directly by the client to replace The corresponding address of theme packet of the theme skin of the display interface of the destination application;
According to the theme packet address, the theme packet is downloaded from the server and is installed;
In destination application starting, theme skin is called to be shown from the theme packet newly installed.
Optionally, the theme packet includes for showing the theme skin shown in time range, institute in the future one It states and calls theme skin to be shown from the theme packet newly installed, comprising:
Judge whether current time is located in the display time range;
If current time is located in the display time range, theme skin is called from the theme packet newly installed Skin is shown;
If current time is not in the display time range, call pre-stored silent in the client Recognize theme skin to be shown.
Optionally, the theme for sending destination application to server updates request, comprising:
Request is updated to the theme that the server sends destination application according to the scheduled period.
Optionally, the response message includes the version number of the theme packet, described according to the theme packet address, from institute The server downloading theme packet is stated to be installed, comprising:
Judge whether the version number is greater than the version number for the theme packet being currently installed in the client;
If the version number is greater than the version number for the theme packet being currently installed in the client, according to the theme Packet address is downloaded the theme packet from the server and is installed.
Optionally, described according to the theme packet address, the theme packet is downloaded from the server and is installed, and is wrapped It includes:
Obtain the identification information of the theme packet, wherein the identification information is for theme packet described in unique identification;
Judge whether the identification information is consistent with default identification information, if the identification information and the default mark Information is consistent, then according to the theme packet address, downloads the theme packet from the server and installed.
Optionally, described according to the theme packet address, the theme packet is downloaded from the server and is installed, and is wrapped It includes:
According to the download address, the corresponding picture resource of theme packet and picture money are obtained from the server The corresponding pattern in source;
By the picture resource and the pattern be written to that the client pre-saves in a manner of binary it is default In file;
In destination application starting, theme skin is called to be shown from the theme packet newly installed, Include:
In destination application starting, picture resource or pattern are called, from the default file to show State the corresponding theme skin of theme packet.
According to the second aspect of an embodiment of the present disclosure, a kind of device of skin that shows topics is provided, client, packet are applied to It includes:
Sending module, the theme for being configured as sending destination application to server update request;
Receiving module, the response that request is updated for responding the theme for being configured as receiving the server transmission disappear Breath, the response message includes theme packet address, the theme packet address be it is stored in the server can be by the visitor Family end is called directly to replace the corresponding address of theme packet of the theme skin of the display interface of the destination application;
Download module is configured as downloading the theme packet according to the theme packet address from the server and being pacified Dress;
Calling module is configured as calling from the theme packet newly installed when the destination application starts Theme skin is shown.
Optionally, the calling module includes:
First judging submodule is configured as in the theme packet including carrying out for showing in time range in the future one When the theme skin of display, judge whether current time is located in the display time range;
First calls submodule, is configured as when being located in the display time range at current time, from what is newly installed Theme skin is called to be shown in the theme packet;
Second calls submodule, is configured as when being not in the display time range at current time, calls institute Pre-stored Default Subject skin in client is stated to be shown.
Optionally, the sending module is configured as being answered according to the scheduled period to the server transmission target Request is updated with the theme of program.
Optionally, the download module includes:
Second judgment submodule, for according to the theme packet address, from the server download the theme packet into Before row installation, when the response message includes the version number of the theme packet, it is described to judge whether the version number is greater than The version number for the theme packet being currently installed in client;
First downloading submodule, is configured as being greater than the theme packet being currently installed in the client in the version number When version number, according to the theme packet address, the theme packet is downloaded from the server and is installed.
Optionally, the download module includes:
First acquisition submodule is configured as downloading the theme from the server according to the theme packet address Before packet is installed, the identification information of the theme packet is obtained, wherein the identification information is for theme described in unique identification Packet;
Third judging submodule is configured as judging whether the identification information is consistent with default identification information;
Second downloading submodule, is configured as when the identification information is consistent with the default identification information, according to institute Theme packet address is stated, the theme packet is downloaded from the server and is installed.
Optionally, the download module includes:
Second acquisition submodule, is configured as according to the download address, obtains the theme packet pair from the server The picture resource and the corresponding pattern of the picture resource answered;
Submodule is written, is configured as the picture resource and the pattern being written to the visitor in a manner of binary In the default file that family end pre-saves;
The calling module includes:
Third calls submodule, is configured as calling from the default file when the destination application starts Picture resource or pattern, to show the corresponding theme skin of the theme packet.
According to the third aspect of an embodiment of the present disclosure, a kind of device of skin that shows topics is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The theme for sending destination application to server updates request;
Receive the response message that request is updated for responding the theme that the server is sent, the response message packet Theme packet address is included, the theme packet address is stored in the server can be called directly by the client to replace The corresponding address of theme packet of the theme skin of the display interface of the destination application;
According to the theme packet address, the theme packet is downloaded from the server and is installed;
In destination application starting, theme skin is called to be shown from the theme packet newly installed.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program instruction realizes the side for the skin that shows topics provided by the disclosure first aspect when program instruction is executed by processor The step of method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The theme for sending destination application to server updates request, receive server transmission for responding this When theme updates the response message of request, the theme packet address that message includes according to response is carried out from server downloading theme packet Installation calls theme skin to be shown then when destination application starts from the theme packet newly installed.In this way Mode, what server issued is the corresponding theme packet address of theme skin, rather than the corresponding picture resource of theme skin, When needing replacing theme skin, client is not necessarily to carry out the conversion of picture, but can call directly according under theme packet address The picture resource for carrying and being mounted in local theme packet, reduces the picture load time to a certain extent, accelerates using journey The starting time of sequence, optimize user experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of the method for skin that shows topics shown according to an exemplary embodiment.
Fig. 2 is an a kind of block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Fig. 3 is a kind of another block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Fig. 4 is a kind of another block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Fig. 5 is a kind of another block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Fig. 6 is a kind of another block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Fig. 7 is a kind of another block diagram of the device of skin that shows topics shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Client in the embodiment of the present disclosure for example can be the different types of client of mobile phone, PAD etc., also can also be with It is the client for being mounted with android system, IOS system etc. different operating system, as long as needing more new application master The client of topic skin may each be the client in the embodiment of the present disclosure, and the embodiment of the present disclosure is not construed as limiting this.
Fig. 1 is a kind of flow chart of the method for skin that shows topics shown according to an exemplary embodiment, such as Fig. 1 institute Show, the method for the skin that shows topics is used for client, includes the following steps.
In step s 11, request is updated to the theme that server sends destination application.
In step s 12, the response message that request is updated for responding the theme that the server is sent, institute are received Stating response message includes theme packet address, the theme packet address be it is stored in the server can be straight by the client It connects and calls to replace the corresponding address of theme packet of the theme skin of the display interface of the destination application.
In step s 13, according to the theme packet address, the theme packet is downloaded from the server and is installed.
In step S14, in destination application starting, theme skin is called from the theme packet newly installed Skin is shown.
Being previously stored in the embodiment of the present disclosure, in server can be called directly by client to replace application program The theme packet of the theme skin of display interface preserves the picture resource shown for theme skin and picture money in the theme packet The corresponding pattern in source, also, these picture resources have been converted into client energy before being issued to client from server The format enough identified, therefore, if it is desirable to replace the theme skin of client objectives application program, then it can be first according to theme packet Theme packet downloads in theme packet and installed by address, then when destination application starts, calls directly and newly installs Picture resource in theme packet, without carrying out the conversion of picture after JSON data acquisition picture from server, to a certain degree On accelerate replacement theme skin process, to accelerate the starting of application program, better user experience.
Optionally, in step s 11, it can be the theme for sending destination application to server according to the scheduled period Update request.
The scheduled period can be the developer of destination application customized time cycle according to demand, this is scheduled The time of cycle set is shorter, then client more can timely be got when server is stored with the theme packet of update The theme packet of update, for example, user setting is when destination application starts, client was sent at interval of 1 hour to server The theme of destination application updates request, answers then sending target to server at interval of 12 hours compared to setting client Request is updated with the theme of program, theme was sent at interval of 1 hour and updates time of the mode of request due to sending request every time It is spaced shorter, therefore client can more be allowed to get the theme skin of update in time.
It should be understood that the embodiment of the present disclosure is not construed as limiting the specific value in scheduled period, target application journey The developer of sequence can sets itself according to demand.
By above mode, the embodiment of the present disclosure can periodically send the theme of destination application to server Request is updated, gets newest theme skin in time convenient for client.
Optionally, in step s 13, it can be first according to download address, obtain the corresponding picture of theme packet from server Picture resource and pattern, are then written in default file by resource and the corresponding pattern of picture resource in a manner of binary, And default file is saved in client, correspondingly, step S14 can be in destination application starting, from default text Picture resource or pattern are called in part, wrap corresponding theme skin to show topics.
In the embodiment of the present disclosure, default file can be the file that the suffix being pre-created is " .apk ", also, default text Part can be pre-stored in the SD card of client, can also be pre-stored in the cache file of destination application, may be used also To be first to judge whether the SD card of client is writeable, that is, judge whether there are also storable spaces in SD card, if SD card is writeable, Default file is then saved in SD card, but if SD card is not writeable, then default file is saved in the caching of destination application In file, etc., the disclosure is not construed as limiting this.
For example, client installation is android system, default file is the first file that suffix is " .apk ", and pre- It is first stored in the cache file of destination application, then obtaining the corresponding figure of theme packet from server according to download address It, can be by picture resource and the corresponding pattern of picture resource in the form of data flow after piece resource and the corresponding pattern of picture resource (binary mode) is written in the first file, then when destination application starts, can be developed by Android Resources class directly read corresponding picture resource or pattern in the first file, realize that the update of theme skin is shown.
By above mode, in a manner of binary by theme packet picture resource and corresponding pattern be written to it is pre- If in file, theme packet can be installed in client, so that the theme packet can be called directly when updating theme skin In picture resource and corresponding pattern, accelerate the update of theme skin, user experience is good.
It should be noted that before downloading theme packet from server, can also judge in client in the embodiment of the present disclosure Whether the theme packet stored on server is installed, if having installed the theme packet stored on server in client, is no longer needed to It is downloaded installation, but if client does not install the theme packet stored on server, is then downloaded the operation of installation.Its In, it can be determined by the packet name of mounted theme packet in the Bao Mingyu client of the theme packet stored on comparison server Whether the theme packet, etc. stored on server is installed, the disclosure is not construed as limiting this in client.
Further, in order to enable the theme skin that client is shown is newest theme skin, the response that server is sent Message can also include the version number of theme packet, and the version number by comparing theme packet determines the theme packet stored on server Whether it is newest theme packet, when determining the theme packet stored on server is newest theme packet, then is downloaded installation.
That is, optionally, in step s 13, when response message includes the version number of theme packet, can be and first sentence Whether the version number of the theme packet stored on disconnected server is greater than the version number for the theme packet being currently installed in client, if version This number version number for being greater than the theme packet being currently installed in client downloads theme packet from server then according to theme packet address It is installed.
In the embodiment of the present disclosure, each theme packet has unique version number, which can use digital representation, Can be indicated with letter, etc., the disclosure is not construed as limiting this, as long as whether the comparison by version number can determine theme packet For latest edition.
For example, version number's digital representation, the version number for the theme packet being currently installed in client is " No.001 ", service The version number of the theme packet stored on device is " No.002 ", the version number of the theme packet stored on server be greater than in client when The version number of the theme packet of preceding installation, that is to say, that the theme packet stored on server is newest theme packet, then can root According to the theme packet address, installed from server downloading theme packet.
It should be understood that being currently installed on if the theme packet version number stored on server is less than or equal in client Theme packet version number, that is to say, that the theme packet stored on server is not newest theme packet, then just without according to should Theme packet address is installed from server downloading theme packet, continues to use the theme skin being currently installed on.
By above mode, determine whether the theme packet stored on server is newest theme packet according to version number, when When for newest theme packet, then theme packet is downloaded into client and is installed, ensure that the theme skin of replacement is newest Theme skin, user experience are good.
During theme packet is issued to client due to server, it is understood that there may be malicious attack causes in theme packet Picture resource replaced by some malice pictures.Therefore, the embodiment of the present disclosure can also identification information compare by way of, Existing malicious attack during preventing theme packet from issuing.
That is, optionally, in step s 13, can also be the identification information for first obtaining theme packet, then judgement mark Whether consistent with default identification information know information, if identification information is consistent with default identification information, according to theme packet address, It is installed from server downloading theme packet.
Identification information is used for unique identification theme packet, if theme packet is substituted with some malice pictures in other rogue programs In picture resource, which can be changed, therefore, by comparing the identification information and default identification information of theme packet, It can determine whether the picture in theme packet is replaced by malice picture.
It should be understood that the identification information of theme packet can be the customized character string of user, it is also possible to user certainly Number of definition, etc., the disclosure are not construed as limiting this, as long as the identification information can determine the uniqueness of theme packet.
By above mode, it can prevent the picture in theme packet from being disliked according to the comparison of the identification information of theme packet It is intended to piece replacement, guarantees the safety that client-side theme skin is shown.
Optionally, in step S14, when theme packet includes for showing the master shown in time range in the future one Skin is inscribed, can first judge whether current time is located in display time range, if current time is located at display time range It is interior, then call theme skin to be shown from the theme packet newly installed, but if current time is not at display time model In enclosing, then pre-stored Default Subject skin in client is called to be shown.
Show that time range includes start time and finish time, the developer that can be destination application is customized The a period of time in future, when being located in display time range at current time, client, which is shown, to be downloaded from a server and installs The corresponding theme skin of theme packet, otherwise, client shows pre-stored Default Subject skin.
When Default Subject skin is that destination application is downloaded to client for the first time, the installation kit of destination application In include theme skin, after the destination application is installed to client, which just has been stored in visitor In the end of family, until the destination application is unloaded by client.
For example, 0 00 dividing when assigning to 7 days 0 October in 2018 when display time range is 1 day 0 October in 2018, that is, display During the National Day that time range is 2018, and the theme packet including National Day theme skin is stored on server, then working as When the preceding moment is during National Day, client can call directly the picture in the mounted theme packet including National Day theme skin Resource and the corresponding pattern of picture resource show National Day theme skin, and during then having spent National Day, client unloads automatically has pacified The theme packet including National Day theme skin of dress shows Default Subject skin.
By above mode, spy can be shown in specific time by the display time range of setting theme packet automatically Fixed theme skin realizes the automatic replacement of theme skin.
The method of the skin that shows topics of disclosure offer is provided below with a complete embodiment.
Firstly, being previously stored with theme packet in server, setting client sent target to server at interval of 5 hours and answers Request is updated with the theme of program, server sends to client and uses after the theme for receiving client transmission updates request The response message of request is updated in response subject, wherein response message includes theme packet address, the display time of theme packet, master Inscribe the version number of packet and the packet name of theme packet.
After client receives above-mentioned response message, first according to the packet name of theme packet, the theme packet of server storage is judged Whether it is already installed in client, if be not installed in client, further judges the theme stored on server again Whether the version number of packet is greater than the version number for the theme packet being currently installed in client, that is, judges the theme stored on server Whether packet is latest edition, if it is latest edition, then further judges the included identification information of theme packet and default mark letter Whether breath is consistent, if unanimously, installed from downloading to theme packet in client on server.
After theme packet is installed to client, if current time in display time range, calls mounted master Picture resource and the corresponding pattern of picture resource in topic packet, show the corresponding theme skin of the theme packet.If be somebody's turn to do in display Theme skin for a period of time after, determine that current time not in display time range, then calls pre-stored silent in client Recognize theme packet, shows Default Subject skin.
In the embodiments of the present disclosure, what server issued is the corresponding theme packet address of theme skin, rather than theme skin The corresponding picture resource of skin, when needing replacing theme skin, client is not necessarily to carry out the conversion of picture, but can directly adjust With the picture resource downloaded and be mounted in local theme packet according to theme packet address, reduce picture load to a certain extent Time accelerates the starting time of application program, optimizes user experience.Also, in the embodiment of the present disclosure, by setting theme The display time of skin can show specific subject skin in specific time, realize the quick-replaceable of theme skin.
Based on the same inventive concept, the disclosure also provides a kind of device of skin that shows topics, and Fig. 2 is exemplary according to one Implement a kind of block diagram of the device 20 of the skin that shows topics exemplified.Referring to Fig. 2, which includes sending module 21, is received Module 22, download module 23 and calling module 24.
Sending module 21, the theme for being configured as sending destination application to server update request.
Receiving module 22 is configured as receiving the response for updating request for responding the theme that the server is sent Message, the response message include theme packet address, the theme packet address be it is stored in the server can be described Client is called directly to replace the corresponding address of theme packet of the theme skin of the display interface of the destination application.
Download module 23 is configured as downloading the theme packet according to the theme packet address from the server and carrying out Installation.
Calling module 24 is configured as adjusting from the theme packet newly installed when the destination application starts It is shown with theme skin.
Optionally, referring to Fig. 3, calling module 24 includes:
First judging submodule 241 is configured as in the theme packet including for showing in time range in the future one When the theme skin shown, judge whether current time is located in the display time range;
First calls submodule 242, is configured as when being located in the display time range at current time, from new installation The theme packet in call theme skin shown;
Second calls submodule 243, is configured as when being not in the display time range at current time, calls Pre-stored Default Subject skin is shown in the client.
Optionally, sending module 21 is configured as sending the target application journey to the server according to the scheduled period The theme of sequence updates request.
Optionally, referring to Fig. 4, download module 23 includes:
Second judgment submodule 231, for downloading the theme packet from the server according to the theme packet address Before being installed, when the response message includes the version number of the theme packet, judge whether the version number is greater than institute State the version number for the theme packet being currently installed in client;
First downloading submodule 232, is configured as being greater than the theme being currently installed in the client in the version number When the version number of packet, according to the theme packet address, the theme packet is downloaded from the server and is installed.
Optionally, referring to Fig. 5, download module 23 includes:
First acquisition submodule 233 is configured as downloading the master from the server according to the theme packet address Before topic packet is installed, the identification information of the theme packet is obtained, wherein the identification information is for main described in unique identification Topic packet;
Third judging submodule 234 is configured as judging whether the identification information is consistent with default identification information;
Second downloading submodule 235 is configured as when the identification information is consistent with the default identification information, according to The theme packet address is downloaded the theme packet from the server and is installed.
Optionally, referring to Fig. 6, download module 23 includes:
Second acquisition submodule 236, is configured as according to the download address, obtains the theme packet from the server Corresponding picture resource and the corresponding pattern of the picture resource;
Submodule 237 is written, is configured as the picture resource and the pattern being written to institute in a manner of binary It states in the default file that client pre-saves;
Calling module 24 includes:
Third calls submodule 244, is configured as adjusting from the default file when the destination application starts With picture resource or pattern, to show the corresponding theme skin of the theme packet.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Based on the same inventive concept, the disclosure also provides a kind of computer readable storage medium, is stored thereon with computer The step of program instruction, the method for the skin that shows topics that the realization disclosure provides when which is executed by processor.
Based on the same inventive concept, the disclosure also provides a kind of device of skin that shows topics, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The theme for sending destination application to server updates request;
Receive the response message that request is updated for responding the theme that the server is sent, the response message packet Theme packet address is included, the theme packet address is stored in the server can be called directly by the client to replace The corresponding address of theme packet of the theme skin of the display interface of the destination application;
According to the theme packet address, the theme packet is downloaded from the server and is installed;
In destination application starting, theme skin is called to be shown from the theme packet newly installed.
Fig. 7 is a kind of block diagram of the device 700 of skin that shows topics shown according to an exemplary embodiment.For example, dress Setting 700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 7, device 700 may include following one or more components: processing component 702, memory 704, electric power Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and Communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 706 provides electric power for the various assemblies of device 700.Electric power assembly 706 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When device 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of method for the skin that shows topics is applied to client characterized by comprising
The theme for sending destination application to server updates request;
The response message that request is updated for responding the theme that the server is sent is received, the response message includes master Packet address is inscribed, the theme packet address is stored in the server can be called directly by the client described in replacement The corresponding address of theme packet of the theme skin of the display interface of destination application;
According to the theme packet address, the theme packet is downloaded from the server and is installed;
In destination application starting, theme skin is called to be shown from the theme packet newly installed.
2. the method for the skin according to claim 1 that shows topics, which is characterized in that the theme packet includes for inciting somebody to action Carry out the theme skin shown in a display time range, it is described called from the theme packet newly installed theme skin into Row is shown, comprising:
Judge whether current time is located in the display time range;
If current time is located in the display time range, from the theme packet newly installed call theme skin into Row display;
If current time is not in the display time range, pre-stored default master in the client is called Topic skin is shown.
3. the method for the skin according to claim 1 that shows topics, which is characterized in that described to be answered to server transmission target Request is updated with the theme of program, comprising:
Request is updated to the theme that the server sends destination application according to the scheduled period.
4. the method for the skin according to claim 1 to 3 that shows topics, which is characterized in that the response message includes The version number of the theme packet, it is described to download the theme packet according to the theme packet address from the server and installed, Include:
Judge whether the version number is greater than the version number for the theme packet being currently installed in the client;
If the version number is greater than the version number for the theme packet being currently installed in the client, according to the theme packet Location is downloaded the theme packet from the server and is installed.
5. the method for the skin according to claim 1 to 3 that shows topics, which is characterized in that described according to the theme Packet address is downloaded the theme packet from the server and is installed, comprising:
Obtain the identification information of the theme packet, wherein the identification information is for theme packet described in unique identification;
Judge whether the identification information is consistent with default identification information, if the identification information and the default identification information Unanimously, then the theme packet is downloaded from the server and is installed according to the theme packet address.
6. the method for the skin according to claim 1 to 3 that shows topics, which is characterized in that described according to the theme Packet address is downloaded the theme packet from the server and is installed, comprising:
According to the download address, the corresponding picture resource of theme packet and the picture resource pair are obtained from the server The pattern answered;
The picture resource and the pattern are written to the default file that the client pre-saves in a manner of binary In;
In destination application starting, theme skin is called to be shown from the theme packet newly installed, comprising:
In destination application starting, picture resource or pattern are called, from the default file to show the master Topic wraps corresponding theme skin.
7. a kind of device for the skin that shows topics, which is characterized in that be applied to client, comprising:
Sending module, the theme for being configured as sending destination application to server update request;
Receiving module is configured as receiving the response message for updating request for responding the theme that the server is sent, The response message includes theme packet address, the theme packet address be it is stored in the server can be by the client It calls directly to replace the corresponding address of theme packet of the theme skin of the display interface of the destination application;
Download module is configured as downloading the theme packet according to the theme packet address from the server and being installed;
Calling module is configured as calling theme from the theme packet newly installed when the destination application starts Skin is shown.
8. the device of the skin according to claim 7 that shows topics, which is characterized in that the calling module includes:
First judging submodule is configured as in the theme packet including being shown for showing in time range in the future one Theme skin when, judge whether current time is located in the display time range;
First calls submodule, is configured as when being located in the display time range at current time, described in newly installing Theme skin is called to be shown in theme packet;
Second calls submodule, is configured as calling the visitor when being not in the display time range at current time Pre-stored Default Subject skin is shown in the end of family.
9. the device of the skin according to claim 7 that shows topics, which is characterized in that the sending module is configured as root Request is updated to the theme that the server sends the destination application according to the scheduled period.
10. according to the device of any skin that shows topics of claim 7-9, which is characterized in that the download module packet It includes:
Second judgment submodule, for downloading the theme packet from the server and being pacified according to the theme packet address Before dress, when the response message includes the version number of the theme packet, judge whether the version number is greater than the client The version number for the theme packet being currently installed in end;
First downloading submodule, is configured as being greater than the version for the theme packet being currently installed in the client in the version number Number when, according to the theme packet address, download the theme packet from the server and installed.
11. according to the device of any skin that shows topics of claim 7-9, which is characterized in that the download module packet It includes:
First acquisition submodule, is configured as according to the theme packet address, from the server download the theme packet into Before row installation, the identification information of the theme packet is obtained, wherein the identification information is for theme packet described in unique identification;
Third judging submodule is configured as judging whether the identification information is consistent with default identification information;
Second downloading submodule, is configured as when the identification information is consistent with the default identification information, according to the master Packet address is inscribed, the theme packet is downloaded from the server and is installed.
12. according to the device of any skin that shows topics of claim 7-9, which is characterized in that the download module packet It includes:
Second acquisition submodule, is configured as according to the download address, and it is corresponding to obtain the theme packet from the server Picture resource and the corresponding pattern of the picture resource;
Submodule is written, is configured as the picture resource and the pattern being written to the client in a manner of binary In the default file pre-saved;
The calling module includes:
Third calls submodule, is configured as calling picture from the default file when the destination application starts Resource or pattern, to show the corresponding theme skin of the theme packet.
13. a kind of device for the skin that shows topics characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The theme for sending destination application to server updates request;
The response message that request is updated for responding the theme that the server is sent is received, the response message includes master Packet address is inscribed, the theme packet address is stored in the server can be called directly by the client described in replacement The corresponding address of theme packet of the theme skin of the display interface of destination application;
According to the theme packet address, the theme packet is downloaded from the server and is installed;
In destination application starting, theme skin is called to be shown from the theme packet newly installed.
14. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that the program instruction The step of any one of claim 1~6 the method is realized when being executed by processor.
CN201811333392.8A 2018-11-09 2018-11-09 Show topics the method, apparatus and computer readable storage medium of skin Pending CN109558042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811333392.8A CN109558042A (en) 2018-11-09 2018-11-09 Show topics the method, apparatus and computer readable storage medium of skin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811333392.8A CN109558042A (en) 2018-11-09 2018-11-09 Show topics the method, apparatus and computer readable storage medium of skin

Publications (1)

Publication Number Publication Date
CN109558042A true CN109558042A (en) 2019-04-02

Family

ID=65865942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811333392.8A Pending CN109558042A (en) 2018-11-09 2018-11-09 Show topics the method, apparatus and computer readable storage medium of skin

Country Status (1)

Country Link
CN (1) CN109558042A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457110A (en) * 2019-08-16 2019-11-15 西安闻泰电子科技有限公司 System theme management method, device, equipment and storage medium
CN111240718A (en) * 2020-01-19 2020-06-05 北京无限光场科技有限公司 Theme updating method and device, electronic equipment and medium
CN111625253A (en) * 2020-04-28 2020-09-04 北京字节跳动网络技术有限公司 Skin image updating method and device and electronic equipment
CN112000253A (en) * 2020-09-01 2020-11-27 腾讯数码(天津)有限公司 Theme resource processing method and device, computer equipment and storage medium
CN112256295A (en) * 2020-09-21 2021-01-22 北京达佳互联信息技术有限公司 Application program updating method, device, equipment and storage medium
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device
CN115756675A (en) * 2022-10-09 2023-03-07 通号智慧城市研究设计院有限公司 Method and device for switching APP theme

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915257A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Method and device for replacing theme based on Android system application
CN105389176A (en) * 2015-10-15 2016-03-09 中国民生银行股份有限公司 Application based skin processing method and apparatus
CN106227512A (en) * 2016-07-07 2016-12-14 网易(杭州)网络有限公司 The replacing skins method and device of application software display interface
US20170286092A1 (en) * 2016-03-29 2017-10-05 Hisense Mobile Communications Technology Co., Ltd. Terminal device and version upgrading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915257A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Method and device for replacing theme based on Android system application
CN105389176A (en) * 2015-10-15 2016-03-09 中国民生银行股份有限公司 Application based skin processing method and apparatus
US20170286092A1 (en) * 2016-03-29 2017-10-05 Hisense Mobile Communications Technology Co., Ltd. Terminal device and version upgrading method
CN106227512A (en) * 2016-07-07 2016-12-14 网易(杭州)网络有限公司 The replacing skins method and device of application software display interface

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457110A (en) * 2019-08-16 2019-11-15 西安闻泰电子科技有限公司 System theme management method, device, equipment and storage medium
CN111240718A (en) * 2020-01-19 2020-06-05 北京无限光场科技有限公司 Theme updating method and device, electronic equipment and medium
CN111625253A (en) * 2020-04-28 2020-09-04 北京字节跳动网络技术有限公司 Skin image updating method and device and electronic equipment
CN112000253A (en) * 2020-09-01 2020-11-27 腾讯数码(天津)有限公司 Theme resource processing method and device, computer equipment and storage medium
CN112000253B (en) * 2020-09-01 2022-02-11 腾讯数码(天津)有限公司 Theme resource processing method and device, computer equipment and storage medium
CN112256295A (en) * 2020-09-21 2021-01-22 北京达佳互联信息技术有限公司 Application program updating method, device, equipment and storage medium
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device
CN115756675A (en) * 2022-10-09 2023-03-07 通号智慧城市研究设计院有限公司 Method and device for switching APP theme

Similar Documents

Publication Publication Date Title
CN109558042A (en) Show topics the method, apparatus and computer readable storage medium of skin
CN105847430B (en) Mix application page data access method and device
CN104951336B (en) application program installation method and device
CN107862514B (en) Bus card management method, device and system and storage medium
CN104902086B (en) Alarm clock ringing method and device
CN104090785B (en) Application program provides method, apparatus and system
CN104951335B (en) The processing method and processing device of application program installation kit
CN105553963B (en) The control method and device of positioning service
CN106126685B (en) Page loading method and device
JP2011254510A (en) Dynamic wallpaper on mobile communication device
CN107357613B (en) Application updating method and device and computer readable storage medium
CN105808305B (en) Static resource loading method and device
EP3428790B1 (en) Method and device for displaying application interface
CN106775903B (en) Security policy file updating method and device
CN108206998A (en) Obtain the method and device of end message
CN111198706A (en) Method for updating system function, apparatus for updating system function and storage medium
CN103905442A (en) Wakeup method and device in data synchronization
CN107463372B (en) Data-driven page updating method and device
CN105323318B (en) Amending method, device and the equipment of parameter
CN109388423A (en) Method for upgrading software and device
CN105893128B (en) A kind of method and apparatus of application call management
CN105677428A (en) Upgrading method and device for terminal and terminal
CN106162612B (en) Control the method and device of Root authority
CN107632835A (en) Using installation method and device
CN104951337B (en) File increment update method and device

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