CN112364266A - Seamless navigation method, device, electronic equipment and medium for applet and host application - Google Patents
Seamless navigation method, device, electronic equipment and medium for applet and host application Download PDFInfo
- Publication number
- CN112364266A CN112364266A CN202011255953.4A CN202011255953A CN112364266A CN 112364266 A CN112364266 A CN 112364266A CN 202011255953 A CN202011255953 A CN 202011255953A CN 112364266 A CN112364266 A CN 112364266A
- Authority
- CN
- China
- Prior art keywords
- applet
- page
- target
- target page
- host application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 230000006870 function Effects 0.000 claims description 57
- 238000004590 computer program Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009191 jumping Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000007123 defense Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/954—Navigation, e.g. using categorised browsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of mobile terminals, and provides a seamless navigation method, a seamless navigation device, electronic equipment and a seamless navigation medium for small program and host application, wherein the seamless navigation method comprises the following steps: when a target page needing to enter a host application is detected, judging whether an applet is currently running in the electronic equipment; when the fact that the electronic equipment currently has the small program running is determined, closing the small program and creating an intermediate page according to the target page; switching from the intermediate page to the target page; when a closing signal of the target page is detected, identifying whether the target page has a preset mark or not; and when the preset mark of the target page is identified, opening the small program in the target page. The invention can realize seamless switching between the small program and the host application, and solves the problem that the navigation of the small program and the host application is incompatible in the switching process.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a seamless navigation method, device, electronic equipment and medium for small program and host application.
Background
The Mini Program is an application which can be used without downloading and installing, realizes the dream of 'being reachable by hands' of the application, and also embodies the concept of 'being capable of being used up and running'. Some applets can customize pages and navigation bars, and when the applets enter pages of a host, the navigation bars of the pages of the host are default, so that the navigation bars are not compatible, for example, the colors, heights and the like of the navigation bars are incorrect, or a title, a return button and the like disappear. Still other hosts can specially configure the navigation bar of the page due to the particularity of their own services, and when entering the page of the host from the applet, the navigation bar will be directly disappeared.
Therefore, how to seamlessly navigate the pages of the applet and the pages of the host becomes an urgent problem to be solved.
Disclosure of Invention
In view of the foregoing, there is a need for a seamless navigation method, apparatus, electronic device and medium for an applet and a host application, which can implement seamless handover between the applet and the host application and solve the problem of incompatibility of navigation of the applet and the host application during handover.
A first aspect of the invention provides a method for seamless navigation for applet and host applications, the method comprising:
when a target page needing to enter a host application is detected, judging whether an applet is currently running in the electronic equipment;
when the fact that the electronic equipment currently has the small program running is determined, closing the small program and creating an intermediate page according to the target page;
switching from the intermediate page to the target page;
when a closing signal of the target page is detected, identifying whether the target page has a preset mark or not;
and when the preset mark of the target page is identified, opening the small program in the target page.
According to an optional embodiment of the present invention, the identifying whether the target page has a preset mark includes:
determining the type of an operating system currently operated by the electronic equipment;
acquiring an operation method corresponding to the type of the operation system;
calling the operation method to obtain a marking value of the target page;
identifying whether the marking value is a preset value;
when the marking value is the preset value, determining that the target page has no preset mark;
and when the marking value is not the preset value, determining that the target page has a preset mark.
According to an alternative embodiment of the present invention, the creating an intermediate page according to the target page includes:
acquiring the page layout of the target page;
and creating the intermediate page according to the page layout of the target page, wherein the display color corresponding to the page layout of the intermediate page is the same as or similar to the display color corresponding to the page layout of the target page.
According to an alternative embodiment of the invention, the method further comprises:
responding to a starting instruction of a target small program, and displaying a page of the target small program;
acquiring the updating time of the target small program;
judging whether the target applet needs to be updated or not according to the updating time;
and when the target small program is judged to need to be updated according to the updating time, downloading an updating package of the target small program, and updating the target small program according to the updating package when the target small program is started next time.
According to an alternative embodiment of the invention, the method further comprises:
acquiring first function descriptions of all applets and second function descriptions of existing applets in the electronic equipment;
classifying all the applets according to the first function description to obtain a plurality of first types, and classifying the existing applets according to the second function description to obtain a plurality of second types;
deleting the second types in the first types to obtain third types;
recommending the plurality of applets of the third type to a user of the electronic device.
According to an alternative embodiment of the present invention, the recommending the plurality of applets of the third type to the user of the electronic device includes:
obtaining the use frequency of each applet of the third type;
sorting each applet of the third type according to the frequency of use;
acquiring the preference of a user of the electronic equipment;
selecting a target third type from the plurality of third types according to the preference;
recommending the top-ranked small programs in the target third type to the user of the electronic equipment.
According to an alternative embodiment of the invention, the method further comprises:
receiving a functional description of the user input;
calculating the association degree between the function description input by the user and the first function description of all the applets;
acquiring the small program corresponding to the highest association degree from all the small programs;
and downloading the small program corresponding to the highest association degree to the electronic equipment.
A second aspect of the invention provides an applet and host application seamless navigation apparatus, the apparatus comprising:
the judging module is used for judging whether the electronic equipment currently runs the applet or not when the target page needing to enter the host application is detected;
the creating module is used for closing the applet and creating an intermediate page according to the target page when the fact that the applet runs in the electronic equipment is determined;
the switching module is used for switching from the intermediate page to the target page;
the identification module is used for identifying whether the target page has a preset mark or not when the closing signal of the target page is detected;
and the opening module is used for opening the small program in the target page when the preset mark is identified in the target page.
A third aspect of the invention provides an electronic device comprising a processor for implementing the applet and host application seamless navigation method when executing a computer program stored in a memory.
A fourth aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the applet and host application seamless navigation method.
In summary, according to the seamless navigation method, device, electronic device and medium for the applet and the host application, when the target page needing to enter the host application is detected, if the applet is currently running in the electronic device, the applet is closed, the intermediate page is created according to the target page, the intermediate page is switched to the target page, and the applet is completely closed, so that the navigation bar of the host application does not disappear, and the problem of compatibility between the applet and the navigation bar of the host application is effectively solved; and when a closing signal of the target page is detected and the preset mark of the target page is identified, the applet is opened in the target page, so that the automatic recovery of the applet is realized.
Drawings
Fig. 1 is a flowchart of a seamless navigation method for applets and host applications according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a seamless navigation device for applet and host applications according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The applet and host application seamless navigation method provided by the embodiment of the invention is executed by the electronic equipment, and accordingly, the applet and host application seamless navigation device runs in the electronic equipment.
Fig. 1 is a flowchart of a seamless navigation method for applets and host applications according to an embodiment of the present invention. The seamless navigation method for the applet and the host application specifically comprises the following steps, and the sequence of the steps in the flow chart can be changed and some steps can be omitted according to different requirements.
S11, when the target page needing to enter the host application is detected, whether the small program is running in the electronic equipment is judged.
The host application is an application providing a running environment for the applet, so that the applet runs on the electronic device depending on the host application. Wherein the host application is, for example, hundreds of mobile phones. Multiple applets can be run in one host application. For example, applet Y1 and applet Y2 are run in host application XX 1.
An applet is an application that can be used without downloading and installation and can run in different application environments (i.e., hosts), such as a web browser application, an instant messaging application, etc.
When a user operates any page of any host application in the electronic equipment, if the electronic equipment detects that a virtual icon or a link of the page is clicked or touched or a signal of a button which can realize jumping to other pages is detected, it is determined that a target page needs to be entered from a current page of the host application. The target page is a virtual icon or link of any page or a URL corresponding to other buttons capable of realizing a jump function.
The electronic device may determine whether the applet is currently running by using a preset first method, where the preset method is provided for a software development kit in the electronic device, the software development kit is a set of development tools used by some software engineers to establish application software for a specific software package, a software framework, a hardware platform, an operating system, and the like, and the preset first method may be ismina showingingindow.
S12, when it is determined that the electronic equipment has the small program running currently, closing the small program and creating an intermediate page according to the target page.
And the electronic equipment determines that no applet runs currently, and normally jumps to the target page. The electronic equipment determines that the current small programs run, firstly calls a preset second method to close all the running small programs, and then creates an intermediate page. And the electronic equipment enters the intermediate page and then enters the target page.
Wherein the preset second method may be closed all minisystem completion.
In this embodiment, since the electronic device has closed all the running applets before jumping or entering the target page, the navigation bar of the host application will not disappear, and the problem of compatibility between the applets and the navigation bar of the host application is effectively solved.
In an optional embodiment, the creating an intermediate page according to the target page includes:
acquiring the page layout of the target page;
and creating the intermediate page according to the page layout of the target page, wherein the display color corresponding to the page layout of the intermediate page is the same as or similar to the display color corresponding to the page layout of the target page.
The page layout comprises a head area, a menu navigation area, a content area, a bottom area and the like, the length and width of each area, the display color of each area and the like.
Illustratively, assume that a target page includes a head region, a menu navigation region, a content region, and a bottom region, wherein the head region corresponds to a first length, a first width, and a first color; the menu navigation area corresponds to a second length, a second width and a second color; the content area corresponds to a third length, a third width and a third color; the bottom area corresponds to a fourth length, a fourth width, and a fourth color, and the created middle page may include a first area having the first length and the first width and displaying the first color or a color similar to the first color in the first area, a second area having the second length and the second width and displaying the second color or a color similar to the second color in the second area, a third area having the third length and the third width and displaying the third color or a color similar to the third color in the third area, and a fourth area having the fourth length and the fourth width and displaying the fourth color or a color similar to the fourth color in the fourth area. That is, the created intermediate page has the same layout color or a similar layout color as the target page.
In this embodiment, by creating the intermediate page of the page layout having the same or similar display color to the page layout corresponding to the target page, when subsequently entering the target page through the intermediate page, the effect of smooth transition can be achieved, so that visual impact on a user is avoided, and the use experience of the user is improved.
In one embodiment, when it is determined that the electronic device currently has an applet running, the applet is closed and an intermediate page is created, wherein the intermediate page may be a blank page.
S13, switching from the intermediate page to the target page.
And the electronic equipment displays the intermediate page and displays the target page within a preset time period. And when the intermediate page enters the target page, closing the switching animation effect to make the user look like to be non-sensible.
S14, when the closing signal of the target page is detected, identifying whether the target page has a preset mark.
When a user clicks or touches a closing button in a target page, the electronic equipment detects a closing signal of the target page and identifies whether the target page has a preset mark. And the electronic equipment determines whether to recover the closed small program according to whether the target page has a preset mark.
In an optional embodiment, the identifying whether the target page has a preset mark includes:
determining the type of an operating system currently operated by the electronic equipment;
acquiring an operation method corresponding to the type of the operation system;
calling the operation method to obtain a marking value of the target page;
identifying whether the marking value is a preset value;
when the marking value is the preset value, determining that the target page has no preset mark;
and when the marking value is not the preset value, determining that the target page has a preset mark.
Each page of the host application has a corresponding life cycle, and when the page is displayed on the electronic equipment, an operating system of the electronic equipment marks the displayed page.
The operating system of the electronic device may be a single iOS system, a single android system, or a dual system. For example, the operation method corresponding to the iOS system may be a viewdadapper method, and the operation method corresponding to the android system may be an onResume method.
Wherein the preset value may be 0. The electronic equipment calls an operation method corresponding to the operation system to mark the target page, and if the target page is not marked, the marking value is 0 if the target page is entered for the first time; if the target page is already marked, which means that the target page is switched from other pages, the marking value is not 0.
And S15, when the preset mark is identified on the target page, opening the small program in the target page.
When it is recognized that the target page does not have the preset mark, the applet may not be opened through the target page.
The electronic device may restore the closed applet using a preset third method, which may be a restartminicomplete method.
The electronic equipment can also obtain first time for closing the applet and current second time for obtaining the operating system, calculate a first time difference value between the first time and the second time, compare the first time difference value with a preset first difference threshold value, and determine whether to automatically recover the closed applet according to a comparison result. In specific implementation, when the obtained comparison result is that the first time difference value is smaller than the preset first difference value threshold, automatically opening the closed small program in the target page by using a preset third method; and when the obtained comparison result shows that the first time difference value is greater than or equal to the preset first difference value threshold, opening the closed small program in the target page without using a preset third method. And when the first time difference value between the closing time of the applet and the current time is greater than or equal to the preset first difference threshold value, the closing time of the applet is indicated to be shorter, and the possibility that the user still needs to continue using the applet is lower.
In the embodiment, when a target page needing to enter the host application is detected, if an applet currently runs in the electronic device, the applet is closed, an intermediate page is created according to the target page, the intermediate page is switched to the target page, and the applet is completely closed, so that the navigation bar of the host application does not disappear, and the problem of compatibility between the applet and the navigation bar of the host application is effectively solved; and when a closing signal of the target page is detected and the preset mark of the target page is identified, the applet is opened in the target page, so that the automatic recovery of the applet is realized. The invention can completely and independently open the navigation systems of the pages of the small program and the host application without influencing each other, can achieve the effect of seamless navigation, does not need to make different adaptations aiming at different host applications, and greatly reduces the complexity and the development difficulty of a software development kit.
In an optional embodiment, the method further comprises:
responding to a starting instruction of a target small program, and displaying a page of the target small program;
acquiring the updating time of the target small program;
judging whether the target applet needs to be updated or not according to the updating time;
and when the target small program is judged to need to be updated according to the updating time, downloading an updating package of the target small program, and updating the target small program according to the updating package when the target small program is started next time.
And the electronic equipment calculates a second time difference value between the updating time and the current time, judges whether the second time difference value is greater than a preset second difference value threshold value, downloads the updating package of the target applet if the second time difference value is greater than the preset second difference value threshold value and indicates that the target applet is not updated for a long time, and does not need to download the updating package of the target applet if the second time difference value is less than or equal to the preset second difference value threshold value and indicates that the updating time of the target applet is not long.
In this optional embodiment, when it is determined that the target applet needs to be updated, the update package of the target applet is downloaded, so that the target applet is updated according to the update package when the target applet is started next time, and thus, the target applet can be updated to the latest state without affecting the use of the target applet by a user of the electronic device.
In an optional embodiment, the method further comprises:
acquiring first function descriptions of all applets and second function descriptions of existing applets in the electronic equipment;
classifying all the applets according to the first function description to obtain a plurality of first types, and classifying the existing applets according to the second function description to obtain a plurality of second types;
deleting the second types in the first types to obtain third types;
recommending the plurality of applets of the third type to a user of the electronic device.
When a developer has developed an applet and issues the applet, the developer needs to input a function description of the applet in the function description field. The function description refers to keywords or phrases related to describing functions of the applet, for example, the function description of the applet of the game type can be online game, tower defense, free, and the like.
The electronic device may parse the functional description using an NLP natural speech processing model and implement classification of the applets from the functional description. The types may include a model control class, a game class, a utility class, a shopping class, and others.
Since no special application store is provided for the user to download the applet at present, the user cannot use the needed applet in time, and the developer is also not convenient to popularize the applet, so that inconvenience is brought to the user.
In an alternative embodiment, the recommending the plurality of applets of the third type to the user of the electronic device includes:
obtaining the use frequency of each applet of the third type;
sorting each applet of the third type according to the frequency of use;
acquiring the preference of a user of the electronic equipment;
selecting a target third type from the plurality of third types according to the preference;
recommending the top-ranked small programs in the target third type to the user of the electronic equipment.
The preference of the user can be consumption habit preference or use habit preference, the small program is recommended to the user according to the preference of the user, the small program can be accurately and individually recommended, and popularization and use of the small program are improved.
In an optional embodiment, the method further comprises:
receiving a functional description of the user input;
calculating the association degree between the function description input by the user and the first function description of all the applets;
acquiring the small program corresponding to the highest association degree from all the small programs;
and downloading the small program corresponding to the highest association degree to the electronic equipment.
The function description input by the user may be a type of applet or a function keyword. The number of function descriptions input by the user may be one or more.
The electronic equipment can calculate the Euclidean distance or the cosine included angle between any two function descriptions as the association degree between any two function descriptions, sort according to the association degree, and download the small program with the highest sorting frequency into the electronic equipment, namely download the small program with the highest association with the function description input by the user into the electronic equipment of the user. In other embodiments, the user may also manually select one of the applets in the ordered list and download the user-selected applet to the user's electronic device.
Fig. 2 is a structural diagram of a seamless navigation device for applet and host applications according to a second embodiment of the present invention.
In some embodiments, the applet and host application seamless navigation device 20 may include a plurality of functional modules comprised of computer program segments. The computer programs of the various program segments in the applet and host application seamless navigation apparatus 20 may be stored in a memory of the electronic device and executed by at least one processor to perform (see detailed description of fig. 1) the functions of the applet and host application seamless navigation.
In this embodiment, the applet and host application seamless navigation apparatus 20 may be divided into a plurality of functional modules according to the functions it performs. The functional module may include: the system comprises a judging module 201, a creating module 202, a switching module 203, an identifying module 204, an opening module 205, an updating module 206, a recommending module 207 and a downloading module 208. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The determining module 201 is configured to determine whether an applet is currently running in the electronic device when a target page that needs to enter the host application is detected.
The host application is an application providing a running environment for the applet, so that the applet runs on the electronic device depending on the host application. Wherein the host application is, for example, hundreds of mobile phones. Multiple applets can be run in one host application. For example, applet Y1 and applet Y2 are run in host application XX 1.
An applet is an application that can be used without downloading and installation and can run in different application environments (i.e., hosts), such as a web browser application, an instant messaging application, etc.
When a user operates any page of any host application in the electronic equipment, if the electronic equipment detects that a virtual icon or a link of the page is clicked or touched or a signal of a button which can realize jumping to other pages is detected, it is determined that a target page needs to be entered from a current page of the host application. The target page is a virtual icon or link of any page or a URL corresponding to other buttons capable of realizing a jump function.
The electronic device may determine whether the applet is currently running by using a preset first method, where the preset method is provided for a software development kit in the electronic device, the software development kit is a set of development tools used by some software engineers to establish application software for a specific software package, a software framework, a hardware platform, an operating system, and the like, and the preset first method may be ismina showingingindow.
The creating module 202 is configured to close the applet and create an intermediate page according to the target page when it is determined that the applet currently runs in the electronic device.
And the electronic equipment determines that no applet runs currently, and normally jumps to the target page. The electronic equipment determines that the current small programs run, firstly calls a preset second method to close all the running small programs, and then creates an intermediate page. And the electronic equipment enters the intermediate page and then enters the target page.
Wherein the preset second method may be closed all minisystem completion.
In this embodiment, since the electronic device has closed all the running applets before jumping or entering the target page, the navigation bar of the host application will not disappear, and the problem of compatibility between the applets and the navigation bar of the host application is effectively solved.
In an optional embodiment, the creating module 202 creating an intermediate page according to the target page includes:
acquiring the page layout of the target page;
and creating the intermediate page according to the page layout of the target page, wherein the display color corresponding to the page layout of the intermediate page is the same as or similar to the display color corresponding to the page layout of the target page.
The page layout comprises a head area, a menu navigation area, a content area, a bottom area and the like, the length and width of each area, the display color of each area and the like.
Illustratively, assume that a target page includes a head region, a menu navigation region, a content region, and a bottom region, wherein the head region corresponds to a first length, a first width, and a first color; the menu navigation area corresponds to a second length, a second width and a second color; the content area corresponds to a third length, a third width and a third color; the bottom area corresponds to a fourth length, a fourth width, and a fourth color, and the created middle page may include a first area having the first length and the first width and displaying the first color or a color similar to the first color in the first area, a second area having the second length and the second width and displaying the second color or a color similar to the second color in the second area, a third area having the third length and the third width and displaying the third color or a color similar to the third color in the third area, and a fourth area having the fourth length and the fourth width and displaying the fourth color or a color similar to the fourth color in the fourth area. That is, the created intermediate page has the same layout color or a similar layout color as the target page.
In this embodiment, by creating the intermediate page of the page layout having the same or similar display color to the page layout corresponding to the target page, when subsequently entering the target page through the intermediate page, the effect of smooth transition can be achieved, so that visual impact on a user is avoided, and the use experience of the user is improved.
In one embodiment, when it is determined that the electronic device currently has an applet running, the applet is closed and an intermediate page is created, wherein the intermediate page may be a blank page.
The switching module 203 is configured to switch from the intermediate page to the target page.
And the electronic equipment displays the intermediate page and displays the target page within a preset time period. And when the intermediate page enters the target page, closing the switching animation effect to make the user look like to be non-sensible.
The identifying module 204 is configured to identify whether the target page has a preset mark when the close signal of the target page is detected.
When a user clicks or touches a closing button in a target page, the electronic equipment detects a closing signal of the target page and identifies whether the target page has a preset mark. And the electronic equipment determines whether to recover the closed small program according to whether the target page has a preset mark.
In an optional embodiment, the identifying module 204 identifies whether the target page has a preset mark, including:
determining the type of an operating system currently operated by the electronic equipment;
acquiring an operation method corresponding to the type of the operation system;
calling the operation method to obtain a marking value of the target page;
identifying whether the marking value is a preset value;
when the marking value is the preset value, determining that the target page has no preset mark;
and when the marking value is not the preset value, determining that the target page has a preset mark.
Each page of the host application has a corresponding life cycle, and when the page is displayed on the electronic equipment, an operating system of the electronic equipment marks the displayed page.
The operating system of the electronic device may be a single iOS system, a single android system, or a dual system. For example, the operation method corresponding to the iOS system may be a viewdadapper method, and the operation method corresponding to the android system may be an onResume method.
Wherein the preset value may be 0. The electronic equipment calls an operation method corresponding to the operation system to mark the target page, and if the target page is not marked, the marking value is 0 if the target page is entered for the first time; if the target page is already marked, which means that the target page is switched from other pages, the marking value is not 0.
The opening module 205 is configured to open the applet in the target page when the preset mark is identified in the target page.
When it is recognized that the target page does not have the preset mark, the applet may not be opened through the target page.
The electronic device may restore the closed applet using a preset third method, which may be a restartminicomplete method.
The electronic equipment can also obtain first time for closing the applet and current second time for obtaining the operating system, calculate a first time difference value between the first time and the second time, compare the first time difference value with a preset first difference threshold value, and determine whether to automatically recover the closed applet according to a comparison result. In specific implementation, when the obtained comparison result is that the first time difference value is smaller than the preset first difference value threshold, automatically opening the closed small program in the target page by using a preset third method; and when the obtained comparison result shows that the first time difference value is greater than or equal to the preset first difference value threshold, opening the closed small program in the target page without using a preset third method. And when the first time difference value between the closing time of the applet and the current time is greater than or equal to the preset first difference threshold value, the closing time of the applet is indicated to be shorter, and the possibility that the user still needs to continue using the applet is lower.
In the embodiment, when a target page needing to enter the host application is detected, if an applet currently runs in the electronic device, the applet is closed, an intermediate page is created according to the target page, the intermediate page is switched to the target page, and the applet is completely closed, so that the navigation bar of the host application does not disappear, and the problem of compatibility between the applet and the navigation bar of the host application is effectively solved; and when a closing signal of the target page is detected and the preset mark of the target page is identified, the applet is opened in the target page, so that the automatic recovery of the applet is realized. The invention can completely and independently open the navigation systems of the pages of the small program and the host application without influencing each other, can achieve the effect of seamless navigation, does not need to make different adaptations aiming at different host applications, and greatly reduces the complexity and the development difficulty of a software development kit.
The update module 206 is configured to respond to a start instruction of a target applet and display a page of the target applet; acquiring the updating time of the target small program; judging whether the target applet needs to be updated or not according to the updating time; and when the target small program is judged to need to be updated according to the updating time, downloading an updating package of the target small program, and updating the target small program according to the updating package when the target small program is started next time.
And the electronic equipment calculates a second time difference value between the updating time and the current time, judges whether the second time difference value is greater than a preset second difference value threshold value, downloads the updating package of the target applet if the second time difference value is greater than the preset second difference value threshold value and indicates that the target applet is not updated for a long time, and does not need to download the updating package of the target applet if the second time difference value is less than or equal to the preset second difference value threshold value and indicates that the updating time of the target applet is not long.
In this optional embodiment, when it is determined that the target applet needs to be updated, the update package of the target applet is downloaded, so that the target applet is updated according to the update package when the target applet is started next time, and thus, the target applet can be updated to the latest state without affecting the use of the target applet by a user of the electronic device.
The recommending module 207 is configured to obtain first function descriptions of all applets and second function descriptions of existing applets in the electronic device; classifying all the applets according to the first function description to obtain a plurality of first types, and classifying the existing applets according to the second function description to obtain a plurality of second types; deleting the second types in the first types to obtain third types; recommending the plurality of applets of the third type to a user of the electronic device.
When a developer has developed an applet and issues the applet, the developer needs to input a function description of the applet in the function description field. The function description refers to keywords or phrases related to describing functions of the applet, for example, the function description of the applet of the game type can be online game, tower defense, free, and the like.
The electronic device may parse the functional description using an NLP natural speech processing model and implement classification of the applets from the functional description. The types may include a model control class, a game class, a utility class, a shopping class, and others.
Since no special application store is provided for the user to download the applet at present, the user cannot use the needed applet in time, and the developer is also not convenient to popularize the applet, so that inconvenience is brought to the user.
In an alternative embodiment, the recommending module 207 recommending the plurality of applets of the third type to the user of the electronic device includes:
obtaining the use frequency of each applet of the third type;
sorting each applet of the third type according to the frequency of use;
acquiring the preference of a user of the electronic equipment;
selecting a target third type from the plurality of third types according to the preference;
recommending the top-ranked small programs in the target third type to the user of the electronic equipment.
The preference of the user can be consumption habit preference or use habit preference, the small program is recommended to the user according to the preference of the user, the small program can be accurately and individually recommended, and popularization and use of the small program are improved.
The download module 208 is configured to receive the function description input by the user; calculating the association degree between the function description input by the user and the first function description of all the applets; acquiring the small program corresponding to the highest association degree from all the small programs; and downloading the small program corresponding to the highest association degree to the electronic equipment.
The function description input by the user may be a type of applet or a function keyword. The number of function descriptions input by the user may be one or more.
The electronic equipment can calculate the Euclidean distance or the cosine included angle between any two function descriptions as the association degree between any two function descriptions, sort according to the association degree, and download the small program with the highest sorting frequency into the electronic equipment, namely download the small program with the highest association with the function description input by the user into the electronic equipment of the user. In other embodiments, the user may also manually select one of the applets in the ordered list and download the user-selected applet to the user's electronic device.
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the electronic device 3 comprises a memory 31, at least one processor 32, at least one communication bus 33 and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the electronic device shown in fig. 3 does not constitute a limitation of the embodiment of the present invention, and may be a bus-type configuration or a star-type configuration, and the electronic device 3 may include more or less other hardware or software than those shown, or a different arrangement of components.
In some embodiments, the electronic device 3 is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The electronic device 3 may also include a client device, which includes, but is not limited to, any electronic product that can interact with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the electronic device 3 is only an example, and other existing or future electronic products, such as those that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, the memory 31 has stored therein a computer program that, when executed by the at least one processor 32, performs all or part of the steps of the applet and host application seamless navigation method as described. The Memory 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In some embodiments, the at least one processor 32 is a Control Unit (Control Unit) of the electronic device 3, connects various components of the electronic device 3 by various interfaces and lines, and executes various functions and processes data of the electronic device 3 by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31. For example, the at least one processor 32, when executing the computer program stored in the memory, implements all or a portion of the steps of the applet and host application seamless navigation method described in embodiments of the present invention; or implement all or part of the functionality of an applet and host application seamless navigation device. The at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the electronic device 3 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable an electronic device (which may be a personal computer, an electronic device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the present specification may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. An applet and host application seamless navigation method, the method comprising:
when a target page needing to enter a host application is detected, judging whether an applet is currently running in the electronic equipment;
when the fact that the electronic equipment currently has the small program running is determined, closing the small program and creating an intermediate page according to the target page;
switching from the intermediate page to the target page;
when a closing signal of the target page is detected, identifying whether the target page has a preset mark or not;
and when the preset mark of the target page is identified, opening the small program in the target page.
2. The applet and host application seamless navigation method according to claim 1, wherein said identifying whether the target page has a preset mark comprises:
determining the type of an operating system currently operated by the electronic equipment;
acquiring an operation method corresponding to the type of the operation system;
calling the operation method to obtain a marking value of the target page;
identifying whether the marking value is a preset value;
when the marking value is the preset value, determining that the target page has no preset mark;
and when the marking value is not the preset value, determining that the target page has a preset mark.
3. The applet and host application seamless navigation method according to claim 1, wherein said creating an intermediate page from said target page comprises:
acquiring the page layout of the target page;
and creating the intermediate page according to the page layout of the target page, wherein the display color corresponding to the page layout of the intermediate page is the same as or similar to the display color corresponding to the page layout of the target page.
4. The applet and host application seamless navigation method according to claim 2 or 3, characterized in that the method further comprises:
responding to a starting instruction of a target small program, and displaying a page of the target small program;
acquiring the updating time of the target small program;
judging whether the target applet needs to be updated or not according to the updating time;
and when the target small program is judged to need to be updated according to the updating time, downloading an updating package of the target small program, and updating the target small program according to the updating package when the target small program is started next time.
5. The applet and host application seamless navigation method according to claim 4, characterized in that the method further comprises:
acquiring first function descriptions of all applets and second function descriptions of existing applets in the electronic equipment;
classifying all the applets according to the first function description to obtain a plurality of first types, and classifying the existing applets according to the second function description to obtain a plurality of second types;
deleting the second types in the first types to obtain third types;
recommending the plurality of applets of the third type to a user of the electronic device.
6. The applet and host application seamless navigation method according to claim 5, wherein said recommending the plurality of applets of the third type to the user of the electronic device comprises:
obtaining the use frequency of each applet of the third type;
sorting each applet of the third type according to the frequency of use;
acquiring the preference of a user of the electronic equipment;
selecting a target third type from the plurality of third types according to the preference;
recommending the top-ranked small programs in the target third type to the user of the electronic equipment.
7. The applet and host application seamless navigation method according to claim 5, characterized in that the method further comprises:
receiving a functional description of the user input;
calculating the association degree between the function description input by the user and the first function description of all the applets;
acquiring the small program corresponding to the highest association degree from all the small programs;
and downloading the small program corresponding to the highest association degree to the electronic equipment.
8. An applet and host application seamless navigation apparatus, the apparatus comprising:
the judging module is used for judging whether the electronic equipment currently runs the applet or not when the target page needing to enter the host application is detected;
the creating module is used for closing the applet and creating an intermediate page according to the target page when the fact that the applet runs in the electronic equipment is determined;
the switching module is used for switching from the intermediate page to the target page;
the identification module is used for identifying whether the target page has a preset mark or not when the closing signal of the target page is detected;
and the opening module is used for opening the small program in the target page when the preset mark is identified in the target page.
9. An electronic device, comprising a processor configured to implement the applet and host application seamless navigation method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the applet and host application seamless navigation method as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011255953.4A CN112364266A (en) | 2020-11-11 | 2020-11-11 | Seamless navigation method, device, electronic equipment and medium for applet and host application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011255953.4A CN112364266A (en) | 2020-11-11 | 2020-11-11 | Seamless navigation method, device, electronic equipment and medium for applet and host application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112364266A true CN112364266A (en) | 2021-02-12 |
Family
ID=74516025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011255953.4A Pending CN112364266A (en) | 2020-11-11 | 2020-11-11 | Seamless navigation method, device, electronic equipment and medium for applet and host application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112364266A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860566A (en) * | 2021-03-02 | 2021-05-28 | 百度在线网络技术(北京)有限公司 | Applet detection method, device, electronic equipment and readable medium |
CN113127130A (en) * | 2021-05-08 | 2021-07-16 | 广州酷狗计算机科技有限公司 | Page jump method, device and storage medium |
CN114095686A (en) * | 2021-11-18 | 2022-02-25 | 平安普惠企业管理有限公司 | Virtual image switching method and device, electronic equipment and storage medium |
WO2023178952A1 (en) * | 2022-03-24 | 2023-09-28 | 中国银联股份有限公司 | Method and apparatus for integrating native program with applet, and device and medium |
CN117390327A (en) * | 2023-12-13 | 2024-01-12 | 北京轻松怡康信息技术有限公司 | Page processing method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108287743A (en) * | 2018-01-11 | 2018-07-17 | 上海展扬通信技术有限公司 | Method for page jump, terminal in application program and storage medium |
CN109299395A (en) * | 2018-11-28 | 2019-02-01 | 掌阅科技股份有限公司 | Content recommendation method, electronic equipment and computer storage medium based on plug-in unit |
CN111552473A (en) * | 2020-04-27 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Application processing method, device and equipment |
-
2020
- 2020-11-11 CN CN202011255953.4A patent/CN112364266A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108287743A (en) * | 2018-01-11 | 2018-07-17 | 上海展扬通信技术有限公司 | Method for page jump, terminal in application program and storage medium |
CN109299395A (en) * | 2018-11-28 | 2019-02-01 | 掌阅科技股份有限公司 | Content recommendation method, electronic equipment and computer storage medium based on plug-in unit |
CN111552473A (en) * | 2020-04-27 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Application processing method, device and equipment |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860566A (en) * | 2021-03-02 | 2021-05-28 | 百度在线网络技术(北京)有限公司 | Applet detection method, device, electronic equipment and readable medium |
CN112860566B (en) * | 2021-03-02 | 2024-04-30 | 百度在线网络技术(北京)有限公司 | Applet detection method, device, electronic equipment and readable medium |
CN113127130A (en) * | 2021-05-08 | 2021-07-16 | 广州酷狗计算机科技有限公司 | Page jump method, device and storage medium |
CN113127130B (en) * | 2021-05-08 | 2024-05-14 | 广州酷狗计算机科技有限公司 | Page jump method, device and storage medium |
CN114095686A (en) * | 2021-11-18 | 2022-02-25 | 平安普惠企业管理有限公司 | Virtual image switching method and device, electronic equipment and storage medium |
WO2023178952A1 (en) * | 2022-03-24 | 2023-09-28 | 中国银联股份有限公司 | Method and apparatus for integrating native program with applet, and device and medium |
CN117390327A (en) * | 2023-12-13 | 2024-01-12 | 北京轻松怡康信息技术有限公司 | Page processing method and device, storage medium and electronic equipment |
CN117390327B (en) * | 2023-12-13 | 2024-07-16 | 北京轻松怡康信息技术有限公司 | Page processing method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112364266A (en) | Seamless navigation method, device, electronic equipment and medium for applet and host application | |
US11822784B2 (en) | Split-screen display processing method and apparatus, device, and storage medium | |
CN111831176B (en) | Application program management method and device | |
CN107273457A (en) | A kind of searching method and device, computer installation and computer-readable recording medium | |
CN112486491A (en) | Page generation method and device, computer equipment and storage medium | |
CN102970657A (en) | System and method for sharing group status in social network | |
CN111782166B (en) | Multi-screen interaction method, device, equipment and storage medium | |
CN106293335A (en) | Application program grading management method and system | |
CN108055320A (en) | Processing method, terminal device and the computer readable storage medium of resource downloading | |
CN112558833B (en) | Application running method and device and electronic equipment | |
CN112684959A (en) | Control method and device and electronic equipment | |
CN107678788A (en) | Five application page display methods, device, computer installation and storage medium | |
CN113282359A (en) | Application reminding method and device and electronic equipment | |
EP3776161B1 (en) | Method and electronic device for configuring touch screen keyboard | |
CN111625379B (en) | Information processing method and device, electronic equipment and readable storage medium | |
CN114091589A (en) | Model training method and device, electronic equipment and medium | |
CN107992379A (en) | A kind of method, mobile terminal and computer-readable medium for reading data message | |
CN117112124A (en) | Parameter verification method, server and terminal for Kubernetes object | |
WO2024061032A9 (en) | Window display method and related apparatus | |
CN110879701A (en) | Workflow visualization configuration method, server, system and medium | |
CN111857475B (en) | Icon display method and device and electronic equipment | |
CN112348403B (en) | Wind control model construction method and device and electronic equipment | |
CN114968037A (en) | Vehicle-mounted terminal interaction method and device, vehicle-mounted terminal and storage medium | |
CN106951264A (en) | A kind of available machine time optimization method and device | |
CN104951325A (en) | Information display method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |