Application running method and device

By using the target program in the Android system, the problem of logging in to multiple accounts for the same application is solved, reducing storage space usage and simplifying the upgrade process, and improving the stability and installation efficiency of the application.

CN113641371BActive Publication Date: 2025-08-19BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110965471.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2025-08-19
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively solve the problem of logging in multiple accounts with the same application at the same time in the Android system, and there is a risk of adaptation difficulty and application crashes.

Method used

By storing the target program in the preset directory, the first application and the second application share the target program to achieve the target function, reducing storage space usage and simplifying the upgrade process.

Benefits of technology

It realizes the function of logging into multiple accounts with the same application, reducing storage space usage, simplifying the upgrade process, and shortening installation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641371B_ABST
    Figure CN113641371B_ABST
Patent Text Reader

Abstract

The present invention discloses an application running method and device, relating to the field of computer technology. A specific implementation of the method includes: a first application receives a first execution instruction for a target function; in response to the first execution instruction, the first application obtains a target program corresponding to the target function in a preset directory, the target program is stored in the preset directory by the installation program of the second application, the first application and the second application both correspond to the target application, the first application is used to log in to the first account of the target application, and the second application is used to log in to the second account of the target application; the first application runs the target program to implement the target function. This implementation can effectively solve the problem of logging into multiple accounts for the same application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an application running method and device. Background Art

[0002] With the development of the internet, more and more users are demanding the ability to log in to multiple accounts simultaneously within the same app. This functionality can be achieved by modifying the Android system source code or leveraging the Android system's reflection mechanism. However, due to the involvement of the Android system source code, which is subject to frequent releases and code changes, these methods are difficult to adapt, can easily cause app crashes, and are difficult to fully adapt to all Android versions. Summary of the Invention

[0003] In view of this, an embodiment of the present invention provides an application running method and apparatus, which can effectively solve the problem of simultaneously logging into multiple accounts for the same application.

[0004] In a first aspect, an embodiment of the present invention provides an application running method, comprising:

[0005] The first application receives a first execution instruction for a target function;

[0006] In response to the first execution instruction, the first application obtains a target program corresponding to the target function from a preset directory; wherein the target program is stored in the preset directory by an installer of a second application, the first application and the second application both correspond to target applications, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0007] The first application runs the target program to implement the target function.

[0008] Optionally, the second application responds to the second execution instruction for the target function received by the second application by running the target program in the preset directory.

[0009] In a second aspect, an embodiment of the present invention provides an application installation method, including:

[0010] receiving a first installation instruction for a second application;

[0011] In response to the first installation instruction, the installation program of the second application is executed to store the target program in a preset directory, where the target program is used to implement the target function.

[0012] Optionally, the installation program of the second application is further used to store the basic program of the second application in a private directory of the second application, and the basic program of the second application is used to support the execution of the target program.

[0013] Optionally, after executing the installation program of the second application, the method further includes:

[0014] Receive a second installation instruction for a first application; wherein the first application and the second application both correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0015] In response to the second installation instruction, the installation program of the first application is executed, so that the installed first application loads the target program in the preset directory during operation to achieve the target function.

[0016] Optionally, the installer of the first application is further used to store a basic program of the first application in a private directory of the first application, where the basic program of the first application is used to support the execution of the target program.

[0017] In a third aspect, an embodiment of the present invention provides a method for generating an installation program, comprising:

[0018] Obtaining a basic program and a target program of a second application, wherein the target program is used to implement a target function;

[0019] Based on the basic program and target program of the second application, an installation program for the second application is generated. The installation program for the second application is used to store the basic program of the second application in a private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

[0020] Optionally, it also includes:

[0021] Obtaining a basic program of a first application; wherein the first application and the second application both correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0022] Based on the basic program of the first application, an installation program of the first application is generated. The installation program of the first application is used to store the basic program of the first application in a private directory of the first application. The installation program of the first application is also used to enable the installed first application to load the target program in the preset directory during operation.

[0023] In a fourth aspect, an embodiment of the present invention provides an application running device, including:

[0024] An instruction receiving module, configured for a first application to receive a first execution instruction for a target function;

[0025] a program acquisition module, configured to respond to the first execution instruction, causing the first application to acquire a target program corresponding to the target function from a preset directory; wherein the target program is installed by an installer of a second application, the first application and the second application both correspond to the target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0026] A program running module is used for the first application to run the target program to achieve the target function.

[0027] In a fifth aspect, an embodiment of the present invention provides an application installation device, including:

[0028] An instruction receiving module, configured to receive a first installation instruction for a second application;

[0029] The program execution module is used to respond to the first installation instruction and execute the installation program of the second application to store the target program in a preset directory, wherein the target program is used to realize the target function.

[0030] In a sixth aspect, an embodiment of the present invention provides a device for generating an installation program, comprising:

[0031] A program acquisition module, configured to acquire a basic program and a target program of the second application, wherein the target program is configured to implement a target function;

[0032] A program generation module is used to generate an installation program for the second application based on the basic program and target program of the second application. The installation program for the second application is used to store the basic program of the second application in a private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

[0033] In a seventh aspect, an embodiment of the present invention provides an electronic device, including:

[0034] one or more processors;

[0035] a storage device for storing one or more programs,

[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.

[0037] In an eighth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, which implements the method described in any of the above embodiments when the program is executed by a processor.

[0038] One embodiment of the above invention has the following advantages or beneficial effects: the first application and the second application both correspond to the same target application. Logging in to different accounts for the same target application through the first application and the second application, respectively, can effectively solve the problem of logging in to multiple accounts for the same application.

[0039] Furthermore, the first application can call a target program installed by the second application's installer. This means the first and second applications can share the target program to achieve their intended functionality. Compared to installing the target program in their own directories, this reduces the storage space required by the applications and facilitates the management and use of terminal storage space.

[0040] In addition, both the first and second applications can implement the target function by calling the target program. When the target function needs to be upgraded, the target program in the preset directory can be upgraded directly without upgrading the first and second applications separately, simplifying the application upgrade process.

[0041] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0042] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0044] Figure 1 is a schematic diagram of an exemplary application scenario in which embodiments of the present invention can be applied;

[0045] Figure 2 This is a schematic diagram of a process of an application running method provided by an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of a process of an application installation method provided by an embodiment of the present invention;

[0047] Figure 4 is a schematic diagram of the process of another application installation method provided by an embodiment of the present invention;

[0048] Figure 5This is a schematic diagram of a process of a method for generating an installation program provided by an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of the process of another method for generating an installation program provided by an embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of a system framework for implementing simultaneous multi-account logins provided by an embodiment of the present invention;

[0051] Figure 8 1 is a flow chart of a method for implementing multiple account logins for the same application provided by an embodiment of the present invention;

[0052] Figure 9 This is a schematic structural diagram of an application running device provided by an embodiment of the present invention;

[0053] Figure 10 is a structural diagram of an application installation device provided by an embodiment of the present invention;

[0054] Figure 11 This is a schematic structural diagram of a device for generating an installation program provided by an embodiment of the present invention;

[0055] Figure 12 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0057] Figure 1 Schematic diagram of an exemplary application scenario in which the embodiment of the present invention can be applied. Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing a communication link between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0058] Terminal devices 101, 102, and 103 may be deployed with a first application and a second application, each corresponding to the same target application. The first application is used to log in to the target application with a first account, while the second application is used to log in to the target application with a second account. The first application receives a first execution instruction for a target function. In response to the first execution instruction, the first application retrieves a target program corresponding to the target function from a preset directory, which is stored in the preset directory by the installation program of the second application. The first application then runs the target program to implement the target function.

[0059] The user sends an installation instruction for the first application or the second application to the server 105 via the terminal device 101, 102, or 103 via the network 104. The server 105 returns the installation program for the first application or the second application to the terminal device. The installation program for the first application is used to store the basic program of the first application in the private directory of the first application. The installation program for the first application is also used to enable the installed first application to load the target program in the preset directory during operation. The installation program for the second application is used to store the basic program of the second application in the private directory of the second application. The installation program for the second application is also used to store the target program of the second application in the preset directory.

[0060] It should be noted that the application running method and application installation method provided in the embodiments of the present invention are generally executed by the terminal devices 101, 102, and 103. The installation program generation method provided in the embodiments of the present invention is generally executed by the server 105. Accordingly, the application running device and application installation device are generally provided in the terminal devices 101, 102, and 103, and the installation program generation device is generally provided in the server 105.

[0061] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0062] Figure 2 This is a schematic diagram of a process of an application running method provided by an embodiment of the present invention. Figure 2 As shown, the method includes:

[0063] Step 201: A first application receives a first execution instruction for a target function.

[0064] The method of the embodiment of the present invention can be applied to terminal systems such as Android system and Apple system. The embodiment of the present invention does not limit the specific system to which the method can be applied.

[0065] Step 202: In response to the first execution instruction, the first application obtains a target program corresponding to the target function in a preset directory; wherein the target program is stored in the preset directory by the installation program of the second application, the first application and the second application both correspond to the target application, the first application is used to log in to the first account of the target application, and the second application is used to log in to the second account of the target application.

[0066] The target application is an application that requires simultaneous login to multiple accounts. The target application can be set based on specific needs. Target applications may include the JD App, WeChat App, etc. The first account is different from the second account. The method of the embodiments of the present invention can be used to log in to different accounts for the same application, thereby resolving the difficulty of logging in to multiple accounts for the same application simultaneously.

[0067] The first and second applications can call the same target program to achieve the same target function. The target function is a function that both the first and second applications need to implement, such as logging in, sharing, and commenting. The target function can be set according to specific needs. The target program is the program code used to achieve the target function. The target program can be implemented as a component, plug-in, control, or modularized.

[0068] During implementation, the second application's installer may first install the target program in a preset directory. The preset directory is a directory to which both the first and second applications have access rights. The preset directory may include a public directory in the system. Both the first and second applications can achieve their desired functions by searching for and running the target program in the preset directory.

[0069] The path to the target program can be stored in the relevant programs or configuration files of the first and second applications. Alternatively, a correspondence between the target function and the storage path of the target program can be stored in the systems of the first and second applications, and the target program corresponding to the target function can be obtained based on this correspondence. The first and second applications can also first search for the target program corresponding to the target function in their own private directories. If no target program is found, they can then search for the target program corresponding to the target function in a preset directory.

[0070] Step 203: The first application runs the target program to implement the target function.

[0071] It should be noted that the system can also deploy a third application, a fourth application, and so on, corresponding to the target application, for logging into multiple accounts corresponding to the target application. The specific number of deployed applications can be determined based on the number of accounts required to log into the target application. Furthermore, the third application, the fourth application, and so on, do not need to install the target program in their own directory; they can achieve the target function by calling the target program in a preset directory.

[0072] In an embodiment of the present invention, the first application and the second application both correspond to the same target application and are used to log in different accounts for the same application, so as to solve the problem of logging in multiple accounts for the same application.

[0073] The first application can implement the target function by calling the target program installed by the second application's installer, without having to install the target program in the first application's own directory. This can reduce the storage space required by the application and facilitate the management and use of the terminal's storage space.

[0074] In addition, both the first and second applications can implement the target function by calling the target program. When the target function needs to be upgraded, the target program in the preset directory can be upgraded directly without upgrading the first and second applications separately, simplifying the application upgrade process.

[0075] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0076] Figure 3 FIG is a schematic diagram of a process of an application installation method provided by an embodiment of the present invention. Figure 3 As shown, the method includes:

[0077] Step 301: Receive a first installation instruction for a second application.

[0078] Step 302: In response to the first installation instruction, execute the installation program of the second application to store the target program in a preset directory, where the target program is used to implement the target function.

[0079] The target application corresponds to a target function, which can be a function that both the first application and the second application need to implement, such as logging in, sharing, commenting, etc.

[0080] The installer of the second application is also used to store the basic program of the second application in the private directory of the second application. The basic program corresponds to the basic function. The basic function may include: underlying functions and personalized functions. The underlying function may be the underlying function required for the operation of the second application, such as image loading, network request, sharing, positioning, etc. The underlying function may be located at the lower layer of the target function to support the implementation of the target function. The personalized function is the function of the second application that is different from the first application. The personalized function needs to be implemented in the second application, but not in the first application. The personalized function can reflect the different needs between the main application and the multi-opened application.

[0081] In the embodiment of the present invention, the first application and the second application both correspond to the same target application. Logging in different accounts for the same target application through the first application and the second application can better solve the problem of logging in to multiple accounts for the same application.

[0082] By installing the second application, the target program shared by the first and second applications is stored in a preset directory. This allows both the first and second applications to achieve the same target function by running the target program, without having to install the target program in the first application's own directory. This reduces the storage space required by the installed first application, facilitating the management and use of the terminal's storage space.

[0083] In addition, both the first and second applications can implement the target function by calling the target program. When the target function needs to be upgraded, the target program in the preset directory can be upgraded directly without upgrading the first and second applications separately, simplifying the application upgrade process.

[0084] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0085] Figure 4 FIG. 1 is a schematic diagram of another application installation method according to an embodiment of the present invention. Figure 4 As shown, the method includes:

[0086] Step 401: Receive a second installation instruction for a first application, where both the first application and the second application correspond to a target application. The first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application.

[0087] Target applications are applications that require multiple accounts to be logged in simultaneously. Target applications can be set based on specific needs. Examples include the JD App and WeChat App.

[0088] Step 402: In response to the second installation instruction, the installation program of the first application is executed, so that the installed first application loads the target program in the preset directory during operation to achieve the target function.

[0089] The first application system may store a correspondence between the target function and the storage path of the target program, and retrieve the target program corresponding to the target function based on the correspondence. The first application may also first search for the target program corresponding to the target function in its own private directory, and if the target program is not found, then search for the target program corresponding to the target function in a preset directory.

[0090] Step 403: Store the basic program of the first application in the private directory of the first application.

[0091] Basic programs correspond to basic functions. Basic functions may include: underlying functions and personalized functions. The underlying functions may be the underlying functions required for the operation of the first application, such as image loading, network requests, sharing, positioning, etc. The underlying functions may be located below the target function to support the implementation of the target function. Personalized functions are functions of the first application that are different from those of the second application. Personalized functions need to be implemented in the first application, but not in the second application. Personalized functions can reflect the different needs between the main application and multiple applications.

[0092] In an embodiment of the present invention, the first application and the second application correspond to the same target application. The first account is different from the second account. The first application and the second application enable different accounts to be logged into the same application, thereby resolving the problem of difficulty in simultaneously logging into multiple accounts for the same application.

[0093] Through the installation program of the first application, the first application can directly load the target program in the preset directory during operation to achieve the target function without having to reinstall the target program. Therefore, the storage space required by the first application after installation can be reduced, which facilitates the management and use of the terminal's storage space.

[0094] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0095] Figure 5 This is a schematic diagram of a process of generating a method for installing a program provided by an embodiment of the present invention. Figure 5 As shown, the method includes:

[0096] Step 501: Obtain a basic program and a target program of a second application, where the target program is used to implement a target function.

[0097] The target application corresponds to a target function, which can be a function that both the first application and the second application need to implement, such as logging in, sharing, commenting, etc.

[0098] The installer of the second application is also used to store the basic program of the second application in the private directory of the second application. The basic program corresponds to the basic function. The basic functions may include: underlying functions and personalized functions. The underlying functions may be the underlying functions required for the operation of the application, such as image loading, network request, sharing, positioning, etc. The underlying functions may be located in the lower layer of the target function to support the implementation of the target function. Personalized functions are functions of the second application that are different from the first application. Personalized functions need to be implemented in the second application, but not in the first application. Personalized functions can reflect the different needs between the main application and multiple applications.

[0099] Step 502: Generate an installation program for the second application based on the basic program and target program of the second application. The installation program for the second application is used to store the basic program of the second application in the private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

[0100] An embodiment of the present invention discloses a method for generating an installation program for a second application. The installation program for the second application is used to store the target program of the second application in a preset directory. The first application and the second application both correspond to the same target application, and are used to realize simultaneous login of multiple accounts for the same target application. The first application and the second application can both realize the same target function by installing the target program. By rationally packaging the codes involved in the target application in layers and dynamically loading the programs corresponding to each function using the plug-in principle, the size of the user installation package can be reduced while achieving the multi-opening effect.

[0101] Figure 6 This is a schematic diagram of a process of generating a method for installing a program provided by an embodiment of the present invention. Figure 6 As shown, the method includes:

[0102] Step 601: Obtain a basic program of a first application, where both the first application and the second application correspond to a target application. The first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application.

[0103] Target applications are applications that require multiple accounts to be logged in simultaneously. Target applications can be set based on specific needs. Examples include the JD App and WeChat App.

[0104] Step 602: Generate an installation program for the first application based on the basic program of the first application. The installation program for the first application is used to store the basic program of the first application in a private directory of the first application. The installation program for the first application is also used to enable the installed first application to load the target program in the preset directory during operation.

[0105] Basic programs correspond to basic functions. Basic functions may include: underlying functions and personalized functions. The underlying functions may be the underlying functions required for the application to run, such as image loading, network requests, sharing, positioning, etc. The underlying functions may be located below the target function to support the implementation of the target function. Personalized functions are functions that are different from those of the first application in the second application. Personalized functions need to be implemented in the first application, but not in the second application. Personalized functions can reflect the different needs between the main application and multiple applications.

[0106] An embodiment of the present invention discloses a method for generating an installation program for a second application. A first application and a second application both correspond to the same target application and are used to enable simultaneous logins of multiple accounts for the same target application. Both the first application and the second application can achieve the same target function by installing the target program. By rationally packaging the code involved in the target application in layers and dynamically loading the programs corresponding to each function using the plug-in principle, the size of the user's installation package can be reduced while achieving a multi-opening effect.

[0107] Through the installation program of the first application, the first application can directly load the target program in the preset directory during operation to achieve the target function without having to reinstall the target program. Therefore, the storage space required by the first application after installation can be reduced, which facilitates the management and use of the terminal's storage space.

[0108] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0109] The first and second applications can correspond to the same target application, such as the JD.com app or the WeChat app. Multiple accounts can be logged in simultaneously through the first and second applications. To make the method of the embodiments of the present invention easier to understand, the following describes an example of implementing multiple account logins for the same application using the Java development language on the Android system.

[0110] The solution of the embodiment of the present invention realizes the solution of multiple accounts being online at the same time under the same App through Android plug-in technology. Among them, the multi-application in the embodiment of the present invention corresponds to the first application in the above embodiment; the main application in the embodiment of the present invention corresponds to the second application in the above embodiment; the public directory in the embodiment of the present invention corresponds to the preset directory in the above embodiment; the multi-apk (Android application package) in the embodiment of the present application corresponds to the installation program of the first application in the above embodiment; the main apk in the embodiment of the present invention corresponds to the installation program of the second application in the above embodiment; the business plug-in in the embodiment of the present invention corresponds to the target program in the above embodiment; the public component in the embodiment of the present invention corresponds to the basic program in the above embodiment.

[0111] Figure 7 This is a schematic diagram of a system framework for implementing simultaneous multi-account logins provided by an embodiment of the present invention. Figure 7 As shown, the system framework includes: an application common basic part, a user installation APK production part, and a business plug-in generation part.

[0112] Application Common Infrastructure: This encapsulates the common infrastructure required for APK operation. Every multi-application APK produced contains these common components. Common infrastructure is the underlying program required for application operation, such as image loading, network requests, sharing, and location tracking. It resides below the service plug-ins and can be called by multiple service plug-ins.

[0113] Production users install APK parts: divided into the following two types:

[0114] The main APK, published to major app stores and available for direct download by users, contains all business functionality. At runtime, all business plugins are unpacked into a public directory, from which both the main APK and multiple APKs load them.

[0115] Multi-open APKs are not published to the App Store and are only dynamically downloaded when the user clicks the multi-open button. Multi-open APKs do not include specific business plug-ins (which reduce package size, facilitate user download and installation, and share the same business plug-ins as the main APK). Their desktop icons are the same as the main APK, and the naming convention is 'Multi-open 1-n', for example, JD Multi-open 1, JD Multi-open 2, JD Multi-open 3, etc. Multi-open APKs are identical to the main APK except for the application name and package name (Android requires unique APK package names when installing, and the same application name is used to distinguish multiple accounts).

[0116] Generate business plug-ins: Package the homepage, business details, login and other specific services in the APK into a plug-in. These plug-ins can be run in any of the multiple APKs in step 2. Multiple APKs use plug-in loading to load these services.

[0117] The core of the entire application architecture is divided into three parts. The first part is the common infrastructure required to run the business. This part is the core environment that the entire application relies on and is invisible to the user. The second part is the generation of the APKs that users install. Each APK contains the complete basic components. Each APK installed by the user has a different package name. Each additional APK installed results in an additional application icon and name appearing on the phone interface. The third part contains all the business interfaces that users can see during operation.

[0118] Let's take a vivid example: compare the entire multi-opening application with a water dispenser. Among them, the first part is similar to the various components inside the water dispenser, including water storage, water storage, heating, insulation, and other basic components. The second part is similar to the purchased water dispenser, which is a complete individual. The first part is packaged in outer packaging and presented to the user. The third part is water. This water dispenser can hold drinking water buckets of various brands and sizes. Buying multiple water dispensers is equivalent to installing multiple pre-made multi-opening apps. Users can log in to different accounts by clicking on multiple application icons, meeting the needs of multiple accounts online at the same time on the same app (multiple water dispensers can dispense the same or different water at the same time).

[0119] Figure 8 FIG. 1 is a flow chart of a method for implementing multiple account logins for the same application provided by an embodiment of the present invention. Figure 8 As shown, the method includes:

[0120] Step S01: The user downloads the main APK from the application market and installs it.

[0121] Step S02: Run the main apk, and in addition to the normal process, decompress all business plug-ins into the public directory.

[0122] Step S03: The user clicks the multi-open button to download and install the corresponding multi-open APK. Because the multi-open APK does not include service plug-ins, the package size is relatively small. The multi-open button can be set in different locations according to actual needs, such as the login interface, the main interface, etc.

[0123] Step S04: The user clicks the multi-apk icon, and the multi-apk initializes various environments required for runtime, and then loads the homepage through plug-in technology.

[0124] Step S05: The user clicks on login, and the login module is loaded through the plug-in technology to complete the login operation. At this point, the purpose of running multiple accounts of the same App online at the same time can be achieved.

[0125] Figure 9 FIG. 1 is a schematic diagram of the structure of an application running device provided by an embodiment of the present invention. Figure 9 As shown, the device includes:

[0126] An instruction receiving module 901 is configured for a first application to receive a first execution instruction for a target function;

[0127] a program acquisition module 902 configured to, in response to the first execution instruction, cause the first application to acquire, from a preset directory, a target program corresponding to the target function, the target program being installed by an installer of a second application, the first application and the second application both corresponding to the target application, the first application being used to log in to a first account of the target application, and the second application being used to log in to a second account of the target application;

[0128] The program running module 903 is used for the first application to run the target program to achieve the target function.

[0129] Optionally, the second application responds to the second execution instruction for the target function received by the second application by running the target program in the preset directory.

[0130] Figure 10 FIG. 1 is a schematic diagram of the structure of an application installation device provided by an embodiment of the present invention. Figure 10 As shown, the device includes:

[0131] The instruction receiving module 1001 is configured to receive a first installation instruction for a second application;

[0132] The program execution module 1002 is used to respond to the first installation instruction and execute the installation program of the second application to store the target program in a preset directory, where the target program is used to implement the target function.

[0133] Optionally, the installation program of the second application is further used to store the basic program of the second application in a private directory of the second application.

[0134] Optionally, the instruction receiving module 1001 is further configured to receive a second installation instruction for the first application, where both the first application and the second application correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0135] The program execution module 1002 is further configured to respond to the second installation instruction and execute the installation program of the first application, so that the installed first application loads the target program in the preset directory during operation to achieve the target function.

[0136] Optionally, the installation program of the first application is further used to store the basic program of the first application in a private directory of the first application.

[0137] Figure 11 FIG. 1 is a schematic diagram of a device for generating an installation program provided by an embodiment of the present invention. Figure 11 As shown, the device includes:

[0138] A program acquisition module 1101 is configured to acquire a basic program and a target program of a second application, wherein the target program is configured to implement a target function;

[0139] The program generation module 1102 is used to generate an installation program for the second application based on the basic program and target program of the second application. The installation program for the second application is used to store the basic program of the second application in a private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

[0140] Optionally, the program acquisition module 1101 is further configured to acquire a basic program of a first application, where both the first application and the second application correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0141] The program generation module 1102 is also used to generate an installation program for the first application based on the basic program of the first application. The installation program for the first application is used to store the basic program of the first application in a private directory of the first application. The installation program for the first application is also used to enable the installed first application to load the target program in the preset directory during operation.

[0142] An embodiment of the present invention provides an electronic device, including:

[0143] one or more processors;

[0144] a storage device for storing one or more programs,

[0145] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.

[0146] Reference below Figure 12, which shows a schematic structural diagram of a computer system 1200 of a terminal device suitable for implementing an embodiment of the present invention. Figure 12 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0147] like Figure 12 As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage unit 1208 into a random access memory (RAM) 1203. Various programs and data required for the operation of the system 1200 are also stored in the RAM 1203. The CPU 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0148] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1208 including a hard disk; and a communication section 1209 including a network interface card such as a LAN card or a modem. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. Removable media 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1210 as needed, so that computer programs read therefrom can be installed into the storage section 1208 as needed.

[0149] In particular, according to the embodiments disclosed herein, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by the central processing unit (CPU) 1201, the above-mentioned functions defined in the system of the present invention are performed.

[0150] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0151] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0152] The modules described in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as: an instruction receiving module, a program acquisition module, and a program execution module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the instruction receiving module may also be described as a "module for a first application to receive a first execution instruction for a target function."

[0153] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiments, or may exist independently without being incorporated into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device includes:

[0154] The first application receives a first execution instruction for a target function;

[0155] In response to the first execution instruction, the first application obtains a target program corresponding to the target function from a preset directory; wherein the target program is stored in the preset directory by an installer of a second application, the first application and the second application both correspond to target applications, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application;

[0156] The first application runs the target program to implement the target function.

[0157] According to the technical solution of the embodiment of the present invention, the first application and the second application both correspond to the same target application. Logging in different accounts for the same target application through the first application and the second application can effectively solve the problem of logging in to multiple accounts for the same application.

[0158] Furthermore, the first application can call a target program installed by the second application's installer. This means the first and second applications can share the target program to achieve their intended functionality. Compared to installing the target program in their own directories, this reduces the storage space required by the applications and facilitates the management and use of terminal storage space.

[0159] In addition, both the first and second applications can implement the target function by calling the target program. When the target function needs to be upgraded, the target program in the preset directory can be upgraded directly without upgrading the first and second applications separately, simplifying the application upgrade process.

[0160] In addition, since the installer of the first application does not need to install the target program, the size of the installer of the first application will be reduced, which facilitates the transmission and execution of the installer, and can shorten the application installation time, reducing the user's installation waiting time.

[0161] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for running an application, characterized in that: include: The first application receives a first execution instruction for a target function; In response to the first execution instruction, the first application obtains a target program corresponding to the target function from a preset directory; wherein the target program is stored in the preset directory by an installer of a second application, the first application and the second application both correspond to target applications, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application; The first application runs the target program to implement the target function.

2. The method according to claim 1, characterized in that The second application responds to the second execution instruction for the target function received by the second application by running the target program in the preset directory.

3. An application installation method, characterized in that: include: receiving a first installation instruction for a second application; In response to the first installation instruction, executing the installation program of the second application to store a target program in a preset directory, wherein the target program is used to implement a target function; Receive a second installation instruction for a first application; wherein the first application and the second application both correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application; In response to the second installation instruction, the installation program of the first application is executed, so that the installed first application loads the target program in the preset directory during operation to achieve the target function.

4. The method according to claim 3, characterized in that The installation program of the second application is further used to store the basic program of the second application in the private directory of the second application, and the basic program of the second application is used to support the execution of the target program.

5. The method according to claim 3, characterized in that The installer of the first application is further used to store the basic program of the first application in the private directory of the first application, and the basic program of the first application is used to support the execution of the target program.

6. A method for generating an installation program, characterized in that: include: Obtaining a basic program and a target program of a second application, wherein the target program is used to implement a target function; Based on the basic program and target program of the second application, an installation program for the second application is generated. The installation program for the second application is used to store the basic program of the second application in a private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

7. The method according to claim 6, characterized in that Also includes: Obtaining a basic program of a first application; wherein the first application and the second application both correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application; Based on the basic program of the first application, an installation program of the first application is generated. The installation program of the first application is used to store the basic program of the first application in a private directory of the first application. The installation program of the first application is also used to enable the installed first application to load the target program in the preset directory during operation.

8. An application running device, characterized in that: include: An instruction receiving module, configured for a first application to receive a first execution instruction for a target function; a program acquisition module, configured to respond to the first execution instruction, causing the first application to acquire a target program corresponding to the target function from a preset directory; wherein the target program is installed by an installer of a second application, the first application and the second application both correspond to the target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application; A program running module is used for the first application to run the target program to achieve the target function.

9. An application installation device, characterized in that: include: An instruction receiving module, configured to receive a first installation instruction for a second application; a program execution module, configured to execute an installation program of the second application in response to the first installation instruction, so as to store a target program in a preset directory, wherein the target program is used to implement a target function; The instruction receiving module is further configured to: receive a second installation instruction for a first application; wherein the first application and the second application both correspond to a target application, the first application is used to log in to a first account of the target application, and the second application is used to log in to a second account of the target application; The program execution module is further configured to respond to the second installation instruction and execute the installation program of the first application, so that the installed first application loads the target program in the preset directory during operation to achieve the target function.

10. A method for generating an installation program, characterized in that: include: A program acquisition module, configured to acquire a basic program and a target program of the second application, wherein the target program is configured to implement a target function; A program generation module is used to generate an installation program for the second application based on the basic program and target program of the second application. The installation program for the second application is used to store the basic program of the second application in a private directory of the second application. The installation program for the second application is also used to store the target program of the second application in a preset directory.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

12. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Program updating method as well as client and system for program updating

    CN105320554A

  • Application package generation method and device, electronic equipment and readable storage medium

    CN113138768A