CN107957837B - Method and device for generating shortcut of webpage application program and terminal equipment - Google Patents

Method and device for generating shortcut of webpage application program and terminal equipment Download PDF

Info

Publication number
CN107957837B
CN107957837B CN201711485734.3A CN201711485734A CN107957837B CN 107957837 B CN107957837 B CN 107957837B CN 201711485734 A CN201711485734 A CN 201711485734A CN 107957837 B CN107957837 B CN 107957837B
Authority
CN
China
Prior art keywords
shortcut
information
webpage
application program
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711485734.3A
Other languages
Chinese (zh)
Other versions
CN107957837A (en
Inventor
陈都
吴萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711485734.3A priority Critical patent/CN107957837B/en
Publication of CN107957837A publication Critical patent/CN107957837A/en
Application granted granted Critical
Publication of CN107957837B publication Critical patent/CN107957837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

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

Abstract

The application discloses a method and a device for generating a shortcut of a webpage application program, terminal equipment and a storage medium. The method comprises the following steps: acquiring identification information of a webpage currently visited by a user; judging whether to trigger the addition of a desktop shortcut aiming at the webpage or not according to the identification information; if so, generating shortcut information of the webpage application program aiming at the webpage; and adding the shortcut information of the webpage application program to the desktop of the operating system of the terminal equipment. The method can actively control the generation of the webpage application shortcut without analyzing whether the webpage shortcut needs to be added to a system desktop or not by a user, simplifies the operation steps of the user, has less interference to the user, has high click rate of the added shortcut, greatly shortens the re-access path of the webpage application, can complete the installation process of the lightweight APP of the webpage according to the identification information of the currently accessed webpage only when the user accesses the corresponding H5 webpage, and improves the use experience of the user.

Description

Method and device for generating shortcut of webpage application program and terminal equipment
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for generating a shortcut of a web application, a terminal device, and a computer-readable storage medium.
Background
With the development of network technology and the maturity of network standards, various applications based on web pages are gradually developed. The user can input the address of the webpage in the browser to open the webpage, the webpage is convenient and fast, and the shortcut of the webpage can be added into the favorite folder of the browser in a bookmark mode, so that when the user opens the browser and clicks a bookmark from the favorite folder, the webpage corresponding to the bookmark can be quickly opened. Or, the user downloads an application corresponding to the web page, for example, a hundredth news APP (application), from the internet and installs the application in the system, so that the user can use the application directly on the desktop. However, the addition mode of the shortcut of the web page needs the user to actively analyze whether the web page needs to be added to the favorite folder of the browser, which causes the operation of the user to be complicated and is not intelligent enough; in the above manner of downloading and installing the application program by the user, the installation package of the application program is relatively large, which not only consumes traffic resources but also occupies a space of the terminal device, and user experience is deteriorated.
Disclosure of Invention
The object of the present application is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present application is to provide a method for generating a shortcut of a web application. The method can actively control the generation of the shortcut of the webpage application, does not need a user to analyze whether the shortcut of the webpage needs to be added to a system desktop or not, simplifies the operation steps of the user, has less interference to the user and high click rate of the shortcut addition, greatly shortens the re-access path of the webpage application, and improves the use experience of the user.
A second object of the present application is to provide a shortcut generation apparatus for a web application.
A third object of the present application is to provide a terminal device.
A fourth object of the present application is to propose a computer readable storage medium.
In order to achieve the above object, a method for generating a shortcut of a web application provided in an embodiment of a first aspect of the present application includes: acquiring identification information of a webpage currently visited by a user; judging whether to trigger the addition of the desktop shortcut aiming at the webpage or not according to the identification information; if so, generating shortcut information of the webpage application program aiming at the webpage; and adding the shortcut information of the webpage application program to the desktop of the operating system of the terminal equipment.
In order to achieve the above object, an apparatus for generating a shortcut of a web application according to an embodiment of a second aspect of the present application includes: the first acquisition module is used for acquiring identification information of a webpage currently visited by a user; the judging module is used for judging whether to trigger the addition of the desktop shortcut aiming at the webpage or not according to the identification information; the first generation module is used for generating shortcut information of the webpage application program aiming at the webpage when the desktop shortcut aiming at the webpage is triggered and added; and the adding module is used for adding the shortcut information of the webpage application program to the desktop of the terminal equipment operating system.
In order to achieve the above object, a terminal device according to a third aspect of the present application includes: the method comprises the steps of storing a program, storing a program in a memory, storing a processor and storing a computer program which can be run on the memory, wherein when the processor executes the program, the method for generating the shortcut of the web application program is realized.
To achieve the above object, a non-transitory computer-readable storage medium is provided in an embodiment of a fourth aspect of the present application, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for generating a shortcut to a web application according to the embodiment of the first aspect of the present application.
To sum up, the method, the device, the terminal device and the computer-readable storage medium for generating the shortcut of the web application program according to the embodiments of the present application can obtain the identification information of the web page currently accessed by the user, and determine whether to trigger the addition of the desktop shortcut of the web page according to the identification information, if so, generate the shortcut information of the web application program of the web page, and add the shortcut information of the web application program to the desktop of the terminal device operating system, in the whole process, the generation of the web application shortcut can be actively controlled, it is not necessary for the user to analyze whether the shortcut of the web page needs to be added to the system desktop, the operation steps of the user are simplified, the interference to the user is small, the learning cost is low, the click rate of adding the shortcut is high, the secondary access path of the web application is greatly shortened, and only when the user accesses the corresponding H5 page, the installation process of the webpage lightweight APP can be completed according to the identification information of the currently accessed webpage, and the use experience of a user is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1(a) is a flowchart of a shortcut generation method for a web application according to an embodiment of the present application;
FIG. 1(b) is an exemplary diagram of shortcut information of a web application displayed on a system desktop according to an embodiment of the present application;
FIG. 2(a) is a flowchart of a shortcut generation method for a web application according to another embodiment of the present application;
FIG. 2(b) is a diagram illustrating an effect of a launch page of a weather web application according to an embodiment of the present application;
FIG. 3 is an exemplary diagram of effects after a home plane of a weather web application is loaded and rendered by a task stack according to an embodiment of the application;
FIG. 4 is a flowchart of a method for shortcut generation for a web application in accordance with a specific embodiment of the present application;
FIG. 5 is an exemplary diagram of a prompt box for adding a web application shortcut in accordance with an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a shortcut generation apparatus for a Web application according to an embodiment of the present application;
FIG. 7 is a block diagram of a first generation module according to one embodiment of the present application;
FIG. 8 is a block diagram illustrating an exemplary embodiment of a shortcut generation apparatus for a Web application;
FIG. 9 is a block diagram illustrating a shortcut generation apparatus for a Web application in accordance with another exemplary embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A shortcut generation method, apparatus, terminal device, and computer-readable storage medium for a web application according to an embodiment of the present application are described below with reference to the accompanying drawings.
FIG. 1(a) is a flowchart of a shortcut generation method of a web application according to an embodiment of the present application. It should be noted that the method for generating a shortcut of a web application according to the embodiment of the present application may be applied to a device for generating a shortcut of a web application according to the embodiment of the present application, and the device for generating a shortcut of a web application may be configured in a terminal device. The terminal device may be a PC, a mobile terminal, or the like. For example, the mobile terminal may be a hardware device having various operating systems, such as a mobile phone, a tablet computer, a personal digital assistant, and the like.
As shown in fig. 1(a), the method for generating a shortcut of a web application may include:
s110, acquiring the identification information of the webpage currently accessed by the user.
As an example, the identification information may be URL (Uniform Resource Locator) address information or the like.
Alternatively, when it is monitored that the user opens the browser application, identification information of a webpage currently accessed by the user may be acquired, for example, URL address information of the webpage may be acquired.
And S120, judging whether to trigger the addition of the desktop shortcut aiming at the webpage or not according to the identification information.
Optionally, when the identification information of the webpage currently accessed by the user is obtained, the information about adding the shortcut in the desktop application, the pre-stored shortcut adding information, the access history and other information may be queried according to the identification information to determine whether adding the desktop shortcut to the webpage is triggered currently.
As an example implementation manner, it may be determined whether the identification information exists in a pre-established database, and if so, adding a desktop shortcut to the web page is triggered. In the embodiment of the application, the database may contain identification information of a webpage to which a shortcut of a webpage application is to be added.
That is, after obtaining the identification information of the webpage currently accessed by the user, it may be found whether the identification information exists from a pre-established database, and if so, it may be considered that the desktop shortcut of the webpage corresponding to the identification information needs to be added to the system desktop.
In order to avoid multiple additions of desktop shortcuts of the same webpage, optionally, in an embodiment of the present application, after determining that the identification information exists in a pre-established database, before triggering the addition of the desktop shortcut for the webpage, it may be further determined whether the desktop shortcut of the webpage has been added to the system desktop according to the identification information.
As an example implementation manner, whenever a desktop shortcut of a web page is added to the system desktop, the identification information of the web page may be stored, so as to subsequently determine whether the desktop shortcut of the currently accessed web page has been added to the system desktop according to the stored identification information. That is, after judging that the identification information exists in the pre-established database, whether the desktop shortcut of the currently accessed webpage is added to the system desktop can be judged according to the identification information, and if the desktop shortcut of the currently accessed webpage is added, the process is finished and quitted; if the identification information is not added, the desktop shortcut of the webpage corresponding to the identification information can be considered to be required to be added to the system desktop, and at the moment, the desktop shortcut of the webpage can be triggered to be added.
And S130, if yes, generating shortcut information of the webpage application program aiming at the webpage.
Optionally, when it is determined from the identification information that adding a desktop shortcut for a web page is triggered, shortcut information of a web application for the web page may be generated, for example, the shortcut information may include, but is not limited to, icon information, theme color information, background color information, shortcut title information, and the like.
As an example implementation manner, when it is determined that adding a desktop shortcut to a web page is triggered according to the identification information, metadata of the web page may be obtained, icon information, theme color information, background color information, and shortcut title information for the web application program may be obtained and stored from the metadata of the web page, and the shortcut information for the web application program may be generated according to the icon information and the shortcut title information. The metadata is used for containing information such as an ICON (ICON) of a webpage, a theme color, a background color, a shortcut title and the like.
For example, the WebView component may perform validity check and analysis on a configuration file (e.g., a manifest json file of a web page) for the web page content of the currently accessed web page, obtain metadata of the web page, and then obtain icon information, theme color information, background color information, and shortcut header information from the metadata, and use these information as shortcut information of the web application.
S140, adding the shortcut information of the webpage application program to the desktop of the terminal equipment operating system.
Optionally, when generating the shortcut information of the web application, a first screen request for adding the shortcut information of the web application may be initiated to a desktop application of an operating system of the terminal device, and the shortcut information of the web application may be added to a system desktop according to the first screen request. For example, as shown in fig. 1(b), shortcut information of the web application Q may be added to the system desktop.
In order to improve the use experience of a user, the distribution capability of the web application can be provided, so that the H5 page (i.e. the web page of the mobile terminal) has the web page APP capability of the Native APP experience, and further, in an embodiment of the present application, when a click operation of the user on the shortcut information of the web application is received, a task stack independent of the browser application program can be created for the web application program, and the web application program is started and loaded through the task stack, so that the life cycle and task management of the web application program are independent of the main task stack of the browser application program. Specifically, as shown in fig. 2(a), after adding the shortcut information of the web application to the desktop of the operating system of the terminal device, the method for generating a shortcut of a web application may further include:
s210, when receiving the click operation of the user for the shortcut information of the webpage application program, creating a task stack for the webpage application program.
Optionally, after adding the shortcut information of the web application to the desktop of the terminal device operating system, the user may determine whether to click the shortcut information of the web application according to his own needs, and may create a task stack for the web application when receiving a click operation of the user on the shortcut information of the web application. In the embodiment of the application, the task stack of the web application is an independent task stack, so that the life cycle and task management of the web application can be independent of the main task stack of the browser application.
And S220, acquiring the stored icon information, the theme color information, the background color information and the shortcut title information of the webpage application program through the task stack.
And S230, generating a starting page of the webpage application program according to the icon information, the theme color information, the background color information and the shortcut title information through the task stack, and providing the starting page for the user.
For example, taking a weather web application as an example, that is, the web application may be a weather web application, and a start page of the weather web application may be generated by the task stack according to the icon information, the theme color information, the background color information, and the shortcut title information, and provided to the user. For example, as shown in fig. 2(b), it is an exemplary diagram of a start page of a weather web application, where the start page includes an icon of the weather web application, theme (i.e., XX weather) color information, a web page background color, and the like.
S240, after the starting page is finished, loading and rendering a first screen page of the webpage application program through the task stack.
For example, taking a weather web application as an example, that is, the web application may be a weather web application, as shown in fig. 3, which is an exemplary diagram of an effect after loading and rendering a home page plane of the weather web application through the task stack, it can be seen that the task stack corresponding to the weather web application is a main task stack independent of the browser application.
To sum up, the method for generating the shortcut of the web application program in the embodiment of the application is different from the method for actively adding the shortcut and the experience to the user of the existing browser H5 page, but actively triggering the addition of the shortcut to the web page according to the addition condition, and in the whole process, the user does not need to analyze whether the shortcut of the web page needs to be added to the system desktop, so that the operation of the user is simplified.
The method for generating the shortcut of the webpage application program can acquire the identification information of the webpage currently accessed by the user, judge whether to trigger the addition of the desktop shortcut aiming at the webpage according to the identification information, if so, generate the shortcut information of the webpage application program aiming at the webpage, add the shortcut information of the webpage application program to the desktop of the terminal equipment operating system, actively control the generation of the webpage application shortcut in the whole process, do not need the user to analyze whether the shortcut of the webpage needs to be added to the system desktop, simplify the operating steps of the user, have less interference to the user, have low learning cost and high click rate of the addition shortcut, greatly shorten the re-access path of the webpage application, and only need to complete the installation process of the lightweight APP of the webpage according to the identification information of the currently accessed webpage when the user accesses the corresponding H5 webpage, the use experience of the user is improved.
FIG. 4 is a flowchart of a method for shortcut generation for a web application in accordance with a specific embodiment of the present application. In order to further improve the user experience, a prompt message can be popped up for the user to prompt whether the user needs to add the shortcut information of the web application to the system desktop. Specifically, as shown in fig. 4, the method for generating a shortcut of a web application may include:
s410, acquiring the identification information of the webpage currently accessed by the user.
And S420, judging whether to trigger the addition of the desktop shortcut aiming at the webpage or not according to the identification information.
As an example implementation manner, it may be determined whether the identification information exists in a pre-established database, and if so, adding a desktop shortcut to a web page is triggered. In the embodiment of the application, the database may contain identification information of a webpage to which the webpage application shortcut is to be added.
And S430, if so, generating a prompt box of the web application program shortcut of the added web page and providing the prompt box for the user.
That is, before generating the shortcut information of the web application for the web page, a prompt box for adding the web application shortcut for the web page may be generated and provided to the user to prompt the user whether the shortcut information of the web application needs to be added to the system desktop. For example, as shown in FIG. 5, the prompt box may contain buttons of "Add" and "cancel", and may also contain icon information, theme color information, shortcut title information, etc. of the web application, and may also provide the user with editing functions to support the user to modify the name of the shortcut.
S440, when a confirmation instruction for adding the webpage application program shortcut, which is input by a user through the prompt box, is received, shortcut information of the webpage application program for the webpage is generated.
S450, adding the shortcut information of the webpage application program to the desktop of the terminal equipment operating system.
According to the shortcut generation method of the webpage application program, before the shortcut information for the webpage application program is generated, the prompt box for adding the webpage application program shortcut can be generated and provided for the user, so that the user can be prompted whether the shortcut information of the webpage application program needs to be added to the system desktop, and the user experience is further improved.
Corresponding to the web application shortcut generation methods provided in the foregoing embodiments, an embodiment of the present application further provides a web application shortcut generation device, and since the web application shortcut generation device provided in the embodiment of the present application corresponds to the web application shortcut generation methods provided in the foregoing embodiments, the implementation manner of the web application shortcut generation method described above is also applicable to the web application shortcut generation device provided in this embodiment, and will not be described in detail in this embodiment. Fig. 6 is a schematic structural diagram of a shortcut generation apparatus for a web application according to an embodiment of the present application. As shown in fig. 6, the shortcut generation apparatus 600 for web application may include: a first obtaining module 610, a judging module 620, a first generating module 630 and an adding module 640.
Specifically, the first obtaining module 610 is configured to obtain identification information of a webpage currently accessed by a user.
The judging module 620 is configured to judge whether to trigger adding of a desktop shortcut for a web page according to the identification information. As an example implementation manner, the determining module 620 may determine whether the identification information exists in a pre-established database, and if so, trigger to add a desktop shortcut to the web page. In the embodiment of the application, the database contains identification information of the webpage to which the shortcut of the webpage application program is to be added.
The first generating module 630 is configured to generate shortcut information of a web application for a web page when a desktop shortcut for the web page is triggered to be added. As an example implementation manner, as shown in fig. 7, the first generating module 630 may include: a first acquisition unit 631, a second acquisition unit 632, and a generation unit 633. The first obtaining unit 631 is configured to obtain metadata of a web page; the second obtaining unit 632 is configured to obtain and store icon information, theme color information, background color information, and shortcut title information for the web application from the metadata of the web page; the generating unit 633 is configured to generate shortcut information of the web application according to the icon information and the shortcut title information.
The adding module 640 is used for adding the shortcut information of the web application to the desktop of the terminal device operating system.
In order to improve the use experience of the user, a distribution capability of the web application may be provided, so that the H5 page has a web APP capability that is experienced better than the Native APP, and further, in an embodiment of the present application, as shown in fig. 8, the apparatus 600 for generating a shortcut of the web application may further include: a creation module 650, a second acquisition module 660, a second generation module 670, and a loading module 680. The creating module 650 is configured to create a task stack for the web application when a click operation of the user for the shortcut information of the web application is received; the second obtaining module 660 is configured to obtain icon information, theme color information, background color information, and shortcut title information of the stored web application through the task stack; the second generating module 670 is configured to generate a start page of the web application according to the icon information, the theme color information, the background color information, and the shortcut title information through the task stack, and provide the start page to the user; the loading module 680 is configured to load and render a first screen page of the web application through the task stack after the start page is completed.
In order to further enhance the user experience, a prompt message may be popped up for the user to prompt whether the user needs to add the shortcut information of the web application to the system desktop, and further, in an embodiment of the present application, as shown in fig. 9, the apparatus 600 for generating a shortcut of a web application may further include: a third generating module 690, the third generating module 690 is configured to generate a prompt box for adding a web application shortcut of a web page and provide the prompt box to a user before generating the shortcut information of the web application for the web page. In an embodiment of the present application, the first generating module 630 is further configured to: and when a confirmation instruction for adding the webpage application program shortcut, which is input by a user through the prompt box, is received, generating shortcut information of the webpage application program.
The shortcut generation device of the webpage application program of the embodiment of the application can acquire the identification information of the webpage currently visited by a user, judge whether to trigger the addition of the desktop shortcut aiming at the webpage according to the identification information, if so, generate the shortcut information of the webpage application program aiming at the webpage, and add the shortcut information of the webpage application program to the desktop of the terminal equipment operating system, can actively control the generation of the webpage application shortcut in the whole process, does not need the user to analyze whether the shortcut of the webpage needs to be added to the system desktop, simplifies the operating steps of the user, has less interference to the user, has low learning cost, has high click rate of the addition shortcut, greatly shortens the re-visiting path of the webpage application, and can complete the installation process of the lightweight APP of the webpage according to the identification information of the currently visited webpage only when the user visits the corresponding H5 webpage, the use experience of the user is improved.
In order to implement the above embodiment, the present application further provides a terminal device.
Fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 10, the terminal device 1000 may include: the memory 1010, the processor 1020, and the computer program 1030 stored in the memory 1010 and operable on the processor 1020, when the processor 1020 executes the program 1030, the method for generating a shortcut of a web application according to any of the above embodiments of the present application is implemented.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the method for generating a shortcut to a web application according to any of the above embodiments of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (8)

1. A method for generating a shortcut of a web application is characterized by comprising the following steps:
acquiring identification information of a webpage currently visited by a user;
judging whether the identification information exists in a pre-established database, wherein the database comprises identification information of a webpage to which a shortcut of a webpage application program is to be added;
if so, generating shortcut information of the web application program for the web page, wherein the generating shortcut information of the web application program for the web page comprises the following steps:
acquiring metadata of the webpage;
acquiring and storing icon information, theme color information, background color information and shortcut title information aiming at the webpage application program from the metadata of the webpage;
generating shortcut information of the webpage application program according to the icon information and the shortcut title information;
adding the shortcut information of the webpage application program to a desktop of an operating system of the terminal equipment;
and when receiving a click operation of a user for shortcut information of the webpage application program, creating a task stack for the webpage application program.
2. The method of claim 1, wherein the method further comprises:
acquiring stored icon information, theme color information, background color information and shortcut title information of the webpage application program through the task stack;
generating a starting page of the webpage application program according to the icon information, the theme color information, the background color information and the shortcut title information through the task stack, and providing the starting page to the user;
and after the starting page is finished, loading and rendering a first screen page of the webpage application program through the task stack.
3. The method of any of claims 1-2, wherein prior to generating the shortcut information for the web application for the web page, the method further comprises:
generating a prompt box for adding the web page application program shortcut of the web page and providing the prompt box for the user;
and when a confirmation instruction for adding the shortcut of the webpage application program, which is input by the user through the prompt box, is received, generating shortcut information of the webpage application program.
4. A shortcut generation apparatus for a web application, comprising:
the first acquisition module is used for acquiring identification information of a webpage currently visited by a user;
the judging module is used for judging whether the identification information exists in a pre-established database, wherein the database comprises the identification information of the webpage to which the shortcut of the webpage application program is to be added;
a first generating module, configured to generate shortcut information of a web application for a web page when a desktop shortcut for the web page is triggered to be added, where the first generating module includes:
a first obtaining unit, configured to obtain metadata of the web page;
a second obtaining unit, configured to obtain and store icon information, theme color information, background color information, and shortcut title information for the web application from metadata of the web page;
the generating unit is used for generating shortcut information of the webpage application program according to the icon information and the shortcut title information;
the adding module is used for adding the shortcut information of the webpage application program to a desktop of an operating system of the terminal equipment;
and the creating module is used for creating a task stack aiming at the webpage application program when receiving the clicking operation of the user aiming at the shortcut information of the webpage application program.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the second acquisition module is used for acquiring the stored icon information, the theme color information, the background color information and the shortcut title information of the webpage application program through the task stack;
the second generation module is used for generating a starting page of the webpage application program according to the icon information, the theme color information, the background color information and the shortcut title information through the task stack and providing the starting page to the user;
and the loading module is used for loading and rendering the first screen page of the webpage application program through the task stack after the starting page is finished.
6. The apparatus of any of claims 4 to 5, further comprising:
the third generation module is used for generating a prompt box for adding the shortcut of the webpage application program of the webpage and providing the prompt box for the user before generating the shortcut information of the webpage application program of the webpage;
wherein the first generating module is further configured to: and when a confirmation instruction for adding the shortcut of the webpage application program, which is input by the user through the prompt box, is received, generating shortcut information of the webpage application program.
7. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the shortcut generation method for a web application according to any one of claims 1 to 3 when executing the program.
8. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the shortcut generation method for a web application according to any one of claims 1 to 3.
CN201711485734.3A 2017-12-30 2017-12-30 Method and device for generating shortcut of webpage application program and terminal equipment Active CN107957837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711485734.3A CN107957837B (en) 2017-12-30 2017-12-30 Method and device for generating shortcut of webpage application program and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711485734.3A CN107957837B (en) 2017-12-30 2017-12-30 Method and device for generating shortcut of webpage application program and terminal equipment

Publications (2)

Publication Number Publication Date
CN107957837A CN107957837A (en) 2018-04-24
CN107957837B true CN107957837B (en) 2021-08-20

Family

ID=61956438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711485734.3A Active CN107957837B (en) 2017-12-30 2017-12-30 Method and device for generating shortcut of webpage application program and terminal equipment

Country Status (1)

Country Link
CN (1) CN107957837B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776568B (en) * 2018-06-07 2023-04-14 腾讯科技(深圳)有限公司 Webpage display method, device, terminal and storage medium
CN110858114B (en) * 2018-08-22 2021-12-10 北京字节跳动网络技术有限公司 Webpage display method, bookmark generation method, device, equipment and medium on mobile terminal
CN111399928A (en) * 2018-12-14 2020-07-10 北京奇虎科技有限公司 Application program starting method and device, electronic equipment and readable storage medium
CN109992313A (en) * 2019-03-28 2019-07-09 连尚(新昌)网络科技有限公司 The method and apparatus of application program guidance based on desktop
CN110018765B (en) * 2019-04-09 2022-02-22 腾讯科技(深圳)有限公司 Page display method, device, terminal and storage medium
CN113641408A (en) * 2020-04-23 2021-11-12 百度在线网络技术(北京)有限公司 Method and device for generating shortcut entrance

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023990A (en) * 2009-09-17 2011-04-20 华为技术有限公司 Method, device and system for generating bookmarker
CN105677815A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Webpage bookmark addition method and terminal
CN106598617A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method for setting webpage shortcut, and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6819340B2 (en) * 2001-07-23 2004-11-16 Paul E. Burke Adding a shortcut to a web site

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023990A (en) * 2009-09-17 2011-04-20 华为技术有限公司 Method, device and system for generating bookmarker
CN105677815A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Webpage bookmark addition method and terminal
CN106598617A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method for setting webpage shortcut, and electronic equipment

Also Published As

Publication number Publication date
CN107957837A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
US9584612B2 (en) Systems and methods for pushing applications
EP2916243B1 (en) Method, apparatus, server and system for implementing web application
CN107832100B (en) APK plug-in loading method and terminal thereof
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
CN111666497B (en) Application program loading method and device, electronic equipment and readable storage medium
CN108062412B (en) Method and device for generating shortcut of webpage application program and terminal equipment
CN111475161B (en) Method, device and equipment for accessing component
CN107276842B (en) Interface test method and device and electronic equipment
CN105955833B (en) Engine calling method and device
CN110069739B (en) Page preloading method and device
CN104348919A (en) Method and device for downloading file and browser
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN110990733B (en) Page loading method and device, electronic equipment and medium
CN111338829B (en) Calling method and device for remote procedure call service
CN111212154A (en) Service binding method, device, terminal, server and storage medium
CN113010224A (en) Front-end micro-service method, device, computer equipment and storage medium
CN111898053A (en) Page browsing method, device, equipment and computer readable storage medium
CN110515631B (en) Method for generating application installation data packet, server and computer storage medium
CN108319474B (en) Page information generation method, device and equipment
CN112115056B (en) Project deployment method and device, server and storage medium
WO2019047677A1 (en) Application download source detection method and apparatus
CN110704041A (en) Software development method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant