CN107844315B - Strategy for upgrading app theme skin in Android - Google Patents

Strategy for upgrading app theme skin in Android Download PDF

Info

Publication number
CN107844315B
CN107844315B CN201711440011.1A CN201711440011A CN107844315B CN 107844315 B CN107844315 B CN 107844315B CN 201711440011 A CN201711440011 A CN 201711440011A CN 107844315 B CN107844315 B CN 107844315B
Authority
CN
China
Prior art keywords
skin
theme
theme skin
upgrading
app
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711440011.1A
Other languages
Chinese (zh)
Other versions
CN107844315A (en
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 Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology 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 Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201711440011.1A priority Critical patent/CN107844315B/en
Publication of CN107844315A publication Critical patent/CN107844315A/en
Application granted granted Critical
Publication of CN107844315B publication Critical patent/CN107844315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a strategy for upgrading app subject skin in Android, which comprises the following steps: step 1, judging whether an app software built-in theme skin needs to be upgraded or not, and setting an upgrade flag bit of the built-in theme skin to true; step 2, judging whether the theme skin needs to be upgraded by the network download, and setting the upgrade flag bit of the download theme skin as true; step 3, according to the values of the built-in theme skin upgrading zone bit and the downloading theme skin upgrading zone bit, when the value is true, the built-in theme skin upgrading treatment and/or the downloading theme skin upgrading treatment are/is executed; and 4, restarting the app and loading the theme skin of the new version. According to the method and the device, the time and steps for upgrading the theme skin are reasonably arranged, and when the local old version theme skin of the user is upgraded, the occurrence of upgrading errors is reduced, the damage of the theme skin is avoided, the user experience is improved, and the personalized requirements of the user are met.

Description

Strategy for upgrading app theme skin in Android
Technical Field
The invention relates to the technical field of app theme skin management, in particular to a strategy for upgrading an app theme skin in Android. The theme skin is used to change the skin style so that the app presents a different style of interface.
Background
The interface of the app in the Android is hard to avoid visual fatigue for a long time, the theme skin can be used for changing the skin style, interfaces of different styles are presented for users to use, the user experience is improved, and the personalized requirements of the users are met.
The theme skin is a personalized change made according to the default interface style of the app, and if the default interface style of the new app is changed in a large frame manner, the original theme skin installation package cannot be used on the new app. Therefore, after the default interface style of the new version app changes greatly, when the new version app is released, the old version theme skin local to the user needs to be upgraded.
The theme skin is generally divided into two types, namely, a theme skin with built-in app software and a theme skin downloaded through a network, the two types of theme skins are stored in a local place of a user and used by the app, and when the theme skin is upgraded, the two types of theme skins need to be upgraded respectively.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a strategy for upgrading the app theme skin in the Android, the time and steps for upgrading the theme skin are reasonably arranged, when the local old version theme skin of a user is upgraded, the occurrence of upgrading errors is reduced, the damage of the theme skin is avoided, the user experience is improved, and the personalized requirements of the user are met.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a strategy for upgrading the skin of an app subject in Android is characterized by comprising the following steps:
step 1, judging whether an app software built-in theme skin needs to be upgraded or not, and setting an upgrade flag bit of the built-in theme skin to true;
step 2, judging whether the theme skin needs to be upgraded by the network download, and setting the upgrade flag bit of the download theme skin as true;
step 3, according to the values of the built-in theme skin upgrading zone bit and the downloading theme skin upgrading zone bit, when the value is true, the built-in theme skin upgrading treatment and/or the downloading theme skin upgrading treatment are/is executed;
and 4, restarting the app and loading the theme skin of the new version.
On the basis of the technical scheme, when the theme skin resources are packaged, the theme skin packaging script is called to generate a unique time value,
when the app software uses the resource package, the time value is written into the alert folder of the app software,
when the app software finds that the time value in a certain resource package is newer than the time value stored under the alert folder,
then: it is considered that the theme skin with the built-in app software needs to be upgraded.
On the basis of the technical scheme, when in upgrading, the existing theme skin is deleted from the theme installation catalogue,
decompressing and storing the certain resource packet into the theme installation directory.
On the basis of the above technical solution, a unique time value is generated by calling system.
On the basis of the technical scheme, when the theme skin resources are packaged, a network theme skin version number is set,
the version number of the web theme skin is processed by +1 in the web theme skin background return link,
when the app software uses the resource package, the currently used version number of the web theme skin is saved,
when the app software is started, acquiring the web theme skin version number in the web theme from the server,
comparing the obtained version number of the network theme skin with the previously stored version number of the network theme skin,
if the retrieved version number of the web topic skin is new,
then: it is considered that there is a web download theme skin that needs to be upgraded.
On the basis of the technical scheme, when in upgrading, the existing theme skin is deleted from the theme installation catalogue,
and downloading the network theme skin in the server, decompressing and storing the downloaded network theme skin into a theme installation directory.
According to the strategy for upgrading the app theme skin in the Android, the time and steps for upgrading the theme skin are reasonably arranged, when the local old version theme skin of a user is upgraded, the occurrence of upgrading errors is reduced, the damage of the theme skin is avoided, the user experience is improved, and the personalized requirements of the user are met.
Drawings
The invention has the following drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the strategy for upgrading the app theme skin in the Android system includes the following steps:
step 1, judging whether an app software built-in theme skin needs to be upgraded or not, and setting an upgrade flag bit of the built-in theme skin to true;
step 2, judging whether the theme skin needs to be upgraded by the network download, and setting the upgrade flag bit of the download theme skin as true;
step 3, according to the values of the built-in theme skin upgrading zone bit and the downloading theme skin upgrading zone bit, when the value is true, the built-in theme skin upgrading treatment and/or the downloading theme skin upgrading treatment are/is executed;
and 4, restarting the app and loading the theme skin of the new version.
On the basis of the technical scheme, when the theme skin resources are packaged, the theme skin packaging script is called to generate a unique time value,
when the app software uses the resource package, the time value is written into the alert folder of the app software,
when the app software finds that the time value in a certain resource package is newer than the time value stored under the alert folder,
then: it is considered that the theme skin with the built-in app software needs to be upgraded.
When upgrading, deleting the existing theme skin from the theme installation catalog,
decompressing and storing the certain resource packet into the theme installation directory.
On the basis of the above technical solution, a unique time value is generated by calling system.
System currenttimemillis () is generated as milliseconds from 1 month 1 day 0 of 1970.
On the basis of the technical scheme, when the theme skin resources are packaged, a network theme skin version number is set,
the version number of the web theme skin is processed by +1 in the web theme skin background return link,
when the app software uses the resource package, the currently used version number of the web theme skin is saved,
when the app software is started, acquiring the web theme skin version number in the web theme from the server,
comparing the obtained version number of the network theme skin with the previously stored version number of the network theme skin,
if the retrieved version number of the web topic skin is new,
then: it is considered that there is a web download theme skin that needs to be upgraded.
When upgrading, deleting the existing theme skin from the theme installation catalog,
and downloading the network theme skin in the server, decompressing and storing the downloaded network theme skin into a theme installation directory.
Those not described in detail in this specification are within the skill of the art.

Claims (4)

1. A strategy for upgrading the skin of an app subject in Android is characterized by comprising the following steps:
step 1, judging whether an app software built-in theme skin needs to be upgraded or not, and setting an upgrade flag bit of the built-in theme skin to true;
calling the theme skin packaging script to generate a unique time value when the theme skin resources are packaged,
when the app software uses the resource package, the time value is written into the alert folder of the app software,
when the app software finds that the time value in a certain resource package is newer than the time value stored under the alert folder,
then: considering that the theme skin built in the app software needs to be upgraded;
step 2, judging whether the theme skin needs to be upgraded by the network download, and setting the upgrade flag bit of the download theme skin as true;
when the theme skin resource is packaged, a network theme skin version number is set,
the version number of the web theme skin is processed by +1 in the web theme skin background return link,
when the app software uses the resource package, the currently used version number of the web theme skin is saved,
when the app software is started, acquiring the web theme skin version number in the web theme from the server,
comparing the obtained version number of the network theme skin with the previously stored version number of the network theme skin,
if the retrieved version number of the web topic skin is new,
then: considering that the theme skin needs to be upgraded by network downloading;
step 3, according to the values of the built-in theme skin upgrading zone bit and the downloading theme skin upgrading zone bit, when the value is true, the built-in theme skin upgrading treatment and/or the downloading theme skin upgrading treatment are/is executed;
and 4, restarting the app and loading the theme skin of the new version.
2. Strategy for app-subject skin upgrade in Android as claimed in claim 1, characterized by: when upgrading, deleting the existing theme skin from the theme installation catalog,
decompressing and storing the certain resource packet into the theme installation directory.
3. Strategy for app-subject skin upgrade in Android as claimed in claim 1, characterized by: the unique time value is generated by calling system currenttimemillis (), which is the current millisecond when the resource is packaged.
4. Strategy for app-subject skin upgrade in Android as claimed in claim 1, characterized by: when upgrading, deleting the existing theme skin from the theme installation catalog,
and downloading the network theme skin in the server, decompressing and storing the downloaded network theme skin into a theme installation directory.
CN201711440011.1A 2017-12-27 2017-12-27 Strategy for upgrading app theme skin in Android Active CN107844315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711440011.1A CN107844315B (en) 2017-12-27 2017-12-27 Strategy for upgrading app theme skin in Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711440011.1A CN107844315B (en) 2017-12-27 2017-12-27 Strategy for upgrading app theme skin in Android

Publications (2)

Publication Number Publication Date
CN107844315A CN107844315A (en) 2018-03-27
CN107844315B true CN107844315B (en) 2021-02-09

Family

ID=61684159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711440011.1A Active CN107844315B (en) 2017-12-27 2017-12-27 Strategy for upgrading app theme skin in Android

Country Status (1)

Country Link
CN (1) CN107844315B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021084101A1 (en) * 2019-11-01 2021-05-06 Inplace Ads Limited Systems and methods for replacing a theme of a virtual environment
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040103019A (en) * 2003-05-30 2004-12-08 엘지전자 주식회사 Menu skin data file organization and menu skin generation method
CN104052769A (en) * 2013-03-13 2014-09-17 金蝶软件(中国)有限公司 Method, apparatus and system for updating resources contained by mobile terminal application
CN104915257A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Method and device for replacing theme based on Android system application
CN106227512A (en) * 2016-07-07 2016-12-14 网易(杭州)网络有限公司 The replacing skins method and device of application software display interface
CN106648787A (en) * 2016-12-28 2017-05-10 平安科技(深圳)有限公司 Resource updating method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040103019A (en) * 2003-05-30 2004-12-08 엘지전자 주식회사 Menu skin data file organization and menu skin generation method
CN104052769A (en) * 2013-03-13 2014-09-17 金蝶软件(中国)有限公司 Method, apparatus and system for updating resources contained by mobile terminal application
CN104915257A (en) * 2015-06-08 2015-09-16 青岛海信移动通信技术股份有限公司 Method and device for replacing theme based on Android system application
CN106227512A (en) * 2016-07-07 2016-12-14 网易(杭州)网络有限公司 The replacing skins method and device of application software display interface
CN106648787A (en) * 2016-12-28 2017-05-10 平安科技(深圳)有限公司 Resource updating method and terminal

Also Published As

Publication number Publication date
CN107844315A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
US20170147323A1 (en) Method and electronic device for upgrading software development kit of an application
CN108874437B (en) Online cloud updating method for android application program
CN105138382B (en) A kind of method and terminal of android system upgrading
CN107870787B (en) Application program plug-in loading method and system
CN102622241B (en) A kind of method for upgrading software and device
CN108520059A (en) Loading method, system, computer equipment and the storage medium of the client H5 pages
CN107305553B (en) Method and system for dynamically jumping Hybrid page based on Hybrid App
CN102523268B (en) Client side upgrading method and system
CN110134418A (en) Vehicle upgrade method and device, storage medium and terminal based on space download technology
EP2482187A1 (en) Software upgrading method, software upgrading system and client
CN105786538B (en) software upgrading method and device based on android system
CN104166577B (en) A kind of method and apparatus of mobile terminal system upgrading
CN105867973A (en) Loading method and system for so file in application program
CN110913015A (en) Distributed quick installation method, system and medium for cloud mobile phone APP
CN107844315B (en) Strategy for upgrading app theme skin in Android
CN105808278A (en) Client version upgrading method and device
WO2017113611A1 (en) Method and system for optimizing operation system
CN106874040A (en) Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN108322540A (en) Customized data lead-in method, terminal and computer readable storage medium
CN106713395B (en) Data downloading method and device
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN110147246A (en) Version checking method and device, storage medium and the terminal of space download technology
CN114296753A (en) File publishing method and device, storage medium and electronic device
CN111382259A (en) Analysis method and device for APP crash logs
CN105227600A (en) The method of mobile device system upgrading

Legal Events

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