CN113434196A - Method and device for managing application program - Google Patents

Method and device for managing application program Download PDF

Info

Publication number
CN113434196A
CN113434196A CN202110725376.9A CN202110725376A CN113434196A CN 113434196 A CN113434196 A CN 113434196A CN 202110725376 A CN202110725376 A CN 202110725376A CN 113434196 A CN113434196 A CN 113434196A
Authority
CN
China
Prior art keywords
file
template
application program
identification information
environment
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
CN202110725376.9A
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.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Beijing Fangjianghu 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 Fangjianghu Technology Co Ltd filed Critical Beijing Fangjianghu Technology Co Ltd
Priority to CN202110725376.9A priority Critical patent/CN113434196A/en
Publication of CN113434196A publication Critical patent/CN113434196A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for managing an application program, belonging to the field of local dynamic of a mobile terminal. The method comprises the following steps: acquiring a network domain name of a main engineering network in which the application program is positioned; determining an application program environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Therefore, the application program environment and the environment data are used for knowing which application program environment is currently used by the application program.

Description

Method and device for managing application program
Technical Field
The invention relates to the field of local dynamic of a mobile terminal, in particular to a method and a device for managing an application program.
Background
In the field of local dynamic of a mobile terminal, research personnel locally check the pulled template file information scene after the template file is online based on a local dynamic technology. The version compiling is required to be carried out on the client application program every time the client application program is modified, and then the client application program is packaged into app to be issued, which is called as original development; if a part ui in a page can be published in a way that does not require version compilation and packaging, the part is called local dynamization.
The existing process is as follows: after the template File is pulled, all files are checked through the File Explorer function of the Android Studio, a package folder of a corresponding application program is found, then a dynamic template folder in the package folder is found, and the current File downloading condition can be seen, wherein the downloading condition is that whether the files are transmitted or not is seen from the network transmission angle. But it is not known whether the file is downloaded completely, and other information (name, version, etc.) of the file, where downloading completely is logical, meaning whether the file can be used correctly and the information in the file is complete. The existing process also has the following disadvantages: a) due to the multiple application program environments, which environment data is currently used cannot be known; b) the file name uses an encryption technology for security reasons, and necessary information of the template file cannot be obtained; c) because each time the application program is opened to request to pull all the templates, the condition that some test cases only need to pull part of the template files cannot be met (for example: if a certain template file fails to be pulled, only the template file which fails to be pulled needs to be pulled again); d) the operation of clearing the local file and pulling again is complex (the corresponding folder needs to be found and manually deleted), and the method is not friendly to research and development.
Disclosure of Invention
It is an aim of embodiments of the present invention to provide a method and apparatus for managing applications which may address, or at least partially address, the above mentioned problems.
In order to achieve the above object, an aspect of an embodiment of the present invention provides a method for managing an application, the method including: acquiring a network domain name of a main engineering network in which the application program is positioned; determining an application program environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data.
Optionally, the method further comprises: scanning a parent directory which takes a private directory of the application program as a folder and a template folder which takes the application program environment as a folder name in a device for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size and file version; and displaying the file information for the any one.
Optionally, for any of the above, the method further comprises: under the condition that the file information comprises the file name, analyzing the content at the preset position of the file name to acquire the ID of any one of the file name and the file name; and displaying the ID.
Optionally, for any of the above, the method further comprises: judging whether any one of the file information is available according to the size under the condition that the file information comprises the size; judging whether any one of the files is completely downloaded according to the judgment result of whether any one of the files is available and whether the file information further comprises the file name, the file version and the latest modification time; and displaying the judgment result whether any one of the download is complete.
Optionally, for any template file corresponding to the application program, the method further includes: acquiring template identification information of the template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; and finding a template file corresponding to the template identification information based on the template identification information; and re-pulling or deleting the found template file.
Optionally, finding a template file corresponding to the template identification information based on the template identification information, and redrawing or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file.
Optionally, the template file is determined whether the download is complete based on: judging whether a unique character string exists in a unique character string corresponding to the template file stored in the device for installing the application program and can be mapped with the template identification information, wherein the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
Accordingly, another aspect of the embodiments of the present invention provides an apparatus for managing an application, the apparatus including: the network domain name acquisition module is used for acquiring a network domain name of a main engineering network in which the application program is positioned; the application program environment determining module is used for determining the application program environment corresponding to the application program based on the network domain name; the environment data determining module is used for determining environment data corresponding to the application program according to the determined application program environment; and a display module for displaying the determined application environment and the determined environment data.
Optionally, the apparatus further comprises: a scanning module, configured to scan a parent directory of a device in which the application program is installed, where the parent directory of the application program is a folder, and a template folder of the device in which the application program is installed, where the application program environment is a folder name, and acquire file information of any one of at least one template file corresponding to the application program environment from the template folder, where the file information includes at least one of: file name, file content, latest modification time, size and file version; and the display module is further configured to display the file information for the any one.
Optionally, the apparatus further comprises: the analysis module is used for analyzing the content at the preset position of the file name under the condition that the file information comprises the file name aiming at any one person so as to acquire the ID of the any person; the display module is further configured to display the ID.
Optionally, the apparatus further comprises: a determination module to determine, for any of: judging whether any one of the file information is available according to the size under the condition that the file information comprises the size; judging whether any one of the files is completely downloaded according to the judgment result of whether any one of the files is available and whether the file information further comprises the file name, the file version and the latest modification time; the display module is also used for displaying the judgment result whether any one of the download pieces is complete.
Optionally, the apparatus further comprises: a template identification information obtaining module, configured to obtain, for any template file corresponding to the application program, template identification information of the template file, where the template identification information includes: file timestamp, MD5, file name or ID; the redrawing or deleting module is used for finding the template file corresponding to the template identification information according to any template file corresponding to the application program and based on the template identification information; and re-pulling or deleting the found template file.
Optionally, the redrawing or deleting module finds the template file corresponding to the template identification information based on the template identification information and redrawing or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file.
Optionally, the template file is determined whether the download is complete based on: judging whether a unique character string exists in a unique character string corresponding to the template file stored in the device for installing the application program and can be mapped with the template identification information, wherein the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
In addition, another aspect of the embodiments of the present invention also provides a machine-readable storage medium, which stores instructions for causing a machine to execute the above-mentioned method.
In addition, another aspect of the embodiments of the present invention further provides a processor, configured to execute a program, where the program is executed to perform the above method.
Furthermore, another aspect of the embodiments of the present invention also provides a computer program product, which includes a computer program/instructions, when executed by a processor, implement the steps of the above-mentioned method.
According to the technical scheme, the network domain name of the main engineering network is acquired, the application program environment corresponding to the application program is determined based on the network domain name, the environment data corresponding to the application program is determined based on the determined application program environment, and the determined application program environment and the environment data are displayed, so that which application program environment (such as application program environments of development, test, preview, online and the like) is used by the application program at present and which environment data is used can be known, and richer information is provided.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a flow diagram of a method for managing applications provided by an embodiment of the present invention; and
fig. 2 is a block diagram of an apparatus for managing an application according to another embodiment of the present invention.
Description of the reference numerals
1 network domain name acquisition module 2 application program environment determination module
3 environment data determination module 4 display module
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
One aspect of an embodiment of the present invention provides a method for managing an application.
Fig. 1 is a flowchart of a method for managing an application according to an embodiment of the present invention. As shown in fig. 1, the method includes the following. Optionally, the method can be applied to Android dynamic template file management.
In step S10, the network domain name of the main engineering network where the application is located is acquired. For example, a listener is used in the memory of the application program to monitor the change of the main engineering network of the application program, and when the main engineering network changes, the changed network domain name is synchronized to the application program to obtain the network domain name of the main engineering network where the application program is located.
In step S11, an application environment corresponding to the application is determined based on the network domain name. For example, when dev is included in a domain name, the application environment is development; when test is included in the domain name, the application program environment is test; when the domain name comprises preview, the application program environment is preview; when an online is included in the domain name, the application environment is online.
In step S12, environment data corresponding to the application is determined based on the determined application environment. The environment data is a data set collective name under a certain specific environment which needs to be used for showing when the client application program runs. Generally, the data seen by the online user is from the formal environment (i.e. the online environment), the development and test environment data does not get through with the online formal environment, and only some mock data is provided to meet the test requirement. The application environment refers to the use environment (online, dev, etc.) where the application is currently located; the environment data is a general name of a set of data sets corresponding to the application program environment, and comprises the following components: interface data, account system, policy, configuration, etc. In addition, the application program environment and the environment data are in one-to-one correspondence, and the environment data corresponding to the application program environment can be known after the application program environment is known.
In step S13, the determined application environment and the determined environment data are displayed.
According to the technical scheme, the network domain name of the main engineering network is acquired, the application program environment corresponding to the application program is determined based on the network domain name, the environment data corresponding to the application program is determined based on the determined application program environment, and the determined application program environment and the environment data are displayed, so that which application program environment (such as application program environments of development, test, preview, online and the like) is used by the application program at present and which environment data is used can be known, and richer information is provided.
Optionally, in an embodiment of the present invention, the method further includes: scanning a parent directory which takes a private directory of an application program as a folder and a template folder which takes an application program environment as a folder name in a device for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size and file version; and displaying the file information for either. For example, the file information is accessed through the API. Thus, the information of the template file is known.
Optionally, in an embodiment of the present invention, the method further includes the following. For any template file which is acquired with the file information, under the condition that the file information comprises a file name, analyzing the content at the preset position of the file name to acquire the ID of the template file; and displaying the ID. The position of the ID in the file name is known in advance, and the ID is obtained by analyzing the content of the position. For example, the file name is formed by splicing the MD5 and the ID, the ID is placed behind the MD5, the ID occupies the second half of the file name is known in advance, and the ID is obtained by analyzing the content of the second half of the file name. Thus, it is achieved to know the necessary information ID of the template file.
Optionally, in an embodiment of the present invention, the method further includes the following. For any template file obtained from the file information, judging whether the template file is available according to the size under the condition that the file information comprises the size; judging whether any one is completely downloaded according to the judgment result of whether any one is available and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the judgment result whether any one of the download is complete. For example, in the case where the size is 0, the template file is not available; in the case where the size is not 0, a template file is available; under the condition that the file information also comprises a file name, a file version and the latest modification time, the information in the file is complete; in the case where the file information does not include all of the file name, the file version, and the latest modification time, the information in the file is incomplete. If the template file is available and the information in the file is complete, the template file is completely downloaded; if the template file is not available and/or the information in the file is incomplete, the template file download is incomplete. Therefore, the method and the device realize the understanding of the state of the template file and know whether the downloading of the template file is complete or not.
Optionally, in an embodiment of the present invention, the method further includes the following. Aiming at any template file corresponding to the application program, the method further comprises the following steps: acquiring template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; and finding a template file corresponding to the template identification information based on the template identification information; and re-pulling or deleting the found template file. Thus, the operations of clearing the local template file and pulling the template file again are simplified. Specifically, when deleting based on the template identification information, it may be that when receiving an instruction to delete a certain template file on the application program, the template identification information corresponding to the template file is taken out from the memory of the application program; finding a unique character string which can be mapped with the template identification information in the equipment for installing the application program, wherein the unique character string is generated by splicing a file timestamp, an MD5, a file name or an ID of the template file; finding a storage address corresponding to the unique character string through the unique character string which can be mapped with the template identification information, wherein the storage address is the storage address of the template file in the device for installing the application program; and finding a template file through the found storage address, wherein the template file is the template file to be deleted, and executing deletion operation on the template file. The template identification information comprises a file timestamp, MD5, a file name or ID of the template file, the unique character string comprises a file timestamp, MD5, a file name or ID of the template file, and the mapping of the template identification information and the unique character string means that the file timestamp, MD5, the file name or ID in the template identification information and the file timestamp, MD5, the file name or ID in the unique character string can be in one-to-one correspondence. The template file corresponding to the unique character string that can be mapped with the template identification information is the template file corresponding to the template identification information.
Optionally, in the embodiment of the present invention, finding a template file corresponding to the template identification information based on the template identification information, and redrawing or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file. And re-pulling is carried out under the condition that the template identification information is marked and removed, so that the condition that all template files are required to be pulled when the application program is not opened every time can be realized, and the condition that some test cases of partial template files are pulled is met.
The case of re-pulling the template file for the template identification information marked clear may include the following. When a certain template file needs to be used, for example, when a certain UI interface is generated and a certain template file needs to be used, the template identification information corresponding to the template file is found in the memory of the application program, and if the template identification information is marked and removed, the template file corresponding to the template identification information is found from the preset template file management platform based on the template identification information, and the found template file is pulled again. The template identification information comprises a file timestamp, MD5, a file name or ID, the template identification information and the template files are in one-to-one correspondence in a preset template file management platform, a unique template file can be determined from the preset template file management platform, and the template file is the template file corresponding to the template identification information which is marked and removed; and storing the template file determined from the preset template file management platform to a storage address of the template file corresponding to the template identification information marked and removed, wherein the storage address can be found through a unique character string which can be mapped with the template identification information marked and removed, and specifically, refer to the contents described in the above related embodiment of "deleting the template file". Furthermore, when a certain template file is used but the template identification information is marked to be removed, the template file stored in the device for installing the application program may be found for use based on the template identification information marked to be removed, for example, the template file stored in the device may be found as described in the above-mentioned related embodiment of "delete template file"; the template file which is pulled again is used when the template file is reused next time.
In addition, the case of re-pulling the template file for incomplete template file download may include the following. When a certain template file needs to be used but the downloading of the template file is judged to be incomplete, the template file corresponding to the template identification information is found from a preset template file management platform based on the template identification information of the template file in a memory of an application program, the found template file is pulled again, wherein the template identification information comprises a file timestamp, MD5, a file name or an ID, a unique template file can be determined from the preset template file management platform, and the template file is judged to download the template file corresponding to the incomplete template file; the template file determined from the preset template file management platform is stored into the storage address of the template file corresponding to the template identification information stored before, where the storage address can be found through the unique character string that can be mapped with the template identification information, specifically, refer to the content described in the above related embodiment of "delete template file".
Optionally, in the embodiment of the present invention, whether the template file is completely downloaded may be determined based on the following: judging whether a unique character string exists in a unique character string corresponding to a template file stored in equipment for installing an application program and mapping the unique character string with template identification information, wherein the unique character string is generated by splicing a file time stamp, MD5, a file name or an ID. Specifically, whether a unique character string capable of being mapped with template identification information corresponding to a template file exists in a unique character string corresponding to the template file stored in a device for installing an application program is judged, and if the unique character string capable of being mapped with the template identification information corresponding to the template file exists, the template file is completely downloaded; and if the unique character string which can be mapped with the template identification information corresponding to the template file does not exist, the template file is incompletely downloaded.
In summary, for the defects in the prior art, the technical solution provided by the embodiment of the present invention can achieve the following advantages: a. the information of the template file is displayed, and the current state of the template file can be visually seen; b. the data environment in which the user is currently located is visually seen; c. the template file management method has the advantages that the management (addition and deletion) of the template file is conveniently supported, the learning cost is avoided, and various testing requirements are met; d. and the file can be pulled at any time, and the latest template can be updated at any time.
Accordingly, another aspect of the embodiments of the present invention provides an apparatus for managing an application.
Fig. 2 is a block diagram of an apparatus for managing an application according to another embodiment of the present invention. As shown in fig. 2, the apparatus includes a network domain name acquisition module 1, an application environment determination module 2, an environment data determination module 3, and a display module 4. The network domain name acquisition module 1 is used for acquiring a network domain name of a main engineering network where an application program is located; the application program environment determining module 2 is used for determining an application program environment corresponding to an application program based on the network domain name; the environment data determining module 3 is used for determining environment data corresponding to the application program according to the determined application program environment; the display module 4 is used for displaying the determined application environment and the determined environment data.
Optionally, in an embodiment of the present invention, the apparatus further includes: the scanning module is used for scanning a parent directory which takes a private directory of an application program as a folder and a template folder which takes an application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size and file version; and the display module is also used for displaying the file information aiming at any one of the files.
Optionally, in an embodiment of the present invention, the apparatus further includes: the analysis module is used for analyzing the content at the preset position of the file name under the condition that the file information comprises the file name aiming at any one person so as to obtain the ID of any one person; the display module is also used for displaying the ID.
Optionally, in an embodiment of the present invention, the apparatus further includes: a determination module to determine, for any one: judging whether any one of the file information is available according to the size under the condition that the file information comprises the size; judging whether any one of the files is completely downloaded according to the judgment result of whether any one of the files is available and whether the file information further comprises the file name, the file version and the latest modification time; the display module is also used for displaying the judgment result whether any one of the download pieces is complete.
Optionally, in an embodiment of the present invention, the apparatus further includes: the template identification information acquisition module is used for acquiring template identification information of a template file aiming at any template file corresponding to an application program, wherein the template identification information comprises: file timestamp, MD5, file name or ID; the redraw or delete module is used for finding the template file corresponding to the template identification information according to any template file corresponding to the application program based on the template identification information; and re-pulling or deleting the found template file.
Optionally, in this embodiment of the present invention, the redrawing or deleting module, based on the template identification information, finds the template file corresponding to the template identification information and redraws or deletes the found template file, including: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file.
Optionally, in this embodiment of the present invention, the template file is determined whether the download is complete based on: judging whether a unique character string exists in a unique character string corresponding to a template file stored in equipment for installing an application program and mapping the unique character string with template identification information, wherein the unique character string is generated by splicing a file time stamp, MD5, a file name or an ID.
The specific working principle and benefits of the apparatus for managing an application provided by the embodiment of the present invention are similar to those of the method for managing an application provided by the embodiment of the present invention, and will not be described herein again.
The device for managing the application program comprises a processor and a memory, wherein the network domain name acquisition module, the application program environment determination module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more, and the kernel parameters are adjusted to know which application program environment is currently used by the application program and which environment data is used.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a machine storage medium on which a program is stored, which when executed by a processor implements the method for managing an application described in the above embodiments.
An embodiment of the present invention provides a processor, where the processor is configured to execute a program, where the program executes the method for managing an application program described in the foregoing embodiment when running.
The embodiment of the invention provides electronic equipment, which comprises a processor, a memory and a program which is stored on the memory and can be operated on the processor, wherein the processor executes the program and realizes the following steps: acquiring a network domain name of a main engineering network in which an application program is positioned; determining an application program environment corresponding to an application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Optionally, scanning a parent directory of a device for installing the application program, which uses a private directory of the application program as a folder, and a template folder of which an application program environment is a folder name, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, where the file information includes at least one of: file name, file content, latest modification time, size and file version; and displaying the file information for either. Optionally, for any, the method further comprises: under the condition that the file information comprises a file name, analyzing the content at the preset position of the file name to acquire the ID of any one of the file name and the file name; and displaying the ID. Optionally, for any, the method further comprises: judging whether any one is available according to the size under the condition that the file information comprises the size; judging whether any one is completely downloaded according to the judgment result of whether any one is available and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the judgment result whether any one of the download is complete. Optionally, for any template file corresponding to the application program, the method further includes: acquiring template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; and finding a template file corresponding to the template identification information based on the template identification information; and re-pulling or deleting the found template file. Optionally, finding a template file corresponding to the template identification information based on the template identification information and redrawing or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file. Optionally, the template file is determined whether the download is complete based on: judging whether a unique character string exists in a unique character string corresponding to a template file stored in equipment for installing an application program and mapping the unique character string with template identification information, wherein the unique character string is generated by splicing a file time stamp, MD5, a file name or an ID. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a network domain name of a main engineering network in which an application program is positioned; determining an application program environment corresponding to an application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Optionally, scanning a parent directory of a device for installing the application program, which uses a private directory of the application program as a folder, and a template folder of which an application program environment is a folder name, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, where the file information includes at least one of: file name, file content, latest modification time, size and file version; and displaying the file information for either. Optionally, for any, the method further comprises: under the condition that the file information comprises a file name, analyzing the content at the preset position of the file name to acquire the ID of any one of the file name and the file name; and displaying the ID; for any, the method further comprises: judging whether any one is available according to the size under the condition that the file information comprises the size; judging whether any one is completely downloaded according to the judgment result of whether any one is available and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the judgment result whether any one of the download is complete. Optionally, for any template file corresponding to the application program, the method further includes: acquiring template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; and finding a template file corresponding to the template identification information based on the template identification information; and re-pulling or deleting the found template file. Optionally, finding a template file corresponding to the template identification information based on the template identification information and redrawing or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and re-pulling the found template file. Optionally, the template file is determined whether the download is complete based on: judging whether a unique character string exists in a unique character string corresponding to a template file stored in equipment for installing an application program and mapping the unique character string with template identification information, wherein the unique character string is generated by splicing a file time stamp, MD5, a file name or an ID.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for managing applications, the method comprising:
acquiring a network domain name of a main engineering network in which the application program is positioned; and
determining an application program environment corresponding to the application program based on the network domain name;
determining environment data corresponding to the application program according to the determined application program environment; and
the determined application environment and the determined environment data are displayed.
2. The method of claim 1, further comprising:
scanning a parent directory which takes a private directory of the application program as a folder and a template folder which takes the application program environment as a folder name in a device for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size and file version; and
for the any one, displaying the file information.
3. The method of claim 2, further comprising, for any of the above:
under the condition that the file information comprises the file name, analyzing the content at the preset position of the file name to acquire the ID of any one of the file name and the file name; and
and displaying the ID.
4. The method of claim 2, further comprising, for any of the above:
judging whether any one of the file information is available according to the size under the condition that the file information comprises the size;
judging whether any one of the files is completely downloaded according to the judgment result of whether any one of the files is available and whether the file information further comprises the file name, the file version and the latest modification time; and
and displaying the judgment result whether any one of the download is complete.
5. The method according to claim 1, wherein for any template file corresponding to the application program, the method further comprises:
acquiring template identification information of the template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID;
based on the template identification information, finding a template file corresponding to the template identification information; and
and re-pulling or deleting the found template file.
6. The method of claim 5, wherein finding the template file corresponding to the template identification information based on the template identification information and redrawing or deleting the found template file comprises:
under the condition that the downloading of the template file is incomplete or the template identification information is marked and removed, finding the template file corresponding to the template identification information based on the template identification information; and
and re-pulling the found template file.
7. The method of claim 6, wherein the template file is determined whether the download is complete based on:
judging whether a unique character string exists in a unique character string corresponding to the template file stored in the device for installing the application program and can be mapped with the template identification information, wherein the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
8. An apparatus for managing applications, the apparatus comprising:
the network domain name acquisition module is used for acquiring a network domain name of a main engineering network in which the application program is positioned;
the application program environment determining module is used for determining the application program environment corresponding to the application program based on the network domain name;
the environment data determining module is used for determining environment data corresponding to the application program according to the determined application program environment; and
a display module for displaying the determined application program environment and the determined environment data.
9. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of any one of claims 1-7.
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 according to any of claims 1-7.
CN202110725376.9A 2021-06-29 2021-06-29 Method and device for managing application program Pending CN113434196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110725376.9A CN113434196A (en) 2021-06-29 2021-06-29 Method and device for managing application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110725376.9A CN113434196A (en) 2021-06-29 2021-06-29 Method and device for managing application program

Publications (1)

Publication Number Publication Date
CN113434196A true CN113434196A (en) 2021-09-24

Family

ID=77757581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110725376.9A Pending CN113434196A (en) 2021-06-29 2021-06-29 Method and device for managing application program

Country Status (1)

Country Link
CN (1) CN113434196A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060123010A1 (en) * 2004-09-15 2006-06-08 John Landry System and method for managing data in a distributed computer system
US20100180284A1 (en) * 2009-01-13 2010-07-15 Disney Enterprises, Inc. System and method for integrated hardware platform for flash applications with distributed objects
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
CN106897609A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 The method and device that a kind of application program to dynamic load is monitored
CN107133038A (en) * 2017-04-28 2017-09-05 广州阿里巴巴文学信息技术有限公司 A kind of application program changes the method and its device of skin
CN108241500A (en) * 2018-01-15 2018-07-03 腾讯科技(深圳)有限公司 A kind of restorative procedure of hardware component, device, system and storage medium
CN109814939A (en) * 2017-11-20 2019-05-28 华为技术有限公司 The production method and device of a kind of dynamic loading method, file destination
CN110149423A (en) * 2019-07-04 2019-08-20 深圳市珍爱捷云信息技术有限公司 Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN111221593A (en) * 2019-12-31 2020-06-02 五八有限公司 Dynamic loading method and device
CN111478985A (en) * 2020-04-15 2020-07-31 北京首汽智行科技有限公司 Service domain name basic information dynamic configuration method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060123010A1 (en) * 2004-09-15 2006-06-08 John Landry System and method for managing data in a distributed computer system
US20100180284A1 (en) * 2009-01-13 2010-07-15 Disney Enterprises, Inc. System and method for integrated hardware platform for flash applications with distributed objects
CN106897609A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 The method and device that a kind of application program to dynamic load is monitored
CN105959138A (en) * 2016-04-29 2016-09-21 深圳前海大数点科技有限公司 Micro-service dynamic disposition system and method based on cloud calculation
CN107133038A (en) * 2017-04-28 2017-09-05 广州阿里巴巴文学信息技术有限公司 A kind of application program changes the method and its device of skin
CN109814939A (en) * 2017-11-20 2019-05-28 华为技术有限公司 The production method and device of a kind of dynamic loading method, file destination
CN108241500A (en) * 2018-01-15 2018-07-03 腾讯科技(深圳)有限公司 A kind of restorative procedure of hardware component, device, system and storage medium
CN110149423A (en) * 2019-07-04 2019-08-20 深圳市珍爱捷云信息技术有限公司 Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN111221593A (en) * 2019-12-31 2020-06-02 五八有限公司 Dynamic loading method and device
CN111478985A (en) * 2020-04-15 2020-07-31 北京首汽智行科技有限公司 Service domain name basic information dynamic configuration method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WENBO CHEN 等: "Dynamic Server Cluster Load Balancing in Virtualization Environment with OpenFlow", 《INTERNATIONAL JOURNAL OF DISTRIBUTED SENSOR NETWORKS》, vol. 11, no. 7, 7 July 2015 (2015-07-07), pages 1 - 9 *
刘畅: "移动互联网下动态化技术的研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 139 - 4 *
宫向一: "基于OSGi的Android应用模块动态加载框架设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 July 2016 (2016-07-15), pages 138 - 501 *

Similar Documents

Publication Publication Date Title
US9342273B1 (en) Automatic communications graphing for a source application
CN108829593A (en) Code coverage calculation and analysis methods, device, equipment and storage medium
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US10592312B2 (en) Message oriented middleware with integrated rules engine
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN111563015A (en) Data monitoring method and device, computer readable medium and terminal equipment
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
US11210110B2 (en) Application library analytics tool
CN111107133A (en) Generation method of difference packet, data updating method, device and storage medium
CN111596931A (en) Application program packaging method and device, electronic equipment and readable storage medium
CN113434196A (en) Method and device for managing application program
CN112764796A (en) Installation package generation system
CN115185644A (en) Detection method, system, equipment and storage medium based on container interactive application
CN115080114A (en) Application program transplanting processing method, device and medium
CN114117434A (en) Detection method and device
CN113918373A (en) Memory leak monitoring method, memory leak detection method and corresponding devices
CN113986679A (en) Performance analysis method and device based on configuration information hot loading
CN114115982A (en) Code issuing method, device, equipment and storage medium
CN111273940B (en) Method and device for uploading program file to code warehouse
CN113220386A (en) Instrument board publishing method and related equipment
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
CN114911534B (en) Page information extraction method, setting method, device, electronic equipment and medium
CN111638903B (en) Method and device for generating difference information of different software versions
CN112558975B (en) Method and device for switching codes of components, electronic equipment and readable storage 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
TA01 Transfer of patent application right

Effective date of registration: 20240418

Address after: 100000 Room 102, Floor 1, Building 1, No. 2, Chuangye Road, Haidian District, Beijing

Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd.

Country or region after: China

Address before: 101309 room 24, 62 Farm Road, Erjie village, Yangzhen, Shunyi District, Beijing

Applicant before: Beijing fangjianghu Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right