CN112612565A - Vehicle-mounted theme switching method, electronic equipment and computer storage medium - Google Patents

Vehicle-mounted theme switching method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN112612565A
CN112612565A CN202011504278.4A CN202011504278A CN112612565A CN 112612565 A CN112612565 A CN 112612565A CN 202011504278 A CN202011504278 A CN 202011504278A CN 112612565 A CN112612565 A CN 112612565A
Authority
CN
China
Prior art keywords
resource
theme
packet
superposition
theme switching
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
CN202011504278.4A
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx 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 Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202011504278.4A priority Critical patent/CN112612565A/en
Publication of CN112612565A publication Critical patent/CN112612565A/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/451Execution arrangements for user interfaces

Abstract

The invention provides a vehicle-mounted theme switching method, electronic equipment and a computer storage medium, wherein the method comprises the following steps: receiving a theme switching instruction of the car machine; calling a plurality of resource superposition packets of a new theme corresponding to the theme switching instruction from a preset theme packet storage area, wherein the resource superposition packets correspond to a plurality of application programs on the vehicle machine one by one; and performing theme resource coverage on the corresponding application program by utilizing each resource superposition packet to complete theme switching of the vehicle machine. Based on the technical scheme provided by the invention, the resource superposition packet does not need to be installed, so that the time and the vehicle machine storage resources are saved.

Description

Vehicle-mounted theme switching method, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of vehicle devices, and in particular, to a vehicle device theme switching method, an electronic device, and a computer storage medium.
Background
The abundant car machine theme can provide individualized car machine for car owner and passenger and experience. The car machine theme has uniformity, and one theme contains resources of a plurality of application programs. In the prior art, each theme is applied, a resource superposition package of a plurality of application programs needs to be installed, the resource superposition package is installed through a system package management service, and the more packages are installed, the longer the total installation time is. The installed overlay packages are stored in an installation directory and only by unloading can the storage space be freed. In addition, the more superposed packages are installed, the larger the occupied storage space is, the smaller the usable space of the system is, and the running speed of the vehicle machine is reduced.
Disclosure of Invention
The invention aims to provide a car-machine theme switching method with high theme switching speed.
A further object of the present invention is to reduce the storage space occupied by the car machine theme resources.
Particularly, the invention provides a car machine theme switching method, which comprises the following steps:
receiving a theme switching instruction of the car machine;
calling a plurality of resource superposition packets of a new theme corresponding to the theme switching instruction from a preset theme packet storage area, wherein the resource superposition packets correspond to a plurality of application programs on the vehicle machine one by one;
and performing theme resource coverage on the corresponding application program by utilizing each resource superposition packet to complete theme switching of the vehicle machine.
Optionally, the step of performing theme resource coverage on the corresponding application program by using each resource overlay packet, and completing theme switching of the car machine includes:
analyzing each resource superposition packet to obtain a plurality of superposition resources;
generating a mapping relation table of storage paths, resource identifiers and resource types of the superposed resources;
and calling the corresponding superposition resources to cover the superposition resources with the same resource identification and the same resource type of the original theme in the corresponding application program by using the storage path in the mapping relation table, and finishing the theme switching of the car machine.
Optionally, after the step of retrieving the resource overlay packet of the new theme corresponding to the theme switching instruction from the preset theme packet storage area, the method further includes: and deleting the cache information of the original theme from the car machine.
Optionally, the name of the resource overlay packet of the new topic is the same as the name of the corresponding resource overlay packet in the original topic.
Optionally, the storage path of the resource overlapping package of the new theme is different from that of the resource overlapping package of the original theme.
Optionally, the resource type includes at least one of: images, colors, and character strings.
Optionally, before the step of retrieving the multiple resource overlay packets corresponding to the theme switching instruction from the preset theme packet storage area, the method further includes:
and starting a preset theme switching animation until the car machine finishes theme switching.
Optionally, the resource overlay packet is a static type resource overlay packet.
According to another aspect of the present invention, there is also provided an electronic apparatus, including:
a processor;
a memory storing a computer program;
the computer program, when executed by the processor, causes the electronic device to perform any of the methods described above.
According to yet another aspect of the invention, there is also provided a computer storage medium having stored therein at least one instruction, at least one program, set of code or set of instructions to be loaded by a processor and to carry out a method according to any preceding claim.
After a theme switching instruction of the vehicle-mounted device is received, a plurality of resource overlapping packages of a new theme corresponding to the theme switching instruction are called from a preset theme package storage area, and the resource overlapping packages correspond to a plurality of application programs on the vehicle-mounted device one by one. And then, performing theme resource coverage on the corresponding application program by using each resource superposition packet to complete theme switching of the vehicle machine. The resource superposition packet does not need to be installed, so that the time and vehicle machine storage resources are saved.
The foregoing is a summary of the present invention, and so that the technical means of the present invention will be more clearly understood and appreciated in light of the following description, the present invention will now be described in detail with reference to the accompanying drawings.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a schematic flowchart of a car-in-vehicle theme switching method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a car-in-vehicle theme switching method according to a preferred embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the technical features of the embodiments and alternative embodiments of the present invention may be combined with each other without conflict.
In order to solve the above problems, the present invention provides a car-in-vehicle theme switching method, and fig. 1 is a schematic flowchart of the car-in-vehicle theme switching method according to an embodiment of the present invention. Referring to fig. 1, the method may include at least the following steps S102-S106.
S102: and receiving a theme switching instruction of the car machine.
The theme switching instruction may be sent by a user, or may be automatically sent after the car machine is turned on.
S104: and calling a plurality of resource superposition packets of the new theme corresponding to the theme switching instruction from a preset theme packet storage area, wherein the plurality of resource superposition packets correspond to a plurality of application programs on the vehicle machine one to one.
After receiving the theme switching instruction, the theme pack provider can acquire a plurality of resource superposition packs corresponding to the theme switching instruction by adopting a vehicle-mounted built-in and network downloading mode and copy the resource superposition packs to a preset theme pack storage area. And then, the theme switching instruction is sent to the theme pack application party, so that the theme pack application party calls the corresponding resource superposition pack from the theme pack storage area.
S106: and performing theme resource coverage on the corresponding application program by using each resource superposition packet to complete theme switching of the vehicle machine.
In the method provided by the invention, after a theme switching instruction of the vehicle-mounted device is received, a plurality of resource superposition packages of a new theme corresponding to the theme switching instruction are called from a preset theme package storage area, wherein the resource superposition packages correspond to a plurality of application programs on the vehicle-mounted device one by one. And then, performing theme resource coverage on the corresponding application program by using each resource superposition packet to complete theme switching of the vehicle machine. The resource superposition packet does not need to be installed, so that the time and vehicle machine storage resources are saved.
Fig. 2 is a schematic flowchart of a car-in-vehicle theme switching method according to a preferred embodiment of the present invention. Referring to fig. 2, some embodiments of the invention are shown. The above step S106 may comprise at least the following steps S1062-S1066.
S1062: and analyzing the resource superposition packets to obtain a plurality of superposition resources.
S1064: and generating a mapping relation table about the superposed resources, the resource identifiers and the resource types.
S1066: and covering the superposed resources with the same resource identification and the same resource type of the original theme in the corresponding application program by utilizing the superposed resources in the mapping relation table to complete the theme switching of the vehicle machine.
See step S1062, where the resource superposition packet may be a static type resource superposition packet. The theme pack application side can mark the corresponding resource overlay package as an effective state when analyzing the resource overlay package. Each resource superposition packet comprises a plurality of superposition resources, each superposition resource has a corresponding resource identifier and a corresponding resource type, the resource identifier can be in a text form or a digital form, and the like, and the invention is not particularly limited. The resource types may include images, colors, strings, and the like.
After acquiring the overlay resource, in step S1064, a mapping relationship table about the overlay resource, the resource identifier, and the resource type may be generated. Specifically, the identification information of the application program corresponding to the superposed resource may be indicated in the resource mapping table, so as to facilitate the replacement of the resource information later.
After the resource mapping table is generated, the application program can be notified to restart, the page is refreshed, and a new theme is replaced. Specifically, the application program performs page redrawing after receiving the restart command, and overlays resources of the same resource identifier and the same resource type of the original theme in the corresponding application program are covered by using the overlay resources in the mapping relationship table, that is, the overlay resources of the new theme, so as to complete theme switching of the in-vehicle machine. For example, when the application is restarted, the display page is redrawn, the resource information of the original theme of the application is identified, a triangle picture with a resource identifier icon in the application is identified, and a star picture with a resource identifier icon in the resource mapping table is identified. And then, covering the triangular picture of the original theme by using the star-shaped picture in the resource mapping table, and so on, thereby completing theme switching.
Compared with the non-static resource superposition packet, the static resource superposition packet is not required to be installed and only needs to be covered. The steps of changing the effective state are reduced, the installation process is reduced, the installation space is saved, and the theme switching speed is greatly improved.
Before the above step S104, the method further comprises: and starting the preset theme switching animation until the car machine finishes theme switching. The theme pack provider starts the preset theme switching animation, so that the phenomenon that a user operates a vehicle machine or an application in the theme switching process to lose user operation data can be avoided as much as possible, and the user operation experience is reduced.
In addition, in some embodiments of the present invention, in order to reduce the addition and deletion management on the resource overlay packet, the name of the resource overlay packet of the new topic is the same as the name of the corresponding resource overlay packet in the original topic.
In addition, in some embodiments of the present invention, the storage path of the resource overlay packet of the new topic is different from that of the resource overlay packet of the original topic. Therefore, the superposition resources called according to the storage path in the mapping relation table can be ensured to be superposition resources of the new theme.
In addition, in order to further save the storage space of the car machine, after step S106, the method further includes: and deleting the cache information of the original theme from the car machine.
In addition, in order to make the superposition resources in the superposition resource package more adaptive to the application program and make the superposition resources more normal and beautiful in the application program. The resource superposition packet with different resolutions can be set, so that when the car machine theme is switched, the resource superposition packet with the corresponding resolution can be used according to the resolution of the car machine.
Based on the same inventive concept, the present invention further provides an electronic device 300, as shown in fig. 3, the electronic device 300 comprises a processor 310 and a memory 320 storing a computer program 321. The computer program 321, when executed by the processor 310, causes the electronic device 300 to perform the method according to any of the embodiments described above.
Based on the same inventive concept, the present invention also provides a computer storage medium having at least one instruction, at least one program, set of code, or set of instructions stored therein, the at least one instruction, the at least one program, set of code, or set of instructions being loaded by a processor and performing a method as described in any of the above embodiments.
The invention provides a vehicle-mounted device theme switching method, electronic equipment and a computer storage medium. And then, performing theme resource coverage on the corresponding application program by using each resource superposition packet to complete theme switching of the vehicle machine. Based on the technical scheme provided by the invention, the resource superposition packet does not need to be installed, so that the time and the vehicle machine storage resources are saved.
Furthermore, the method and the device utilize each resource superposition packet to carry out theme resource coverage on the corresponding application program, delete the cache information of the original theme from the vehicle machine after the theme switching of the vehicle machine is completed, and further save the storage resources of the vehicle machine.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (10)

1. A car machine theme switching method is characterized by comprising the following steps:
receiving a theme switching instruction of the car machine;
calling a plurality of resource superposition packets of a new theme corresponding to the theme switching instruction from a preset theme packet storage area, wherein the resource superposition packets correspond to a plurality of application programs on the vehicle machine one by one;
and performing theme resource coverage on the corresponding application program by utilizing each resource superposition packet to complete theme switching of the vehicle machine.
2. The method according to claim 1, wherein the step of performing theme resource overlay on the corresponding application program by using each resource overlay packet to complete theme switching of the car machine comprises:
analyzing each resource superposition packet to obtain a plurality of superposition resources;
generating a mapping relation table of storage paths, resource identifiers and resource types of the superposed resources;
and calling the corresponding superposition resources to cover the superposition resources with the same resource identification and the same resource type of the original theme in the corresponding application program by using the storage path in the mapping relation table, and finishing the theme switching of the car machine.
3. The method according to claim 2, wherein after the step of retrieving the resource overlay packet of the new theme corresponding to the theme switching instruction from the preset theme packet storage area, the method further comprises:
and deleting the cache information of the original theme from the car machine.
4. The method of claim 2, wherein the name of the resource overlay package of the new topic is the same as the name of the corresponding resource overlay package in the original topic.
5. The method of claim 2, wherein the storage paths of the resource overlay package of the new topic and the resource overlay package of the original topic are different.
6. The method of claim 2, wherein the resource type comprises at least one of: images, colors, and character strings.
7. The method according to claim 1, wherein before the step of retrieving the plurality of resource overlay packets corresponding to the theme switching instruction from a preset theme packet storage area, the method further comprises:
and starting a preset theme switching animation until the car machine finishes theme switching.
8. The method of claim 1, wherein the resource overlay packet is a static type resource overlay packet.
9. An electronic device, comprising:
a processor;
a memory storing a computer program;
the computer program, when executed by the processor, causes the electronic device to perform the method of any of claims 1-8.
10. A computer storage medium having stored therein at least one instruction, at least one program, a set of code or instructions, which is loaded by a processor and which performs the method of any one of claims 1 to 8.
CN202011504278.4A 2020-12-18 2020-12-18 Vehicle-mounted theme switching method, electronic equipment and computer storage medium Pending CN112612565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011504278.4A CN112612565A (en) 2020-12-18 2020-12-18 Vehicle-mounted theme switching method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011504278.4A CN112612565A (en) 2020-12-18 2020-12-18 Vehicle-mounted theme switching method, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112612565A true CN112612565A (en) 2021-04-06

Family

ID=75240552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011504278.4A Pending CN112612565A (en) 2020-12-18 2020-12-18 Vehicle-mounted theme switching method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112612565A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702197A (en) * 2013-12-31 2014-04-02 乐视致新电子科技(天津)有限公司 Image resource re-directing method and device
WO2014173141A1 (en) * 2013-04-24 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method of switching desktop subjects of mobile terminal and its switching apparatus
CN109542434A (en) * 2018-10-25 2019-03-29 深圳点猫科技有限公司 A kind of the theme dynamic switching method and electronic equipment of language based on programming

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014173141A1 (en) * 2013-04-24 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method of switching desktop subjects of mobile terminal and its switching apparatus
CN103702197A (en) * 2013-12-31 2014-04-02 乐视致新电子科技(天津)有限公司 Image resource re-directing method and device
CN109542434A (en) * 2018-10-25 2019-03-29 深圳点猫科技有限公司 A kind of the theme dynamic switching method and electronic equipment of language based on programming

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
CN107832100B (en) APK plug-in loading method and terminal thereof
CN103136027B (en) Immediate updating device and immediate updating method
CN112988281B (en) Application starting method and device
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN110377361A (en) Data load method, device, computer equipment and storage medium
WO2013075585A1 (en) System and method for managing service properties
CN109725977A (en) A kind of more application display methods and terminal device based on android system
CN105404547A (en) Fusion method and device of operating system
CN111290773A (en) System upgrading method, device and readable storage medium
CN105607901B (en) Method and device for optimizing system memory and terminal equipment
CN112612565A (en) Vehicle-mounted theme switching method, electronic equipment and computer storage medium
CN103297516B (en) The polymorphic type of a kind of application provides method, system and device
CN108268261A (en) UI method for customizing, storage medium and the intelligent terminal of a kind of intelligent terminal
CN101986662A (en) Widget instance operation method and system
CN107783837B (en) Method and device for performing storage expansion and electronic equipment
CN112104513B (en) Visual software load method, device, equipment and storage medium
CN109068265A (en) Quickly method, system, server and the storage medium of binding account and vehicle
CN112115393B (en) Page loading method, system, device and medium
CN110704157B (en) Application starting method, related device and medium
CN108733444B (en) Page refreshing method and device, storage medium and mobile terminal
CN110888649B (en) Application deployment method, application baseline creation method and device
CN106569912A (en) Method and system of restoring factory settings for mobile terminal
CN115437551A (en) Data cloning method, device, storage medium and computer program product
CN113010206A (en) Containerization method, system and device for WEB application system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220323

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: No.c101, chuanggu start up area, taizihu cultural Digital Industrial Park, No.18 Shenlong Avenue, Wuhan Economic Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.