CN114416212A - Mobile terminal application program data resource processing method and device - Google Patents

Mobile terminal application program data resource processing method and device Download PDF

Info

Publication number
CN114416212A
CN114416212A CN202210113779.2A CN202210113779A CN114416212A CN 114416212 A CN114416212 A CN 114416212A CN 202210113779 A CN202210113779 A CN 202210113779A CN 114416212 A CN114416212 A CN 114416212A
Authority
CN
China
Prior art keywords
resource
resource configuration
configuration file
application program
mobile
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
CN202210113779.2A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210113779.2A priority Critical patent/CN114416212A/en
Publication of CN114416212A publication Critical patent/CN114416212A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for processing data resources of a mobile terminal application program, which can be used in the field of finance, and the method comprises the following steps: receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program; receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to a page tag of the current page; the application can effectively and conveniently reduce the data volume of the mobile terminal application program installation package.

Description

Mobile terminal application program data resource processing method and device
Technical Field
The application relates to the field of mobile development and can also be used in the field of finance, in particular to a method and a device for processing application program data resources of a mobile terminal.
Background
With the popularization of smart phones and the blowout development of service scenes, for any mobile internet Application (APP), the volume of an installation package is larger and larger while the number of the loaded functions is larger and larger, and finally the updating willingness of a user is lower and lower.
In the prior art, some mobile applications choose to embrace cross-end technology, migrating part of the business scenario from C/S architecture to B/S architecture (Browser/Server architecture).
The inventor finds that, by using the B/S architecture, which is really an imminent compromise, the cross-end technology sacrifices part of user experience, and for a long-term user, network consumption is rather large compared with the installation package volume, and the reduction of the installation package volume brought by the method is not obvious, and even the use of the part of the cross-end technology increases the installation package volume.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a mobile terminal application program data resource processing method and device, which can effectively and conveniently reduce the data volume of a mobile terminal application program installation package.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a method for processing data resources of a mobile application, including:
receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program;
and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
Further, the obtaining a resource configuration file from a local cache, loading a static resource in the resource configuration file, and starting the mobile application further includes:
if the resource configuration file does not exist in the preset storage position of the local cache, generating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server so that the resource server returns a resource configuration file according to the version identification in the resource configuration request;
and receiving a resource configuration file sent by the resource server, caching the resource configuration file to the local, loading the static resource in the resource configuration file, and starting the mobile application program.
Further, the loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page further includes:
determining the version identification of the corresponding dynamic resource in the local cache according to the page tag of the current page;
and if the version identification of the dynamic resource is inconsistent with the version identification supported by the current resource configuration file, regenerating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server.
Further, after the regenerating a resource configuration request according to the version identifier of the mobile application and sending the resource configuration request to the corresponding resource server, the method includes:
and updating data of the local cache according to the resource configuration file returned by the resource server.
Further, before the receiving a start instruction of the mobile application and obtaining the resource configuration file from the local cache, the method further includes:
and splitting a resource configuration file prestored in the local cache into static resources required for program starting and dynamic resources corresponding to each page label of the program.
Further, the resource configuration file stored by the resource server includes a static resource corresponding to the version identifier and a dynamic resource corresponding to the version identifier and the page tag.
In a second aspect, the present application provides a mobile terminal application data resource processing apparatus, including:
the static resource loading module is used for receiving a starting instruction of the mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program;
and the dynamic resource loading module is used for receiving a page switching instruction of the mobile application program and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
Further, the static resource loading module comprises:
the resource request unit is used for generating a resource configuration request according to the version identifier of the mobile application program and sending the resource configuration request to a corresponding resource server if the resource configuration file does not exist in the preset storage position of the local cache, so that the resource server returns a resource configuration file according to the version identifier in the resource configuration request;
and the resource caching unit is used for receiving the resource configuration file sent by the resource server, caching the resource configuration file to the local, loading the static resource in the resource configuration file and starting the mobile application program.
Further, the dynamic resource loading module comprises:
the cache version determining unit is used for determining the version identification of the corresponding dynamic resource in the local cache according to the page tag of the current page;
and the version exception processing unit is used for regenerating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server if the version identification of the dynamic resource is inconsistent with the version identification supported by the current resource configuration file.
Further, the dynamic resource loading module further comprises:
and the cache resource updating unit is used for updating data of the local cache according to the resource configuration file returned by the resource server.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for processing the data resources of the application program at the mobile terminal when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for processing data resources of a mobile-end application.
In a fifth aspect, the present application provides a computer program product comprising a computer program/instructions, which when executed by a processor, implement the steps of the method for processing data resources of a mobile application.
According to the technical scheme, most of resource configuration files required by the mobile application program are stored in the resource server, so that the installation package volume of the mobile application program is greatly reduced, the access threshold of a user is reduced, and the data volume of the installation package of the mobile application program can be effectively and conveniently reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for processing data resources of a mobile application according to an embodiment of the present application;
fig. 2 is a second flowchart illustrating a method for processing data resources of a mobile application according to an embodiment of the present application;
fig. 3 is a third schematic flowchart illustrating a method for processing data resources of a mobile application in an embodiment of the present application;
FIG. 4 is a block diagram of an embodiment of a mobile application data resource processing apparatus;
FIG. 5 is a second block diagram of a data resource processing apparatus of a mobile application program according to an embodiment of the present application;
fig. 6 is a third block diagram of a data resource processing apparatus of a mobile application program according to an embodiment of the present application;
FIG. 7 is a fourth block diagram of a data resource processing apparatus of a mobile application program according to an embodiment of the present application;
FIG. 8 is a flow chart illustrating processing of mobile application data resources according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In consideration of the fact that part of user experience is sacrificed by using a B/S architecture in the prior art, for a long-term user, network consumption is larger compared with the installation package volume, the reduction of the installation package volume caused by the mode is not obvious, and even the problem that the volume of the installation package is increased by using part of cross-terminal technology is solved.
In order to effectively and conveniently reduce the data volume of the mobile-end application program installation package, the present application provides an embodiment of a mobile-end application program data resource processing method, and referring to fig. 1, the mobile-end application program data resource processing method specifically includes the following contents:
step S101: receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program.
It can be understood that the resource files contained in the mobile application APP include necessary resource files of the APP main body framework, that is, static resources necessary for program startup, such as static resources like icons, startup pictures, and placeholder pictures, and also include dynamic resources for non-code execution such as pictures, videos, and audios, where the dynamic resources have a corresponding relationship with each page tag of the program.
Optionally, the application may pre-package the static resources necessary for starting the mobile application together with the program execution file, or pre-store the static resources in a local cache of the mobile application, for example, in a resource configuration file at a specific storage location of the local cache.
Therefore, when the mobile application program is required to be started, the resource configuration file can be quickly obtained from the local cache, and the static resource in the resource configuration file is loaded to start the mobile application program without requesting a resource server side, so that the starting efficiency is improved.
For example, firstly, a user starts a mobile terminal APP, then, whether a preset corresponding resource configuration file exists in a local cache is queried according to a current APP version number of the mobile terminal APP, if so, the user directly enters the APP, otherwise, a resource configuration file request is sent to a resource server.
The initiated resource configuration file request comprises the current mobile terminal APP version number.
Then, the resource server inquires the corresponding resource configuration file according to the current mobile terminal APP version number and returns, and the mobile terminal APP acquires the corresponding resource configuration file from the resource server and loads the corresponding resource configuration file to enter the mobile terminal APP.
Meanwhile, the mobile terminal APP synchronously caches the acquired resource configuration file to the local, wherein the resource configuration file comprises the current APP version number.
Step S102: and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
Optionally, in the application, tags may be added to each page of the mobile application program, that is, each tag page is obtained, each tag page corresponds to a dynamic resource one-to-one, and meanwhile, the dynamic resources corresponding to each tag page are stored in the resource server instead of being stored locally in advance, so that the installation package volume of the mobile application program can be greatly reduced.
Optionally, considering that when the version of the mobile application program is updated, the dynamic resources of some tab pages need to change along with the page, the method and the device can also judge the version identifier when loading the dynamic resources, so as to ensure the timeliness and the accuracy of the loaded dynamic resources.
For example, when a page jump or context switch occurs in a user operation page, the mobile terminal APP queries a version number supported by a current tab page from a resource configuration file, queries a version number of a current tab page cache resource file from a local cache, and matches the two version numbers, specifically:
and inquiring a supported context version number from the resource configuration file according to the context label, inquiring a context version number of the local cache resource according to the context label, comparing the two version numbers, if the comparison is passed, displaying the resource on the current label page, and otherwise, sending a request to the resource server.
The resource access request initiated by the current tab page contains different resource types, APP version numbers and context tabs.
The resource server can obtain resources corresponding to the resource type and the like from a corresponding resource server interface according to the resource type, the APP version number and the context tag, and display the resources on the tag page, namely, the resource configuration file stored by the resource server contains static resources corresponding to the version identifier and dynamic resources corresponding to the version identifier and the page tag.
Meanwhile, the mobile terminal APP synchronously caches the resources displayed on the label page to the local, and the resources comprise an APP version number, a context label and a resource file.
As can be seen from the above description, the method for processing data resources of an application program at a mobile terminal according to the embodiment of the present application can store most of resource configuration files required by the application program in a resource server, thereby greatly reducing the volume of an installation package of the application program at the mobile terminal, reducing the access threshold of a user, and thus effectively and conveniently reducing the data volume of the installation package of the application program at the mobile terminal.
In order to flexibly load the static resource of the mobile application, in an embodiment of the method for processing the data resource of the mobile application according to the present application, referring to fig. 2, the step S101 may further include the following steps:
step S201: and if the resource configuration file does not exist in the preset storage position of the local cache, generating a resource configuration request according to the version identifier of the mobile application program and sending the resource configuration request to the corresponding resource server so that the resource server returns a resource configuration file according to the version identifier in the resource configuration request.
Step S202: and receiving a resource configuration file sent by the resource server, caching the resource configuration file to the local, loading the static resource in the resource configuration file, and starting the mobile application program.
For example, firstly, a user starts a mobile terminal APP, then, whether a preset corresponding resource configuration file exists in a local cache is queried according to a current APP version number of the mobile terminal APP, if so, the user directly enters the APP, otherwise, a resource configuration file request is sent to a resource server.
The initiated resource configuration file request comprises the current mobile terminal APP version number.
Then, the resource server inquires the corresponding resource configuration file according to the current mobile terminal APP version number and returns, and the mobile terminal APP acquires the corresponding resource configuration file from the resource server and loads the corresponding resource configuration file to enter the mobile terminal APP.
Meanwhile, the mobile terminal APP synchronously caches the acquired resource configuration file to the local, wherein the resource configuration file comprises the current APP version number.
In order to flexibly load dynamic resources of the mobile application, in an embodiment of the method for processing data resources of the mobile application according to the present application, referring to fig. 3, the step S102 may further include the following steps:
step S301: and determining the version identification of the corresponding dynamic resource in the local cache according to the page tag of the current page.
Step S302: and if the version identification of the dynamic resource is inconsistent with the version identification supported by the current resource configuration file, regenerating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server.
For example, when a page jump or context switch occurs in a user operation page, the mobile terminal APP queries a version number supported by a current tab page from a resource configuration file, queries a version number of a current tab page cache resource file from a local cache, and matches the two version numbers, specifically:
and inquiring a supported context version number from the resource configuration file according to the context label, inquiring a context version number of the local cache resource according to the context label, comparing the two version numbers, if the comparison is passed, displaying the resource on the current label page, and otherwise, sending a request to the resource server.
The resource access request initiated by the current tab page contains different resource types, APP version numbers and context tabs.
The resource server can obtain resources corresponding to the resource type and the like from a corresponding resource server interface according to the resource type, the APP version number and the context label, and display the resources on the label page.
In order to ensure timeliness of the local cache data, in an embodiment of the method for processing a data resource of a mobile application program according to the present application, after the step S302, the following may be further included:
and updating data of the local cache according to the resource configuration file returned by the resource server.
Optionally, the mobile terminal APP caches the resources displayed on the tag page to the local synchronously, where the resources include APP version numbers, context tags, and resource files.
In order to effectively and conveniently reduce the data volume of the mobile-end application program installation package, the present application provides an embodiment of a mobile-end application program data resource processing apparatus for implementing all or part of the content of the mobile-end application program data resource processing method, and referring to fig. 4, the mobile-end application program data resource processing apparatus specifically includes the following contents:
the static resource loading module 10 is configured to receive a starting instruction of a mobile application program, acquire a resource configuration file from a local cache, load a static resource in the resource configuration file, and start the mobile application program.
And the dynamic resource loading module 20 is configured to receive a page switching instruction of the mobile application program, and load the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
As can be seen from the above description, the mobile application data resource processing apparatus provided in this embodiment of the present application can greatly reduce the volume of an installation package of a mobile application and reduce the access threshold of a user by storing most resource configuration files required by the mobile application in a resource server, and thus can effectively and conveniently reduce the data volume of the installation package of the mobile application.
In order to flexibly load the static resource of the mobile application, in an embodiment of the apparatus for processing the data resource of the mobile application according to the present application, referring to fig. 5, the static resource loading module 10 includes:
the resource request unit 11 is configured to, if a resource configuration file does not exist in a preset storage location of the local cache, generate a resource configuration request according to the version identifier of the mobile application program, and send the resource configuration request to a corresponding resource server, so that the resource server returns a resource configuration file according to the version identifier in the resource configuration request.
And the resource caching unit 12 is configured to receive the resource configuration file sent by the resource server, cache the resource configuration file to the local, load the static resource in the resource configuration file, and start the mobile application program.
In order to flexibly load the dynamic resource of the mobile application, in an embodiment of the mobile-side application data resource processing apparatus of the present application, referring to fig. 6, the dynamic resource loading module 20 includes:
and a cache version determining unit 21, configured to determine, according to the page tag of the current page, a version identifier of the corresponding dynamic resource in the local cache.
And the version exception processing unit 22 is configured to, if the version identifier of the dynamic resource is inconsistent with the version identifier supported by the current resource configuration file, regenerate a resource configuration request according to the version identifier of the mobile application program and send the resource configuration request to a corresponding resource server.
In order to ensure timeliness of the local cache data, in an embodiment of the apparatus for processing a data resource of a mobile-end application program according to the present application, referring to fig. 7, the dynamic resource loading module 20 further includes:
and the cache resource updating unit 23 is configured to update data of the local cache according to the resource configuration file returned by the resource server.
To further explain the present invention, the present application further provides a specific application example of implementing the method for processing the mobile application data resource by using the mobile application data resource processing apparatus, which is shown in fig. 8 and specifically includes the following contents:
firstly, a user starts a mobile terminal APP, then whether a preset corresponding resource configuration file exists in a local cache is inquired according to the current APP version number of the mobile terminal APP, if so, the user directly enters the APP, and otherwise, a resource configuration file request is sent to a resource server.
The initiated resource configuration file request comprises the current mobile terminal APP version number.
Then, the resource server inquires the corresponding resource configuration file according to the current mobile terminal APP version number and returns, and the mobile terminal APP acquires the corresponding resource configuration file from the resource server and loads the corresponding resource configuration file to enter the mobile terminal APP.
Meanwhile, the mobile terminal APP synchronously caches the acquired resource configuration file to the local, wherein the resource configuration file comprises the current APP version number.
Then, when a user operation page undergoes page jump or context switching, the mobile terminal APP queries a version number supported by the current tab page from the resource configuration file, and queries a version number of the current tab page cache resource file from the local cache, and matches the two version numbers, specifically: and inquiring a supported context version number from the resource configuration file according to the context label, inquiring a context version number of the local cache resource according to the context label, comparing the two version numbers, if the comparison is passed, displaying the resource on the current label page, and otherwise, sending a request to the resource server.
The resource access request initiated by the current tab page contains different resource types, APP version numbers and context tabs.
The resource server can obtain resources corresponding to the resource type and the like from a corresponding resource server interface according to the resource type, the APP version number and the context label, and display the resources on the label page.
Meanwhile, the mobile terminal APP synchronously caches the resources displayed on the label page to the local, and the resources comprise an APP version number, a context label and a resource file.
According to the content, the resource server stores most resource files required by the mobile terminal APP in the resource server by utilizing the cache strategy, so that the installation package volume of the mobile terminal APP is greatly reduced, the access threshold of a user is reduced, and the user drainage of a webpage, a small program and operation promotion is facilitated to the mobile terminal APP. Compared with the prior art, the invention has the advantages of lower cost and more obvious benefits.
In terms of hardware, in order to effectively and conveniently reduce the data volume of the mobile application installation package, the present application provides an embodiment of an electronic device for implementing all or part of the contents in the mobile application data resource processing method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the mobile terminal application program data resource processing device and relevant equipment such as a core service system, a user terminal, a relevant database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may refer to the embodiment of the method for processing the mobile application data resource and the embodiment of the apparatus for processing the mobile application data resource in the embodiments for implementation, which are incorporated herein by reference, and repeated details are not repeated herein.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the method for processing the data resources of the application program at the mobile terminal may be executed at the electronic device side as described above, or all operations may be completed at the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 9 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 9, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 9 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the mobile-side application data resource processing method function may be integrated into the central processing unit 9100. The central processor 9100 may be configured to control as follows:
step S101: receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program.
Step S102: and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
As can be seen from the above description, according to the electronic device provided in the embodiment of the present application, most of the resource configuration files required by the mobile application are stored in the resource server, so that the volume of the installation package of the mobile application is greatly reduced, the access threshold of the user is reduced, and thus the data volume of the installation package of the application at the mobile end can be effectively and conveniently reduced.
In another embodiment, the mobile-side application data resource processing apparatus may be configured separately from the central processing unit 9100, for example, the mobile-side application data resource processing apparatus may be configured as a chip connected to the central processing unit 9100, and the mobile-side application data resource processing method function is realized under the control of the central processing unit.
As shown in fig. 9, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 9; in addition, the electronic device 9600 may further include components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all steps in the method for processing a mobile-side application data resource, where the execution subject of the method is a server or a client in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the method for processing a mobile-side application data resource, where the execution subject of the method is a server or a client, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program.
Step S102: and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
As can be seen from the above description, in the computer-readable storage medium provided in this embodiment of the present application, most of the resource configuration files required by the mobile application are stored in the resource server, so that the volume of the installation package of the mobile application is greatly reduced, the admission threshold of the user is reduced, and thus, the data volume of the installation package of the mobile application can be effectively and conveniently reduced.
An embodiment of the present application further provides a computer program product capable of implementing all steps in the mobile terminal application data resource processing method in which an execution subject in the above embodiment is a server or a client, where the computer program/instruction is executed by a processor to implement the steps of the mobile terminal application data resource processing method, for example, the computer program/instruction implements the following steps:
step S101: receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program.
Step S102: and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
As can be seen from the above description, in the computer program product provided in the embodiment of the present application, most of the resource configuration files required by the mobile application are stored in the resource server, so that the volume of the installation package of the mobile application is greatly reduced, the access threshold of the user is reduced, and thus, the data volume of the installation package of the application at the mobile end can be effectively and conveniently reduced.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for processing data resources of a mobile terminal application program is characterized by comprising the following steps:
receiving a starting instruction of a mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program;
and receiving a page switching instruction of the mobile application program, and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
2. The method for processing data resources of an application program at a mobile terminal according to claim 1, wherein the obtaining a resource configuration file from a local cache, loading a static resource in the resource configuration file, and starting the mobile application program further comprises:
if the resource configuration file does not exist in the preset storage position of the local cache, generating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server so that the resource server returns a resource configuration file according to the version identification in the resource configuration request;
and receiving a resource configuration file sent by the resource server, caching the resource configuration file to the local, loading the static resource in the resource configuration file, and starting the mobile application program.
3. The method for processing data resources of an application program at a mobile terminal according to claim 2, wherein the loading of the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page further comprises:
determining the version identification of the corresponding dynamic resource in the local cache according to the page tag of the current page;
and if the version identification of the dynamic resource is inconsistent with the version identification supported by the current resource configuration file, regenerating a resource configuration request according to the version identification of the mobile application program and sending the resource configuration request to a corresponding resource server.
4. The method for processing data resources of an application program at a mobile terminal according to claim 3, wherein after the regenerating a resource configuration request according to the version identifier of the mobile application program and sending the resource configuration request to the corresponding resource server, the method comprises:
and updating data of the local cache according to the resource configuration file returned by the resource server.
5. The method for processing data resources of a mobile application according to claim 1, before the receiving a start instruction of the mobile application and obtaining the resource configuration file from the local cache, further comprising:
and splitting a resource configuration file prestored in the local cache into static resources required for program starting and dynamic resources corresponding to each page label of the program.
6. The method according to claim 2, wherein the resource configuration file stored in the resource server includes a static resource corresponding to the version identifier and a dynamic resource corresponding to the version identifier and the page tag.
7. A mobile terminal application program data resource processing device is characterized by comprising:
the static resource loading module is used for receiving a starting instruction of the mobile application program, acquiring a resource configuration file from a local cache, loading static resources in the resource configuration file and starting the mobile application program;
and the dynamic resource loading module is used for receiving a page switching instruction of the mobile application program and loading the corresponding dynamic resource in the resource configuration file to the current page according to the page tag of the current page.
8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for processing data resources of a mobile application according to any one of claims 1 to 4 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the mobile-end application data resource processing method according to any one of claims 1 to 4.
10. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the method for processing data resources of a mobile end application according to any of claims 1 to 4.
CN202210113779.2A 2022-01-30 2022-01-30 Mobile terminal application program data resource processing method and device Pending CN114416212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210113779.2A CN114416212A (en) 2022-01-30 2022-01-30 Mobile terminal application program data resource processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210113779.2A CN114416212A (en) 2022-01-30 2022-01-30 Mobile terminal application program data resource processing method and device

Publications (1)

Publication Number Publication Date
CN114416212A true CN114416212A (en) 2022-04-29

Family

ID=81279093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210113779.2A Pending CN114416212A (en) 2022-01-30 2022-01-30 Mobile terminal application program data resource processing method and device

Country Status (1)

Country Link
CN (1) CN114416212A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117608679A (en) * 2023-10-27 2024-02-27 广州市玄武无线科技股份有限公司 Program starting method, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN112988284A (en) * 2021-05-13 2021-06-18 太平金融科技服务(上海)有限公司 Application program starting method and device, computer equipment and storage medium
CN113656107A (en) * 2021-08-23 2021-11-16 天津中新智冠信息技术有限公司 Mobile application loading method and device and electronic equipment
CN113779458A (en) * 2021-07-27 2021-12-10 北京房江湖科技有限公司 Method and device for accelerating application loading, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN112988284A (en) * 2021-05-13 2021-06-18 太平金融科技服务(上海)有限公司 Application program starting method and device, computer equipment and storage medium
CN113779458A (en) * 2021-07-27 2021-12-10 北京房江湖科技有限公司 Method and device for accelerating application loading, electronic equipment and storage medium
CN113656107A (en) * 2021-08-23 2021-11-16 天津中新智冠信息技术有限公司 Mobile application loading method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117608679A (en) * 2023-10-27 2024-02-27 广州市玄武无线科技股份有限公司 Program starting method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN111786885A (en) Distributed full-link gray level routing method and device
CN110069308B (en) Page starting method and device, electronic equipment and storage medium
CN112689012A (en) Cross-network proxy communication method and device
CN111679790A (en) Remote software development storage space distribution method and device
CN114138372A (en) Front-end component loading method and device
CN112953908A (en) Network isolation configuration method, device and system
CN112394932A (en) Automatic browser webpage skin changing method and device
CN114416212A (en) Mobile terminal application program data resource processing method and device
CN114257532A (en) Server side state detection method and device
CN113342330A (en) Front-end engineering generation method and device
CN110704188B (en) Memory allocator optimization method, device, equipment and storage medium
CN111338905A (en) Application node data processing method and device
CN113452776B (en) PaaS platform service scheduling method and device and PaaS platform
CN113110829B (en) Multi-UI component library data processing method and device
CN112905464B (en) Application running environment data processing method and device
CN113791984A (en) Automatic interface testing method and device
CN103618961A (en) Method, system and browser for displaying video title
CN113158259A (en) Block chain integrity verification method and device
CN113392091A (en) Distributed cluster data migration method and device
CN113050936A (en) Front-end data processing method and device based on integrated development environment
CN111767118A (en) Container storage space processing method and device based on distributed file system
CN112396511A (en) Distributed wind control variable data processing method, device and system
CN113342501B (en) System fault processing method and device
CN107967155B (en) Method, device, server and medium for realizing program operation based on Hook shared library

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