CN113157365B - Program running method, program running device, electronic equipment and computer readable medium - Google Patents

Program running method, program running device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113157365B
CN113157365B CN202110336688.0A CN202110336688A CN113157365B CN 113157365 B CN113157365 B CN 113157365B CN 202110336688 A CN202110336688 A CN 202110336688A CN 113157365 B CN113157365 B CN 113157365B
Authority
CN
China
Prior art keywords
picture
preset
original
original picture
request information
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
CN202110336688.0A
Other languages
Chinese (zh)
Other versions
CN113157365A (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 Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin Information 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 Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN202110336688.0A priority Critical patent/CN113157365B/en
Publication of CN113157365A publication Critical patent/CN113157365A/en
Application granted granted Critical
Publication of CN113157365B publication Critical patent/CN113157365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

Embodiments of the present disclosure disclose a program running method, apparatus, electronic device, and computer readable medium. One embodiment of the method comprises the following steps: in response to detecting that at least one preset replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application, the target application is not run for the first time, and each original picture corresponding to the at least one preset replacement picture is not stored locally, acquiring request information is sent to a preset server to receive each original picture corresponding to the acquiring request information; and in response to receiving the original picture corresponding to the predetermined replacement picture, displaying the received original picture. According to the embodiment, the volume of the application program installation package can be reduced, the waiting time for a user to acquire the application program installation package is shortened, the waste of network transmission resources is reduced, and the user experience is improved. Further, the loss of user traffic can be reduced.

Description

Program running method, program running device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a program running method, apparatus, electronic device, and computer readable medium.
Background
With the development of computer technology, pictures can be displayed in running pages of applications. Currently, when displaying a picture of an application running page, the following methods are generally adopted: and packaging all original pictures corresponding to the application program running page into an application program installation package, or compressing and packaging all original pictures corresponding to the application program running page into the application program installation package so as to be displayed in the application program running page.
However, when the picture of the application running page is displayed in the above manner, there are often the following technical problems: the file size of the original pictures is larger, the file sizes of all compressed original pictures are still larger, the size of the application program installation package is larger, the waiting time for acquiring the application program installation package by a user is longer, the network transmission resource is wasted, the user experience is poor, and therefore the loss of the user flow is caused.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a program running method, apparatus, electronic device, and computer readable medium to solve one of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a program running method, the method comprising: in response to detecting that at least one preset replacement picture corresponding to a current running application page exists in a picture resource file included in an installation package of a target application program, the target application program runs for the first time, and each original picture corresponding to the at least one preset replacement picture is not stored locally, acquisition request information is sent to a preset server to receive each original picture corresponding to the acquisition request information, wherein the preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture, the file size of each preset replacement picture is smaller than the file size of the corresponding original picture, and the acquisition request information comprises request address information of the original picture corresponding to each preset replacement picture; and in response to receiving the original picture corresponding to the predetermined replacement picture, displaying the received original picture.
In a second aspect, some embodiments of the present disclosure provide a program running apparatus, the apparatus comprising: a transmitting unit configured to, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application, and the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, transmit acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information, wherein each original picture corresponding to each predetermined replacement picture in the at least one predetermined replacement picture is stored in the preset server, and a file size of each predetermined replacement picture is smaller than a file size of a corresponding original picture, and the acquisition request information includes request address information of the original picture corresponding to each predetermined replacement picture; and a display unit configured to display the received original picture in response to receiving the original picture corresponding to the predetermined replacement picture.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the program running method of some embodiments of the present disclosure, user traffic loss is reduced. Specifically, the user traffic loss is caused by: the file size of the original pictures is larger, the file sizes of all compressed original pictures are still larger, the size of the application program installation package is larger, the waiting time for a user to acquire the application program installation package is longer, the network transmission resources are wasted, and the user experience is poor. Based on this, the program running method of some embodiments of the present disclosure first, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application, and the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, sends acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information. Wherein, the preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture. The file size of the predetermined replacement picture in each predetermined replacement picture is smaller than the file size of the corresponding original picture. The acquisition request information comprises request address information of original pictures corresponding to the preset replacement pictures. Therefore, when the original pictures are replaced and the application program is not operated for the first time and each original picture is not stored locally, the corresponding original picture is downloaded from the preset server according to the preset replacement picture in which the original picture is replaced in the picture resource file. Then, in response to receiving an original picture corresponding to the predetermined replacement picture, the received original picture is displayed. Thus, the original picture can be displayed after being downloaded from the preset server. Also, because the predetermined replacement picture with a smaller file size is stored in the picture resource file of the installation package of the application program to replace the original picture, the volume of the installation package of the application program can be reduced. Therefore, the waiting time for a user to acquire the application program installation package can be shortened, the waste of network transmission resources is reduced, and the user experience is improved. Further, the loss of user traffic can be reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario of a program running method according to some embodiments of the present disclosure;
FIG. 2 is a flow chart of some embodiments of a program run method according to the present disclosure;
FIG. 3 is a flow chart of other embodiments of a program run method according to the present disclosure;
FIG. 4 is a flow chart of yet other embodiments of a program run method according to the present disclosure;
FIG. 5 is a schematic diagram of the structure of some embodiments of a program running apparatus according to the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain 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 construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario of a program running method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, in response to detecting that at least one predetermined replacement picture 103 corresponding to a currently running application page exists in a picture resource file 102 included in an installation package of a target application, and the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, the computing device 101 may send, to a preset server 104, acquisition request information 105 to receive each original picture corresponding to the acquisition request information 105. Wherein, the original pictures corresponding to each of the at least one predetermined replacement pictures 103 are stored in the preset server 104. The file size of the predetermined replacement picture in each predetermined replacement picture is smaller than the file size of the corresponding original picture. The acquisition request information 105 includes request address information (e.g., URL address) of an original picture corresponding to each of the predetermined replacement pictures. The computing device 101 may then display the received original picture in response to receiving the original picture corresponding to the predetermined replacement picture.
The computing device 101 may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices listed above. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of computing devices in fig. 1 is merely illustrative. There may be any number of computing devices, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a program run method according to the present disclosure is shown. The program running method comprises the following steps:
in step 201, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of the target application, the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, acquisition request information is sent to a preset server to receive each original picture corresponding to the acquisition request information.
In some embodiments, an execution body of the program running method (for example, the computing device 101 shown in fig. 1) may send, in response to detecting that, in a picture resource file included in an installation package of a target application program, at least one predetermined replacement picture corresponding to a currently running application program page exists, the target application program is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information. The installation package may be an installation package running on a computer terminal, for example, an installation package having a file format of "exe". The installation package may also be an installation package running on the mobile terminal, for example, an installation package having a file format of "apk". The picture resource file may be a compressed file of a picture resource. For example, the picture resource file may be a file in the compressed file format "zip". The preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture. The predetermined replacement picture may be a picture for replacing an original picture in the picture resource file. For example, the predetermined replacement picture may be a picture of a predetermined pixel. For example, the predetermined replacement picture may be a 1-pixel picture. The original picture may be an uncompressed picture for display in a page. The file size of the predetermined replacement picture in each predetermined replacement picture is smaller than the file size of the corresponding original picture. The acquisition request information comprises request address information of original pictures corresponding to the preset replacement pictures. For example, the request address information may be a "URL address" of the original picture. The request address information can be formed by splicing preset address information and the picture name of the original picture. For example, the preset address information may be "http:// www.aa.com/1/". The picture name of the original picture may be "aaa. The request address information may be "http:// www.aa.com/1/aaa. In practice, the executing body may determine whether the picture is a predetermined replacement picture through a file size of each picture included in the picture resource file. For example, a picture having a file size smaller than a first predetermined value may be determined as a predetermined replacement picture. As another example, a picture having a file size equal to a second predetermined value may be determined as the predetermined replacement picture. Here, the setting of the first predetermined value and the second predetermined value is not limited. The executing body may determine that each original picture corresponding to the at least one predetermined replacement picture is not stored locally in response to each original picture corresponding to the at least one predetermined replacement picture not being cached in the local memory. Therefore, when the original pictures are replaced and the application program is not operated for the first time and each original picture is not stored locally, the corresponding original picture is downloaded from the preset server according to the preset replacement picture in which the original picture is replaced in the picture resource file.
In some optional implementations of some embodiments, the executing body may send the acquisition request information to the preset server to receive each original picture corresponding to the acquisition request information in response to determining that each original picture corresponding to the at least one predetermined replacement picture is not stored in the local disk. Therefore, when the original picture is replaced and the application program runs for the non-first time, whether the original picture needs to be acquired from a preset server or not can be determined according to the storage condition of the original picture in the local disk.
Step 202, in response to receiving an original picture corresponding to the predetermined replacement picture, displaying the received original picture.
In some embodiments, the executing body may display the received original picture in response to receiving the original picture corresponding to the predetermined replacement picture. It is understood that the execution body may execute the display operation after receiving the original picture corresponding to the predetermined replacement picture each time. Thus, the original picture can be displayed after being downloaded from the preset server.
Optionally, the executing body may respond to the fact that a predetermined replacement picture corresponding to a current running application page does not exist in a picture resource file included in an installation package of the target application, and display an original picture corresponding to the current running application page in the picture resource file on the current running application page. In practice, first, the executing body may read each original picture corresponding to the currently running application page from a picture resource file. The original picture may then be displayed on the currently running application page. Thus, the original picture in the picture resource file can be displayed when the original picture is not replaced.
Optionally, the executing body may respond to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of the target application, and the target application runs for the first time, and sends acquisition request information to the preset server to receive each original picture corresponding to the acquisition request information. Therefore, when the original picture is replaced and the application program runs for the first time, the corresponding original picture can be downloaded from the preset server according to the preset replacement picture in which the original picture is replaced in the picture resource file.
The above embodiments of the present disclosure have the following advantageous effects: by the program running method of some embodiments of the present disclosure, user traffic loss is reduced. Specifically, the user traffic loss is caused by: the file size of the original pictures is larger, the file sizes of all compressed original pictures are still larger, the size of the application program installation package is larger, the waiting time for a user to acquire the application program installation package is longer, the network transmission resources are wasted, and the user experience is poor. Based on this, the program running method of some embodiments of the present disclosure first, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application, and the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, sends acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information. Wherein, the preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture. The file size of the predetermined replacement picture in each predetermined replacement picture is smaller than the file size of the corresponding original picture. The acquisition request information comprises request address information of original pictures corresponding to the preset replacement pictures. Therefore, when the original pictures are replaced and the application program is not operated for the first time and each original picture is not stored locally, the corresponding original picture is downloaded from the preset server according to the preset replacement picture in which the original picture is replaced in the picture resource file. Then, in response to receiving an original picture corresponding to the predetermined replacement picture, the received original picture is displayed. Thus, the original picture can be displayed after being downloaded from the preset server. Also, because the predetermined replacement picture with a smaller file size is stored in the picture resource file of the installation package of the application program to replace the original picture, the volume of the installation package of the application program can be reduced. Therefore, the waiting time for a user to acquire the application program installation package can be shortened, the waste of network transmission resources is reduced, and the user experience is improved. Further, the loss of user traffic can be reduced.
With further reference to FIG. 3, a flow 300 of further embodiments of a program run method is shown. The process 300 of the program operation method includes the steps of:
in step 301, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of the target application, the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, acquisition request information is sent to a preset server to receive each original picture corresponding to the acquisition request information.
In some embodiments, the specific implementation of step 301 and the technical effects thereof may refer to step 201 in those embodiments corresponding to fig. 2, which are not described herein.
And step 302, replacing and displaying the default picture which corresponds to the received preset replacement picture and is displayed in advance as the corresponding original picture.
In some embodiments, an executing subject of the program execution method (e.g., the computing device 101 shown in fig. 1) may display a default picture, which is previously displayed, corresponding to the received predetermined replacement picture as a corresponding original picture instead. The default picture is a preset picture displayed after the current running application page is run. The default picture may characterize that the original picture is not loaded. For example, the default picture may be a picture with a base color of gray, and may be automatically generated by the execution subject through relevant configuration information (for example, the configuration information may be "base color: gray"). Therefore, when the original picture is not obtained or is not loaded, the default picture can be displayed in advance so as to relieve the scorching feeling when a user waits for the application program picture to be loaded.
As can be seen in fig. 3, the process 300 of the program execution method in some embodiments corresponding to fig. 3 embodies the step of expanding the display of the original picture, as compared to the description of some embodiments corresponding to fig. 2. Thus, the schemes described in these embodiments may pre-display a default picture when the original picture is not acquired or is not loaded to be completed, so as to slow down the burning sensation when the user waits for the application picture to be loaded.
With further reference to fig. 4, a flow 400 of yet further embodiments of a program run method is shown. The process 400 of the program operation method includes the steps of:
step 401, determining whether a configuration item corresponding to a picture in each picture exists in a preset configuration file according to a picture identifier of each picture corresponding to a current running application page in the picture resource file.
In some embodiments, the execution body (for example, the server shown in fig. 1) on which the program running method runs may determine, through the picture identifier of each picture corresponding to the currently running application page in the picture resource file, whether a configuration item corresponding to a picture in the above each picture exists in the preset configuration file. The picture identifier may be a unique identifier of the picture. The preset configuration file may be a file to which each configuration item of each original picture that has been replaced is added. The configuration item can be used for configuring an original picture and can comprise a picture identification and request address information. In practice, the executing body may determine that, in response to the picture identifier included in each configuration item included in the preset configuration file, there is a picture identifier that is the same as the picture identifier of each picture, and that a configuration item corresponding to a picture in each picture exists in the preset configuration file. Therefore, whether the configuration items corresponding to the pictures in the pictures are in the preset configuration file or not can be determined through the picture identification, and support is provided for determining whether at least one preset replacement picture corresponding to the current running application page is in the picture resource file included in the installation package of the target application program.
In some optional implementations of some embodiments, the configuration items may further include a picture name. Firstly, the executing body can obtain the picture names of the pictures through the picture identifications of the pictures to obtain a picture name set. In practice, the executing body may obtain, from a relationship table of picture identifiers and picture names stored in an installation package of the target application, a picture name corresponding to the picture identifier of each picture, so as to obtain a picture name set. The relationship table may be a table storing each picture identifier and each corresponding picture name. Then, it may be determined whether a configuration item corresponding to a picture name in the picture name set exists in the preset configuration file. In practice, the executing body may determine that, in response to the picture names included in each configuration item included in the preset configuration file, there are picture names identical to the picture names in the picture name set, and that the configuration items corresponding to the pictures in each picture exist in the preset configuration file. Therefore, whether the configuration items corresponding to the pictures in the pictures are in the preset configuration file can be determined through the picture names.
In response to determining that the at least one predetermined replacement picture corresponding to the currently running application page exists in the picture resource file included in the installation package of the target application, step 402.
In some embodiments, the executing body may determine that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of the target application in response to determining that a configuration item corresponding to a picture in each picture exists in the preset configuration file. Because the pictures of the corresponding configuration items are replaced, whether at least one preset replacement picture corresponding to the current running application page exists in the picture resource file included in the installation package of the target application program or not can be determined through the preset configuration file, and support is provided for obtaining the corresponding original picture from the preset server.
Step 403, in response to detecting that at least one predetermined replacement picture corresponding to the currently running application page exists in the picture resource file included in the installation package of the target application, the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, the acquisition request information is sent to the preset server to receive each original picture corresponding to the acquisition request information.
Step 404, in response to receiving the original picture corresponding to the predetermined replacement picture, displaying the received original picture.
In some embodiments, the specific implementation of steps 403 to 404 and the technical effects thereof may refer to steps 201 to 202 in those embodiments corresponding to fig. 2, and will not be described herein.
In step 405, in response to deleting the displayed original picture that is not replaced, the picture name of the deleted original picture is added to the preset configuration file.
In some embodiments, the executing body may add a picture name of the deleted original picture to the preset profile in response to deleting the displayed non-replaced original picture, so that the preset server stores the deleted original picture. Therefore, when the target application program runs again, the deleted original pictures can be obtained from the preset server according to the picture names of the deleted original pictures added in the added preset configuration file. Therefore, when the target application program runs again, the deleted original picture can be obtained again through the preset configuration file.
As can be seen in fig. 4, the process 400 of the program running method in some embodiments corresponding to fig. 4 embodies the step of expanding the preset configuration file, as compared to the description of some embodiments corresponding to fig. 2. Therefore, the schemes described in these embodiments can determine whether at least one predetermined replacement picture corresponding to the current running application page exists in the picture resource file included in the installation package of the target application through the preset configuration file, so as to provide support for obtaining the corresponding original picture from the preset server. Meanwhile, when the target application program runs again, the deleted original picture can be obtained again through the preset configuration file.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a program running apparatus, which correspond to those method embodiments shown in fig. 2, and which are particularly applicable in various electronic devices.
As shown in fig. 5, the program running apparatus 500 of some embodiments includes: a transmitting unit 501 and a display unit 502. Wherein the sending unit 501 is configured to send, in response to detecting that, in a picture resource file included in an installation package of a target application program, there is at least one predetermined replacement picture corresponding to a currently running application program page, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information, where the preset server stores each original picture corresponding to each predetermined replacement picture in the at least one predetermined replacement picture, and a file size of each predetermined replacement picture is smaller than a file size of the corresponding original picture, where the acquisition request information includes request address information of the original picture corresponding to each predetermined replacement picture; the display unit 502 is configured to display the received original picture in response to receiving the original picture corresponding to the predetermined replacement picture.
In alternative implementations of some embodiments, the display unit 502 may be further configured to: and replacing and displaying a default picture which corresponds to the received preset replacement picture and is displayed in advance as a corresponding original picture, wherein the default picture is a preset picture displayed after the current running application program page is run.
In an alternative implementation of some embodiments, the program running apparatus 500 may further include: and the original picture display unit is configured to respond to the fact that a preset replacement picture corresponding to a current running application page does not exist in a picture resource file included in an installation package of the target application program, and display the original picture corresponding to the current running application page in the picture resource file on the current running application page.
In an alternative implementation of some embodiments, before the sending unit 501, the program running apparatus 500 may further include: a first determination unit and a second determination unit (not shown in the figure). The first determining unit is configured to determine whether a configuration item corresponding to a picture in each picture exists in a preset configuration file according to picture identification of each picture corresponding to a current running application page in the picture resource file. The second determining unit is configured to determine, in response to determining that there is present, that there is at least one predetermined replacement picture corresponding to a currently running application page in a picture resource file included in an installation package of the target application.
In an alternative implementation of some embodiments, the first determining unit may be further configured to: acquiring the picture names of the pictures through the picture identifications of the pictures to obtain a picture name set; and determining whether a configuration item corresponding to the picture name in the picture name set exists in the preset configuration file.
In an alternative implementation of some embodiments, the program running apparatus 500 may further include: an adding unit (not shown in the figure) configured to, in response to deleting the displayed original picture that is not replaced, add a picture name of the deleted original picture to the preset configuration file, so that when the target application runs again, the deleted original picture is acquired from the preset server according to the preset configuration file.
In an alternative implementation of some embodiments, the sending unit 501 may be further configured to: and transmitting the acquisition request information to the preset server to receive each original picture corresponding to the acquisition request information in response to determining that each original picture corresponding to the at least one preset replacement picture is not stored in the local disk.
In an alternative implementation of some embodiments, the program running apparatus 500 may further include: an acquisition request information sending unit (not shown in the figure) is configured to send acquisition request information to the preset server to receive each original picture corresponding to the acquisition request information in response to detecting that at least one preset replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application program, and the target application program runs for the first time.
It will be appreciated that the elements described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 500 and the units contained therein, and are not described in detail herein.
Referring now to FIG. 6, a schematic diagram of an electronic device 600 (e.g., computing device 101 of FIG. 1) suitable for use in implementing some embodiments of the disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 609, or from storage device 608, or from ROM 602. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to detecting that at least one preset replacement picture corresponding to a current running application page exists in a picture resource file included in an installation package of a target application program, the target application program runs for the first time, and each original picture corresponding to the at least one preset replacement picture is not stored locally, acquisition request information is sent to a preset server to receive each original picture corresponding to the acquisition request information, wherein the preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture, the file size of each preset replacement picture is smaller than the file size of the corresponding original picture, and the acquisition request information comprises request address information of the original picture corresponding to each preset replacement picture; and in response to receiving the original picture corresponding to the predetermined replacement picture, displaying the received original picture.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a transmission unit and a display unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the display unit may also be described as "a unit that displays a received original picture in response to receiving an original picture corresponding to a predetermined replacement picture".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (10)

1. A program running method, comprising:
in response to detecting that at least one preset replacement picture corresponding to a current running application program page exists in a picture resource file included in an installation package of a target application program, the target application program runs for the first time, and each original picture corresponding to the at least one preset replacement picture is not stored locally, acquisition request information is sent to a preset server to receive each original picture corresponding to the acquisition request information, wherein the preset server stores original pictures corresponding to each preset replacement picture in the at least one preset replacement picture, the file size of the preset replacement picture in each preset replacement picture is smaller than the file size of the corresponding original picture, and the acquisition request information comprises request address information of the original picture corresponding to each preset replacement picture;
and in response to receiving an original picture corresponding to the predetermined replacement picture, displaying the received original picture, wherein the displaying the received original picture includes: and replacing and displaying a default picture which corresponds to the received preset replacement picture and is displayed in advance as a corresponding original picture, wherein the default picture is a preset picture which is displayed after the current running application program page is run.
2. The method of claim 1, wherein the method further comprises:
and responding to the fact that a picture resource file included in an installation package of the target application program does not exist a preset replacement picture corresponding to a current running application program page, and displaying an original picture corresponding to the current running application program page in the picture resource file on the current running application program page.
3. The method according to claim 1, wherein, in the picture resource file included in the installation package in response to detecting the target application program, there is at least one predetermined replacement picture corresponding to a currently running application program page, and the target application program is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, before sending acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information, the method further comprises:
determining whether a configuration item corresponding to a picture in each picture exists in a preset configuration file or not through a picture identifier of each picture corresponding to a current running application page in a picture resource file;
In response to determining that the at least one predetermined replacement picture corresponding to the currently running application page exists in a picture resource file included in the installation package of the target application.
4. A method according to claim 3, wherein the determining whether a configuration item corresponding to a picture in the respective pictures exists in a preset configuration file comprises:
acquiring the picture names of the pictures through the picture identifications of the pictures to obtain a picture name set;
and determining whether a configuration item corresponding to the picture name in the picture name set exists in the preset configuration file.
5. The method of claim 4, wherein the method further comprises:
and in response to deleting the displayed unsubstituted original picture, adding the picture name of the deleted original picture to the preset configuration file, so that when the target application program runs again, acquiring the deleted original picture from the preset server according to the preset configuration file.
6. The method of claim 1, wherein the sending the acquisition request information to the preset server to receive each original picture corresponding to the acquisition request information includes:
And in response to determining that each original picture corresponding to the at least one preset replacement picture is not stored in the local disk, sending the acquisition request information to the preset server so as to receive each original picture corresponding to the acquisition request information.
7. The method of claim 1, wherein the method further comprises:
and in response to detecting that at least one preset replacement picture corresponding to a current running application page exists in a picture resource file included in an installation package of the target application, the target application runs for the first time, and acquisition request information is sent to the preset server to receive each original picture corresponding to the acquisition request information.
8. A program running apparatus comprising:
a sending unit configured to send, in response to detecting that at least one predetermined replacement picture corresponding to a currently running application page exists in a picture resource file included in an installation package of a target application, and the target application is not running for the first time, and each original picture corresponding to the at least one predetermined replacement picture is not stored locally, acquisition request information to a preset server to receive each original picture corresponding to the acquisition request information, where original pictures corresponding to each predetermined replacement picture in the at least one predetermined replacement picture are stored in the preset server, and a file size of each predetermined replacement picture is smaller than a file size of a corresponding original picture, and the acquisition request information includes request address information of the original picture corresponding to each predetermined replacement picture;
A display unit configured to display a received original picture in response to receiving an original picture corresponding to a predetermined replacement picture, wherein the displaying the received original picture includes: and replacing and displaying a default picture which corresponds to the received preset replacement picture and is displayed in advance as a corresponding original picture, wherein the default picture is a preset picture which is displayed after the current running application program page is run.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-7.
CN202110336688.0A 2021-03-29 2021-03-29 Program running method, program running device, electronic equipment and computer readable medium Active CN113157365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110336688.0A CN113157365B (en) 2021-03-29 2021-03-29 Program running method, program running device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110336688.0A CN113157365B (en) 2021-03-29 2021-03-29 Program running method, program running device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN113157365A CN113157365A (en) 2021-07-23
CN113157365B true CN113157365B (en) 2024-04-16

Family

ID=76885209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110336688.0A Active CN113157365B (en) 2021-03-29 2021-03-29 Program running method, program running device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113157365B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019218952A1 (en) * 2018-05-16 2019-11-21 华为技术有限公司 Data processing method, terminal, server, and application development device
CN111930709A (en) * 2020-07-20 2020-11-13 北京云途腾科技有限责任公司 Data storage method and device, electronic equipment and computer readable medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019218952A1 (en) * 2018-05-16 2019-11-21 华为技术有限公司 Data processing method, terminal, server, and application development device
CN111930709A (en) * 2020-07-20 2020-11-13 北京云途腾科技有限责任公司 Data storage method and device, electronic equipment and computer readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IOMan:一种支持多操作系统远程启动和运行的I/O管理方法;夏楠;张尧学;杨善林;王晓辉;;计算机研究与发展(02);全文 *

Also Published As

Publication number Publication date
CN113157365A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN110909521B (en) Online document information synchronous processing method and device and electronic equipment
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN111246228A (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN113010821A (en) Page loading method, device, equipment and storage medium
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN110619101B (en) Method and apparatus for processing information
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111212296B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111241443A (en) Method and device for pushing information and electronic equipment
CN114398098B (en) Application script execution method, device, electronic equipment and computer readable medium
CN112948108B (en) Request processing method and device and electronic equipment
CN110099122B (en) Method and apparatus for sending network request
CN111694679B (en) Message processing method and device and electronic equipment
CN112486826B (en) Test method, test device, electronic equipment and computer readable medium
CN114513548B (en) Directional call information processing method and device
CN112684957A (en) Information display method and device, electronic equipment and medium

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