Mini-program access method, device, electronic device and computer-readable storage medium

By creating a floating ball and floating display applet when the application is started, users do not need to actively look up the entrance and click to access the applet, which solves the problem of inconvenient access in the existing technology and improves the user experience.

CN113254111BActive Publication Date: 2025-07-08GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Access to existing applets is not easy and fast enough, and users need to actively look up the entrance or remember the name, which leads to a cumbersome access process.

Method used

When the application starts, read the access information of the last run applet, create a floating ball and add it to the application homepage, and float display and access the applet by clicking the floating ball, which supports preloading and folding display of multiple floating balls.

Benefits of technology

Reduces user operations, realizes simple and fast access to mini programs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113254111B_ABST
    Figure CN113254111B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of information processing, and discloses a method, device, electronic device and computer-readable storage medium for accessing mini-programs. The method for accessing mini-programs includes: when starting an application program and entering the application home page, reading the mini-program access information recorded during the previous run of the application program; creating a mini-program floating ball corresponding to the mini-program access information; adding the mini-program floating ball to the window where the application home page is located; when displaying the application home page, floatingly displaying the mini-program floating ball; when detecting a click operation on the mini-program floating ball, accessing the mini-program corresponding to the mini-program floating ball. The present invention realizes the quick access to mini-programs in the application program and improves the convenience of accessing mini-programs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information processing, and in particular, to a method, device, electronic device and computer-readable storage medium for accessing applets. Background Art

[0002] An applet is an application that can be used without being downloaded and installed. It is usually an independent program that runs in a container of an application program (APP) installed on a smart device. It can be conveniently obtained and spread, providing a better user experience for end users.

[0003] With the rapid growth of applets, there are more and more scenarios where services are provided through applets on APPs. When a user accesses an applet, they usually need to first find the entry of the corresponding applet, such as by scanning the applet QR code or searching for the applet name, and then access the applet. This access method requires the user to find the applet QR code or remember the applet name. For some application scenarios, users hope to access applets more conveniently and quickly, but there are still some deficiencies in the current applet access in terms of convenience. Summary of the Invention

[0004] The main purpose of the present invention is to solve the technical problem that the existing applet access is not simple and fast enough.

[0005] The first aspect of the present invention provides a method for accessing an applet, and the method for accessing an applet includes:

[0006] When starting the application program and entering the application home page, read the applet access information recorded when the application program was last run;

[0007] Create an applet floating ball corresponding to the applet access information;

[0008] Add the applet floating ball to the window where the application home page is located;

[0009] When displaying the application home page, floatingly display the applet floating ball;

[0010] When detecting a click operation on the applet floating ball, access the applet corresponding to the applet floating ball.

[0011] Optionally, in the first implementation manner of the first aspect of the present invention, after the step of when detecting a click operation on the applet floating ball and accessing the applet corresponding to the applet floating ball, the method further includes:

[0012] When the application program is running, record the relevant information of the currently accessed applet, and use the relevant information as the applet access information, where the relevant information includes: applet identifier and applet sub-page path;

[0013] When there is a newly accessed mini-program sub-page, record the path of the newly accessed mini-program sub-page and overwrite the path of the mini-program sub-page accessed last time on the same mini-program.

[0014] Optionally, in the second implementation manner of the first aspect of the present invention, adding the mini-program floating ball to the window where the application home page is located includes:

[0015] Obtain the view storage path of the mini-program floating ball;

[0016] Load the view of the mini-program floating ball according to the view storage path of the mini-program floating ball;

[0017] Call the window management class of the application home page to create a floating window and add the view of the mini-program floating ball to the floating window.

[0018] Optionally, in the third implementation manner of the first aspect of the present invention, floatingly displaying the mini-program floating ball when the application home page is displayed includes:

[0019] When the application home page is displayed, if there are multiple mini-program floating balls, fold and display the multiple mini-program floating balls on the application home page;

[0020] When a click operation on the folded mini-program floating ball is detected, expand and display all the folded mini-program floating balls on the application home page.

[0021] Optionally, in the fourth implementation manner of the first aspect of the present invention, accessing the mini-program corresponding to the mini-program floating ball when a click operation on the mini-program floating ball is detected includes:

[0022] When a click operation on the mini-program floating ball is detected, obtain the path of the mini-program sub-page associated with the mini-program floating ball;

[0023] Access the path of the mini-program sub-page and jump from the application home page to the page corresponding to the path of the mini-program sub-page.

[0024] Optionally, in the fifth implementation manner of the first aspect of the present invention, before floatingly displaying the mini-program floating ball when the application home page is displayed, it further includes:

[0025] When the application program is started and enters the application home page, obtain the mini-program identification information accessed during the last run of the application program;

[0026] According to the mini-program identification information, pre-start the corresponding mini-program to be floatingly displayed in the background.

[0027] Optionally, in the sixth implementation manner of the first aspect of the present invention, the floating display of the applet floating ball when displaying the app home page includes:

[0028] When displaying the app home page, obtain the display parameters of the applet floating ball, where the display parameters include one or more of: display position, display style, and display transparency;

[0029] According to the display parameters, floatingly display the applet floating ball on the app home page.

[0030] The second aspect of the present invention provides an applet access device, and the applet access device includes:

[0031] A reading module, configured to read the applet access information recorded when the application was last run when starting the application and entering the app home page;

[0032] A creation module, configured to create an applet floating ball corresponding to the applet access information;

[0033] An adding module, configured to add the applet floating ball to the window where the app home page is located;

[0034] A display module, configured to floatingly display the applet floating ball when displaying the app home page;

[0035] An access module, configured to access the applet corresponding to the applet floating ball when detecting a click operation on the applet floating ball.

[0036] Optionally, in the first implementation manner of the second aspect of the present invention, the applet access device further includes:

[0037] A recording module, configured to record the relevant information of the currently accessed applet during the running of the application, and use the relevant information as the applet access information, where the relevant information includes: applet identifier and applet sub-page path;

[0038] An update module, configured to record the path of the newly accessed applet sub-page and overwrite the path of the applet sub-page accessed last time for the same applet when there is a newly accessed applet sub-page.

[0039] Optionally, in the second implementation manner of the second aspect of the present invention, the adding module is specifically configured to:

[0040] Obtain the view storage path of the applet floating ball; load the view of the applet floating ball according to the view storage path of the applet floating ball; call the window management class of the app home page to create a floating window, and add the view of the applet floating ball to the floating window.

[0041] Optionally, in the third implementation manner of the second aspect of the present invention, the display module is specifically configured to:

[0042] When there are multiple applet floating balls, fold and display the multiple applet floating balls on the home page of the application; when a click operation on the folded applet floating ball is detected, expand and display all the folded applet floating balls on the home page of the application.

[0043] Optionally, in the fourth implementation manner of the second aspect of the present invention, the access module is specifically configured to:

[0044] When a click operation on the applet floating ball is detected, obtain the applet sub-page path associated with the applet floating ball; access the applet sub-page path, and jump from the home page of the application to the page corresponding to the applet sub-page path.

[0045] Optionally, in the fifth implementation manner of the second aspect of the present invention, the applet access device further includes:

[0046] A preloading module, configured to obtain the applet identification information accessed during the previous run of the application program when the application program is started and enters the home page of the application; according to the applet identification information, pre-start the corresponding applet to be floatingly displayed in the background.

[0047] Optionally, in the fifth implementation manner of the second aspect of the present invention, the display module is specifically further configured to:

[0048] When displaying the home page of the application, obtain the display parameters of the applet floating ball, where the display parameters include one or more of: display position, display style, and display transparency; according to the display parameters, floatingly display the applet floating ball on the home page of the application.

[0049] The third aspect of the present invention provides an electronic device, where the electronic device includes: a memory and at least one processor, and instructions are stored in the memory;

[0050] The at least one processor invokes the instructions in the memory to enable the electronic device to execute the applet access method as described in any one of the above.

[0051] The fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the applet access method as described in any one of the above is implemented.

[0052] In the technical solution provided by the present invention, the user does not need to actively search for the access entrance of the mini-program. Just start the application program, and the system will automatically read the mini-program access information recorded when the application program was last run. Then, create a mini-program floating ball corresponding to the mini-program access information, and finally add the mini-program floating ball to the window where the application home page is located. When the application program displays the application home page, the system automatically suspends and displays the mini-program floating ball. Since the mini-program floating ball is pre-associated with the mini-program that the user accessed last time when the application program is started, the user can quickly access the mini-program by simply clicking on the floating ball corresponding to the mini-program to be accessed. The present invention reduces the user's operation, realizes the simple and fast access of the mini-program in the application program, and improves the user experience of accessing the mini-program. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 Schematic diagram of the first embodiment of the mini-program access method in an embodiment of the present invention;

[0054] Figure 2 Schematic diagram of the first embodiment of displaying the mini-program floating ball on the application home page in an embodiment of the present invention;

[0055] Figure 3 Schematic diagram of the second embodiment of the mini-program access method in an embodiment of the present invention;

[0056] Figure 4 Schematic diagram of the second embodiment of displaying the mini-program floating ball on the application home page in an embodiment of the present invention;

[0057] Figure 5 Schematic diagram of the first embodiment of the mini-program access device in an embodiment of the present invention;

[0058] Figure 6 Schematic diagram of the second embodiment of the mini-program access device in an embodiment of the present invention;

[0059] Figure 7 Schematic diagram of an embodiment of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0060] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for accessing mini-programs. The embodiments of the present invention adopt the floating ball method to access mini-programs, thereby reducing user operations, realizing the simple and fast access of mini-programs in application programs, and improving the user experience of accessing mini-programs. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the term "comprising" or "having" and any variation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0061] For the sake of easy understanding, the specific process of the embodiments of the present invention will be described below. Please refer to Figure 1 The first embodiment of the mini-program method in the embodiments of the present invention includes:

[0062] 101. When the application program is started and the application home page is entered, read the mini-program access information recorded when the application program was last run;

[0063] In this embodiment, the mini-program needs to use the application program (APP) installed on the smart device as the running container to achieve independent operation, that is, the operation of the mini-program is based on the application program. Therefore, before accessing the mini-program, the application program needs to be started first.

[0064] In this embodiment, when the application program is started and the application home page is entered, it is necessary to first read the mini-program access information recorded when the application program was last run. This mini-program access information is used to create a mini-program floating ball to facilitate users to access the mini-program.

[0065] There are no restrictions on the mini-program access information in this embodiment, including but not limited to: mini-program icon, mini-program ID, mini-program name, mini-program sub-page path, mini-program access time, mini-program exit time.

[0066] In one embodiment, when the number of mini-programs accessed by the user when the application program was last run exceeds the preset number, such as 5, preferably read the preset number of mini-program access information from all the recorded mini-program access information, and specifically, it can be filtered according to the mini-program access duration or mini-program access time.

[0067] 102. Create a mini-program floating ball corresponding to the mini-program access information;

[0068] In this embodiment, the mini-program floating ball belongs to a floating control, and is specifically used to display the mini-program that the user accessed last time. By clicking on the mini-program floating ball, the corresponding mini-program can be quickly accessed.

[0069] In this embodiment, the terminal operating system comes with a floating control management class, which can be used to create a mini-program floating ball. In one embodiment, the creation process of the mini-program floating ball is as follows:

[0070] (1) Pass the mini-program access information as floating control parameters into the floating control management class;

[0071] (2) The floating control management class performs floating control parameter assignment processing, so as to assign the mini-program access information to the corresponding floating control parameters. The floating control parameters include the control name, the control link address, and the control display content;

[0072] (3) The floating control management class creates mini-program floating balls corresponding to each group of mini-program access information respectively, where one group of mini-program access information corresponds to one mini-program floating ball.

[0073] 103. Add the mini-program floating ball to the window where the application home page is located;

[0074] In this embodiment, after creating the mini-program floating ball, in order to facilitate synchronous display with the application home page, it is also necessary to further add the mini-program floating ball to the window where the application home page is located, so as to perform window binding, that is, to realize that the mini-program floating ball is attached to the application home page for display.

[0075] In one embodiment, step 103 specifically includes:

[0076] (1) Obtain the view storage path of the mini-program floating ball;

[0077] (2) Load the view of the mini-program floating ball according to the view storage path of the mini-program floating ball;

[0078] (3) Call the window management class of the application home page to create a floating window, and add the view of the mini-program floating ball to the floating window.

[0079] In this embodiment, in order to facilitate the creation of the mini-program floating ball, it is necessary to pre-store the view of the mini-program floating ball, and then bind the view of the mini-program floating ball to the application home page window to be displayed on the application home page. This embodiment preferably uses a context object to implement the loading of the mini-program floating ball view.

[0080] The Context object belongs to an abstract class in the Android system framework package. In the Android system, many methods need to identify the caller's instance through the Context object, which provides an interface for global information about the application environment. It is an abstract class, and its execution is provided by the Android system. It allows obtaining application-specific resources and types, and at the same time starting application-level operations, such as starting Activities, broadcasting, and receiving intents.

[0081] In this embodiment, to add a window at the application level, first obtain the Context object of the application's home page and the view storage path of the mini-program floating ball to be added, and then call the view loading method of the Context object to load the view of the mini-program floating ball from the view storage path of the mini-program floating ball; finally, call the window management class of the application's home page to create a floating window, and add the loaded view of the mini-program floating ball to the floating window, so as to achieve window binding. When the application's home page is displayed, the mini-program floating ball can be automatically attached to the application's home page for display.

[0082] This embodiment uses the application-level window to add a mini-program floating ball, which solves the problem that the display of the mini-program floating ball requires authorization. The mini-program floating ball is attached to the application's home page and will no longer be displayed if it leaves the home page. By adding a mini-program floating ball to the application's home page, the authorization operation can be bypassed, and the mini-program floating ball can be directly displayed without authorization, thereby improving the user experience of conveniently accessing the mini-program.

[0083] 104. When the application's home page is displayed, the mini-program floating ball is floatingly displayed;

[0084] In this embodiment, when the application program is started and enters the application's home page, the mini-program floating ball corresponding to the mini-program that the user recently accessed is pre-created and application-level window binding is performed with the application's home page. Therefore, when the instantiation process of the application's home page is completed and the application's home page is displayed, based on the window binding relationship between the mini-program floating ball and the application's home page, the mini-program floating ball is automatically floatingly displayed on the application's home page, as Figure 2 shown. The display method of the mini-program floating ball in this embodiment is not limited.

[0085] In one embodiment, step 104 specifically includes:

[0086] (1) When the application's home page is displayed, obtain the display parameters of the mini-program floating ball, where the display parameters include one or more of: display position, display style, and display transparency;

[0087] (2) According to the display parameters, floatingly display the mini-program floating ball on the application's home page.

[0088] In this embodiment, when the application home page is displayed, the display parameters of the applet floating ball are further obtained, specifically including one or more of the following parameters:

[0089] 1. The display position of the applet floating ball, such as floating and displaying at the top, left, right, or bottom of the application home page, etc.

[0090] 2. The display style of the applet floating ball, such as the display style composed of the size, shape, color, and their combinations of the floating ball.

[0091] 3. The display transparency of the applet floating ball, such as displaying with a transparency of 70%.

[0092] In this embodiment, the display parameters can be pre-configured, so as to improve the diversification of the display effect of the applet floating ball, thereby enhancing the user experience.

[0093] 105. When a click operation on the applet floating ball is detected, access the applet corresponding to the applet floating ball.

[0094] In this embodiment, since the applet floating ball floats on the application home page and is associated with the applet that the user accessed last time, therefore, the user can quickly access the applet by simply clicking on the applet floating ball. The user does not need to search for the applet access entrance, nor does the user need to remember the applet name, thereby enhancing the simplicity of applet access.

[0095] In this embodiment, the user does not need to actively search for the applet access entrance. Just start the application, and the system will automatically read the applet access information recorded when the application was last run, then create an applet floating ball corresponding to the applet access information, and finally add the applet floating ball to the window where the application home page is located. When the application displays the application home page, the system automatically floats and displays the applet floating ball. Since the applet floating ball is pre-associated with the applet that the user accessed last time when the application starts, the user can quickly access the applet by simply clicking on the floating ball corresponding to the applet to be accessed. This embodiment reduces the user operation, realizes the simple and fast access of the applet in the application, and improves the user experience of applet access.

[0096] Please refer to Figure 3 , the second embodiment of the applet access method in the embodiment of the present invention includes:

[0097] 201. During the operation of the application, record the relevant information of the currently accessed applet, and use the relevant information as the applet access information, where the relevant information includes: applet identifier and applet sub-page path;

[0098] 202. When there is a newly accessed mini-program sub-page, record the path of the newly accessed mini-program sub-page and overwrite the path of the mini-program sub-page accessed last time on the same mini-program.

[0099] In this embodiment, each time the application runs, relevant information of the mini-program accessed by the current user is automatically recorded, such as the mini-program identifier, such as the mini-program ID, mini-program icon, etc. At the same time, the path of the sub-page of the mini-program accessed by the current user is further recorded, and the recorded relevant information of the mini-program is saved as mini-program access information in a pre-set storage file. The storage file preferably adopts the XML file format for quick reading.

[0100] In this embodiment, when recording the path of the newly accessed mini-program sub-page, if other mini-program sub-page paths of the same mini-program have been saved in the storage file, use the path of the newly accessed mini-program sub-page to overwrite it, that is, in the storage file, one mini-program corresponds to only the most recently accessed mini-program sub-page path.

[0101] In addition, it should be further supplemented and explained that based on the user's startup and shutdown operations, accordingly, the application will have multiple startups and shutdowns. Therefore, the above steps 201-202 can be executed either before step 203 or after step 209.

[0102] 203. When the application is started and enters the application home page, read the mini-program access information recorded when the application was last run.

[0103] Optionally, in an embodiment, to further improve the mini-program access speed, when the application is started and enters the application home page, obtain the mini-program identifier information accessed when the application was last run; according to the mini-program identifier information, pre-start the corresponding mini-program to be suspended and displayed in the background. The mini-program identifier information is preferably the mini-program ID or mini-program name.

[0104] In this embodiment, since the mini-program to be suspended and displayed is pre-started before the mini-program suspension ball is displayed, the time required to wait for the mini-program to start when accessing the mini-program is reduced, thereby improving the response speed of the mini-program and enhancing the user experience.

[0105] 204. Create a mini-program suspension ball corresponding to the mini-program access information.

[0106] 205. Add the mini-program suspension ball to the window where the application home page is located.

[0107] 206. When the application home page is displayed, if there are multiple mini-program suspension balls, fold and display the multiple mini-program suspension balls on the application home page.

[0108] 207. When a click operation on the floating ball of the folded mini-program is detected, all the folded floating balls of the mini-programs are expanded and displayed on the home page of the application.

[0109] In this embodiment, one floating ball of a mini-program corresponds to one mini-program. If the user accessed multiple mini-programs during the previous run of the application, multiple floating balls of the mini-programs need to be created. Therefore, to make the display of the floating balls of the mini-programs more concise and beautiful, when multiple floating balls of the mini-programs are created, the floating balls of the mini-programs are folded and displayed on the home page of the application, that is, all the floating balls of the mini-programs are superimposed and displayed. For the user, although it seems that only one floating ball of a mini-program is displayed, in fact, multiple floating balls of the mini-programs are displayed.

[0110] In addition, for the convenience of the user's operation, when the user clicks on the floating ball of the folded mini-program, all the folded floating balls of the mini-programs are automatically expanded and displayed on the home page of the application.

[0111] As Figure 4 shown, for example, if the user accessed mini-program A, mini-program B, and mini-program C during the previous run of the application, then when the user starts the application again, the floating balls of the mini-programs corresponding to mini-program A, B, and C are folded and displayed on the home page of the application. For example, after the floating balls of each mini-program are folded, the floating ball of the mini-program corresponding to mini-program A is displayed on the top layer, and the floating balls of the mini-programs corresponding to mini-program B and C are not displayed. When the user clicks on the floating ball of the mini-program corresponding to mini-program A that is displayed after folding, the floating balls of the mini-programs corresponding to mini-program A, B, and C are automatically expanded and displayed on the home page of the application.

[0112] 208. When a click operation on the floating ball of the mini-program is detected, obtain the path of the sub-page of the mini-program associated with the floating ball of the mini-program.

[0113] 209. Access the path of the sub-page of the mini-program and jump from the home page of the application to the page corresponding to the path of the sub-page of the mini-program.

[0114] In this embodiment, when it is detected that the user clicks on the floating ball of the mini-program, the path of the sub-page of the mini-program associated with the clicked floating ball of the mini-program is obtained. This sub-page of the mini-program is the page that the user accessed last time. Therefore, by accessing this path of the sub-page of the mini-program, it is possible to jump from the home page of the application to the sub-page of the mini-program that the user accessed last time, thereby realizing quick access to the mini-program that the user accessed last time.

[0115] In this embodiment, by actively recording the relevant information of the mini-program that the user last accessed, when the user re-opens the application next time, the system actively creates a mini-program floating ball corresponding to the mini-program that the user last accessed and displays it in a folded manner on the application home page. The user can quickly see the mini-program floating ball corresponding to the mini-program that was last accessed on the application home page. By clicking on the mini-program floating ball, the user can automatically jump to the sub-page of the mini-program that was last opened according to the page path associated with the mini-program floating ball, thus realizing convenient and fast access to the mini-program and improving the user experience.

[0116] The method for accessing a mini-program in the embodiment of the present invention has been described above. Next, the device for accessing a mini-program in the embodiment of the present invention will be described. Please refer to Figure 5 , the first embodiment of the device for accessing a mini-program in the embodiment of the present invention includes:

[0117] A reading module 301, configured to read the mini-program access information recorded when the application was last run when the application is started and enters the application home page;

[0118] A creating module 302, configured to create a mini-program floating ball corresponding to the mini-program access information;

[0119] An adding module 303, configured to add the mini-program floating ball to the window where the application home page is located;

[0120] A displaying module 304, configured to floatingly display the mini-program floating ball when the application home page is displayed;

[0121] An accessing module 305, configured to access the mini-program corresponding to the mini-program floating ball when a click operation on the mini-program floating ball is detected.

[0122] Optionally, in one embodiment, the adding module 303 is specifically configured to:

[0123] Obtain the view storage path of the mini-program floating ball; load the view of the mini-program floating ball according to the view storage path of the mini-program floating ball; call the window management class of the application home page to create a floating window, and add the view of the mini-program floating ball to the floating window.

[0124] Optionally, in one embodiment, the displaying module 304 is further specifically configured to:

[0125] When the application home page is displayed, obtain the display parameters of the mini-program floating ball, where the display parameters include one or more of: display position, display style, and display transparency; floatingly display the mini-program floating ball on the application home page according to the display parameters.

[0126] In this embodiment, the user does not need to actively search for the access entrance of the applet. Just start the application, and the system will automatically read the applet access information recorded when the application was last run. Then, create an applet floating ball corresponding to the applet access information, and finally add the applet floating ball to the window where the application home page is located. When the application displays the application home page, the system automatically suspends and displays the applet floating ball. Since the applet floating ball is pre-associated with the applet that the user last accessed when the application is started, the user can quickly access the applet by simply clicking on the floating ball corresponding to the applet to be accessed. This embodiment reduces the user's operations, realizes the simple and fast access to the applets in the application, and improves the user experience of accessing the applets.

[0127] Please refer to Figure 6 , the second embodiment of the applet access device in the embodiment of the present invention includes:

[0128] A reading module 301, configured to read the applet access information recorded when the application was last run when the application is started and enters the application home page;

[0129] A creating module 302, configured to create an applet floating ball corresponding to the applet access information;

[0130] An adding module 303, configured to add the applet floating ball to the window where the application home page is located;

[0131] A displaying module 304, configured to suspend and display the applet floating ball when the application home page is displayed;

[0132] An accessing module 305, configured to access the applet corresponding to the applet floating ball when a click operation on the applet floating ball is detected;

[0133] A recording module 306, configured to record the relevant information of the currently accessed applet when the application is running, and use the relevant information as the applet access information, where the relevant information includes: applet identifier and applet sub-page path;

[0134] An updating module 307, configured to record the path of the newly accessed applet sub-page and overwrite the path of the applet sub-page accessed last time for the same applet when there is a newly accessed applet sub-page;

[0135] A preloading module 308, configured to obtain the applet identifier information accessed when the application was last run when the application is started and enters the application home page; and pre-start the corresponding applet to be suspended and displayed in the background according to the applet identifier information.

[0136] Optionally, in an embodiment, the displaying module 304 is specifically configured to:

[0137] When there are multiple mini-program floating balls, the multiple mini-program floating balls are folded and displayed on the home page of the application; when a click operation on the folded mini-program floating ball is detected, all the folded mini-program floating balls are expanded and displayed on the home page of the application.

[0138] Optionally, in one embodiment, the access module 305 is specifically configured to:

[0139] When a click operation on the mini-program floating ball is detected, obtain the mini-program sub-page path associated with the mini-program floating ball; access the mini-program sub-page path, and jump from the home page of the application to the page corresponding to the mini-program sub-page path.

[0140] In this embodiment, since the mini-program to be floating-displayed is pre-started before the mini-program floating ball is displayed, the time required to wait for the mini-program to start when accessing the mini-program is reduced, thereby improving the response speed of the mini-program and enhancing the user experience.

[0141] In addition, in this embodiment, by actively recording the relevant information of the mini-program that the user accessed last time, when the user re-opens the application program next time, the system actively creates the mini-program floating ball corresponding to the mini-program that the user accessed last time and displays it in a folded manner on the home page of the application. The user can quickly see the mini-program floating ball corresponding to the mini-program that the user accessed last time on the home page of the application. By clicking on the mini-program floating ball, the user can automatically jump to the mini-program sub-page opened last time according to the page path associated with the mini-program floating ball, thereby realizing convenient and fast access to the mini-program and enhancing the user experience.

[0142] Above Figure 5 And Figure 6 The mini-program access device in the embodiment of the present invention has been described in detail from the perspective of modular functional entities. Next, the electronic device in the embodiment of the present invention will be described in detail from the perspective of hardware processing.

[0143] Figure 7It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device 500 may vary greatly due to different configurations or performances, and may include one or more processors (central processing units, CPUs) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage media 530 may be transient storage or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the electronic device 500. Further, the processor 510 may be configured to communicate with the storage media 530 and execute a series of instruction operations in the storage media 530 on the electronic device 500.

[0144] The electronic device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Android, Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that Figure 7 the shown structure of the electronic device does not constitute a limitation on the electronic device, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0145] The present invention also provides an electronic device, which includes a memory and a processor. When the computer-readable instructions stored in the memory are executed by the processor, the processor executes the steps of the small program access method in the above embodiments.

[0146] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a computer, the computer executes the steps of the small program access method.

[0147] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.

[0148] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0149] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for accessing a small program, characterized in that, including: When starting the application and entering the application home page, read the mini-program access information recorded during the previous run of the application. The mini-program access information includes: mini-program identifier and mini-program sub-page path; Create a mini-program floating ball corresponding to the mini-program access information; Add the mini-program floating ball to the window where the application home page is located; When displaying the application home page, floatingly display the mini-program floating ball; When detecting a click operation on the mini-program floating ball, obtain the mini-program sub-page path associated with the mini-program floating ball; access the mini-program sub-page path, and jump from the application home page to the page corresponding to the mini-program sub-page path; During the operation of the application, record the relevant information of the currently accessed mini-program, and use the relevant information as the mini-program access information. Among them, the relevant information includes: mini-program identifier and mini-program sub-page path; when there is a newly accessed mini-program sub-page, record the newly accessed mini-program sub-page path and overwrite the mini-program sub-page path accessed last time for the same mini-program.

2. The small program access method according to claim 1, wherein The adding the mini-program floating ball to the window where the application home page is located includes: Obtain the view storage path of the mini-program floating ball; Load the view of the mini-program floating ball according to the view storage path of the mini-program floating ball; Call the window management class of the application home page to create a floating window, and add the view of the mini-program floating ball to the floating window.

3. The small program access method according to claim 1, wherein, The floatingly displaying the mini-program floating ball when displaying the application home page includes: When displaying the application home page, if there are multiple mini-program floating balls, fold and display the multiple mini-program floating balls on the application home page; When detecting a click operation on the folded mini-program floating ball, expand and display all the folded mini-program floating balls on the application home page.

4. The small program access method according to claim 1, wherein Before the floatingly displaying the mini-program floating ball when displaying the application home page, it further includes: When starting the application and entering the application home page, obtain the mini-program identifier information accessed during the previous run of the application; According to the mini-program identifier information, pre-start the corresponding mini-program to be floatingly displayed in the background.

5. The mini-program access method according to any one of claims 1-4, characterized in that The floatingly displaying the mini-program floating ball when displaying the application home page includes: When displaying the application home page, obtain the display parameters of the mini-program floating ball. Among them, the display parameters include one or more of: display position, display style, display transparency; According to the display parameters, floatingly display the mini-program floating ball on the application home page.

6. A mini-program access device, characterized in that, The mini-program access device includes: A reading module, configured to, when starting the application and entering the application home page, read the mini-program access information recorded during the previous run of the application. The mini-program access information includes: mini-program identifier and mini-program sub-page path; A creating module, configured to create a mini-program floating ball corresponding to the mini-program access information; An adding module, configured to add the mini-program floating ball to the window where the application home page is located; A displaying module, configured to, when displaying the application home page, floatingly display the mini-program floating ball; An access module, configured to obtain the path of the sub-page of the mini-program associated with the mini-program floating ball when a click operation on the mini-program floating ball is detected; access the path of the sub-page of the mini-program, and jump from the home page of the application to the page corresponding to the path of the sub-page of the mini-program; A recording module, configured to record relevant information of the currently accessed mini-program during the running of the application program, and use the relevant information as mini-program access information, where the relevant information includes: a mini-program identifier and the path of the sub-page of the mini-program; An update module, configured to record the path of the newly accessed sub-page of the mini-program and overwrite the path of the sub-page of the mini-program accessed last time on the same mini-program when there is a newly accessed sub-page of the mini-program.

7. An electronic device, characterized in that, The electronic device includes: a memory and at least one processor, and instructions are stored in the memory; The at least one processor invokes the instructions in the memory to cause the electronic device to execute the mini-program access method according to any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by a processor, implements the mini-program access method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Service skipping method and a mobile terminal

    CN109491747A

  • Sub-application program starting method and device, terminal and computer storage medium

    CN111198730A