CN111338542B - Shortcut generation method and device and computer readable storage medium - Google Patents

Shortcut generation method and device and computer readable storage medium Download PDF

Info

Publication number
CN111338542B
CN111338542B CN202010102533.6A CN202010102533A CN111338542B CN 111338542 B CN111338542 B CN 111338542B CN 202010102533 A CN202010102533 A CN 202010102533A CN 111338542 B CN111338542 B CN 111338542B
Authority
CN
China
Prior art keywords
shortcut
dialog box
application
screen
generation
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
CN202010102533.6A
Other languages
Chinese (zh)
Other versions
CN111338542A (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010102533.6A priority Critical patent/CN111338542B/en
Publication of CN111338542A publication Critical patent/CN111338542A/en
Application granted granted Critical
Publication of CN111338542B publication Critical patent/CN111338542B/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a method, an apparatus and a computer-readable storage medium for generating a shortcut, wherein the method comprises: responding to a shortcut generation instruction aiming at a target page in an application, and initiating a shortcut generation request aiming at a terminal system; monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut; if the first dialog box is not popped up on the screen, popping up a second dialog box on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete generation of the shortcut and display of the corresponding shortcut identification.

Description

Shortcut generation method and device and computer readable storage medium
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a shortcut, and a computer-readable storage medium.
Background
With the development of the intelligent all-in-one machine, the functions of the intelligent terminal are increasingly improved, and the intelligent terminal provides various application services for users by installing various application software. However, when the application is used, many functional pages commonly used by the user need to be opened through a long path, for example, after the user opens the application, the user may need to jump through multiple levels of pages to find the commonly used functional pages.
In order to solve the above problems, desktop shortcuts can be generated for the commonly used function pages, and a user can directly locate the corresponding function page through the desktop shortcuts.
Disclosure of Invention
The embodiment of the disclosure at least provides a method and a device for generating a shortcut and a computer-readable storage medium.
In a first aspect, an embodiment of the present disclosure provides a method for generating a shortcut, where the method includes:
responding to a shortcut generation instruction aiming at a target page in an application, and initiating a shortcut generation request aiming at a terminal system;
monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut;
if the first dialog box is not popped up on the screen, popping up a second dialog box on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete generation of the shortcut and display of the corresponding shortcut identification.
In one possible embodiment, the method further comprises:
after the terminal system generates a shortcut for the target page of the application, detecting that the application is started, and acquiring the position information of the shortcut identifier on the screen;
and determining whether the shortcut mark is positioned in a hotspot position area or not based on the position information.
In one possible embodiment, determining whether the shortcut identifier is located in a hotspot location area based on the location information comprises:
determining a distance between the shortcut identifier and the bottom of the screen based on the position coordinates indicated by the position information;
and if the determined distance is smaller than a set value, determining that the shortcut is located in a hot spot position area of the desktop.
In one possible embodiment, the method further comprises:
and displaying target prompt information on a target page of the application, wherein the target prompt information is used for prompting a user to set a shortcut identifier in the hotspot position area.
In one possible embodiment, the method further comprises:
and displaying target push information on the target page of the application after detecting that the shortcut identification corresponding to the target page is located in the hotspot position area.
In one possible implementation, whether the listening screen pops up the first dialog box includes:
monitoring whether a dialog box pops up on a screen;
if the dialog box pops up, analyzing whether the dialog box content in the popped dialog box comprises the first content;
and if the screen does not pop up the dialog box, or the dialog box content in the popped-up dialog box does not include the first content, determining that the first dialog box does not pop up on the screen.
In a possible implementation manner, the second dialog box further includes indication information indicating that the shortcut of the page is attempted to be generated.
In a possible implementation, after the second dialog box pops up on the screen, the method further includes:
and responding to the preset triggering operation aiming at the second content, and jumping to a page for setting the authority of generating the shortcut for the application in the terminal system.
In a second aspect, an apparatus for generating a shortcut is provided, the apparatus comprising:
the request initiating module is used for responding to a shortcut generation instruction aiming at a target page in the application and initiating a shortcut generation request aiming at a terminal system;
the monitoring module is used for monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut;
the guide module is used for popping up a second dialogue frame on the screen if the first dialogue frame is not popped up on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete generation of the shortcut and display of the corresponding shortcut identification.
In a possible embodiment, the apparatus further comprises:
the position determining module is used for detecting that the application is started after the terminal system generates the shortcut for the target page of the application, and acquiring the position information of the shortcut identifier on the screen; and determining whether the shortcut mark is positioned in a hotspot position area or not based on the position information.
In one possible implementation, the location determination module is configured to determine whether the shortcut identifier is located in a hotspot location area of the desktop based on the location information according to the following steps:
determining a distance between the shortcut identifier and the bottom of the screen based on the position coordinates indicated by the position information; and if the determined distance is smaller than a set value, determining that the shortcut is located in a hot spot position area of the desktop.
In a possible embodiment, the apparatus further comprises:
and the prompting module is used for displaying target prompting information on a target page of the application, wherein the target prompting information is used for prompting a user to set a shortcut identifier in the hotspot position area.
In a possible embodiment, the apparatus further comprises:
and the information pushing module is used for displaying target pushing information on the target page of the application after detecting that the shortcut identifier corresponding to the target page is located in the hot spot position area.
In a possible implementation manner, the listening module is specifically configured to listen whether the screen pops up the first dialog box according to the following steps:
monitoring whether a dialog box pops up on a screen; if the dialog box pops up, analyzing whether the dialog box content in the popped dialog box comprises the first content; and if the screen does not pop up the dialog box, or the dialog box content in the popped-up dialog box does not include the first content, determining that the first dialog box does not pop up on the screen.
In a possible implementation manner, the second dialog box further includes indication information indicating that the shortcut of the page is attempted to be generated.
In a possible embodiment, the apparatus further comprises:
and the jumping module is used for responding to preset triggering operation aiming at the second content after a second dialog box pops up on a screen, and jumping to a page for setting the authority of generating the shortcut for the application in the terminal system.
In a third aspect, a computer device is provided, which includes: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect or any possible implementation of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of the first aspect or any possible implementation of the first aspect.
After a shortcut generation request for a terminal system is initiated, whether a first dialog box for indicating whether a shortcut is generated or not is popped up or not is monitored, and whether a second dialog box for guiding generation of the shortcut is popped up or not is confirmed; on one hand, under the condition that the current application does not generate the authority of the shortcut, the user can be guided to quickly complete the authority setting of the application, so that the user can effectively create the shortcut, the creation power is improved, and the creation difficulty is reduced; on the other hand, if the first dialog box popped up from the screen is monitored, the fact that the current application has the authority of generating the shortcut can be confirmed, and at the moment, the guidance is not needed, so that the guidance process is saved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a flowchart illustrating a method for generating a shortcut provided by an embodiment of the present disclosure;
FIG. 2a is a diagram illustrating a functional entry for providing a shortcut for page generation in an application provided by an embodiment of the present disclosure;
FIG. 2b is a schematic diagram illustrating a prompt window popped up after entering a function entry by an application according to an embodiment of the present disclosure;
FIG. 3 illustrates a first dialog box diagram provided by an embodiment of the present disclosure;
FIG. 4a is a diagram illustrating a second dialog box provided by an embodiment of the present disclosure;
FIG. 4b is a schematic interface diagram illustrating a terminal system setting application authority to generate a shortcut according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating a hotspot location area of a system terminal according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a shortcut generation apparatus provided by an embodiment of the present disclosure;
fig. 7 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that when a user uses a functional page commonly used in an application, the user may need to jump through multiple levels of pages to find the commonly used functional page. In this case, the user may choose to create a shortcut for the function page to achieve quick access to the function page, that is, create a shortcut identifier (such as a shortcut icon) corresponding to the function page on the desktop of the terminal, and the function page can be directly located through the shortcut identifier. However, if the application does not currently have the shortcut generation permission, the user cannot successfully create the shortcut. Generally, a user needs to find a rights management page of an application at a terminal system, where a shortcut generation right of the application is set to "allow". However, in general, the path of the user setting the authority is unclear, and few users actively make such setting in advance, which results in no shortcut generation after the user triggers the shortcut generation button in the application.
Based on the above research, the embodiments of the present disclosure provide a method for generating a shortcut, and the implementation of the method may depend on an application in a terminal, that is, the embodiments of the present disclosure improve functions of the application. The generation of the shortcut is the function of the operating system (hereinafter referred to as terminal system) of the terminal, and if the application wants to generate the shortcut of the related function page, the application needs to call the shortcut generation function of the terminal system. After a shortcut generation request (namely calling a shortcut generation function) aiming at a terminal system is initiated, whether a second dialog box for guiding generation of the shortcut needs to be popped up or not is confirmed by monitoring whether a first dialog box for indicating a user to confirm whether the shortcut is generated or not is popped up or not on a screen; if the first dialog box popped up from the screen is monitored, the fact that the current application has the authority of generating the shortcut (here, the first dialog box is a dialog box popped up by the terminal system under the condition that the application has the authority of generating the shortcut) can be confirmed, at this moment, the guidance is not needed, the guidance process is saved, and the user knows that the current application has the authority of generating the shortcut; if the first dialog box popped up on the screen is not monitored, the current application generally does not have the authority of generating the shortcut; in some exceptional cases, the current application has the authority to generate the shortcut, but the first dialog box is intercepted, but generally, the user does not actively set the authority in advance, and a popup window for guiding the setting of the shortcut authority is popped up under the condition that the application cannot be confirmed to have the authority to generate the shortcut.
Based on the design, under the condition that the current application does not generate the shortcut permission, the user can be guided to quickly complete the permission setting of the application, in addition, if the screen is monitored to pop up the first dialog box, the current application can be confirmed to have the permission for generating the shortcut, and the guiding is not needed at the moment, so that the guiding process is saved.
It should be noted that the process of proposing and analyzing the above technical problems is the result of the inventor after practical and careful study, and therefore, the process of finding the above technical problems and the solution proposed by the embodiments of the present disclosure to the above technical problems should be the contribution of the inventor to the present disclosure in the process of the present disclosure.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the present disclosure, and it is obvious that the described embodiments are only some embodiments of the present disclosure, not all embodiments. The following detailed description of the embodiments of the present disclosure, provided in the accompanying drawings, is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
First, a shortcut generation method provided by the embodiment of the present disclosure is described in detail below, where an execution main body of the shortcut generation method provided by the embodiment of the present disclosure may be a terminal device with certain computing capability, the terminal device is installed with an application providing a shortcut generation function, the terminal device may implement the method of the embodiment of the present disclosure through the application, and the method may be implemented by a processor in the terminal device executing an execution instruction stored in a memory.
The following describes a shortcut generation method provided in the embodiments of the present disclosure by taking an execution subject as a terminal device as an example.
Referring to fig. 1, a flowchart of a shortcut generation method provided in an embodiment of the present disclosure includes:
s101: and responding to a shortcut generation instruction aiming at a target page in the application, and initiating a shortcut generation request aiming at a terminal system.
In particular implementations, the functionality of generating shortcuts may be provided for related function pages of an application. For example, as shown in fig. 2a, a function of generating a shortcut may be provided for a page of a certain applet in an application, and a button in a box in the drawing is a function entry for generating the shortcut; specifically, after the user triggers the button in the page, a prompt window pops up to prompt that the user can select "add to desktop" (or "add to home screen", etc., where the name of the button may be designed as required), and the popped up prompt window is as shown in fig. 2b, and if the user clicks the "add to desktop" button, it is equivalent to initiating a shortcut generation instruction. At this time, a shortcut generation request for the terminal system is initiated through the application, that is, a calling process of an interface for generating the shortcut provided by the terminal system is initiated.
S102: monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether the shortcut is generated or not under the condition that the terminal system confirms that the application has the right to generate the shortcut.
Here, the first dialog box pops up when the terminal system finds that the application has the authority to generate the shortcut when the application calls an interface provided by the terminal system to generate the shortcut. Therefore, the first dialog box is heard, representing that the current application has the right to generate a shortcut. As shown in fig. 3, a diagram of a first dialog box that pops up. The first dialog box is displayed with a cancel button and an add button (namely, first content), if a user clicks the cancel button, the generation of the shortcut is cancelled, if the user clicks the add button, the shortcut is created for the applied page, namely, a shortcut identifier corresponding to the page is generated on the desktop of the terminal, and the user can directly position the page by subsequently clicking the shortcut identifier.
In the above steps, after the terminal system receives the shortcut generation request, if the application is found to have the authority to generate the shortcut, a first dialog box pops up on the screen. Then, the application monitors whether the screen pops up the first dialog box to have two layers of meanings, firstly, the dialog box pops up, and secondly, the dialog box pops up to have the first content, so that the first dialog box is monitored. In some cases, the screen may not have the first dialog box with the first content although the dialog box pops up, for example, other pop-ups that may pop up temporarily, such as a pop-up window that prompts the update system, etc. In specific implementation, whether a dialog box pops up on a screen can be monitored firstly; if the dialog box pops up, analyzing the dialog box content displayed in the screen, and judging whether the dialog box content comprises the first content; and if the screen does not pop up the dialog box or the popped-up dialog box content does not comprise the first content, determining that the first dialog box does not pop up on the screen.
In specific implementation, after a dialog box is monitored to pop up on a screen, an API (application programming interface) of a system can be called to obtain popup contents of a popup, wherein the popup level is identified; at this time, the pop-up window content already generated by the system may include a plurality of pop-up window contents, and in order to avoid that it takes too long to parse the multi-layer pop-up window, the application parses only the top-layer pop-up window content, that is, the pop-up window content currently displayed in the screen (the pop-up window on the screen may exit when a condition (such as user triggering, reaching a display time threshold) is met). For example, in a special case, the application receives a system notification, which indicates that a popup window a appears currently, and the notified application is 10 minutes and 01 seconds at 10 o' clock, and then the application calls the API interface of the system for 10 minutes and 03 seconds to view the current topmost popup window, and may issue the popup window B again in the middle of 10 minutes and 02 seconds, so that the popup window B which is newly popped up is displayed in the screen at 10:03, and the content of the popup window B which is newly displayed in the screen is analyzed by the application.
Since the first dialog box is popped up after the terminal system confirms that the application has the authority to generate the shortcut, if the application monitors the first dialog box, the application can be considered to have the authority to generate the shortcut, and at this time, the step S103 is not required to be entered for setting the authority of the shortcut.
Whether the screen pops up the first dialog box or not and whether the application has the authority of generating the shortcut have a certain association relationship, but do not absolutely correspond. Taking the android system as an example, if the current application has the authority to generate the shortcut, the android system may select to pop up the first dialog box, but in implementation, if the first dialog box is intercepted, the first dialog box is not monitored at this time, and the authority to generate the shortcut is not represented.
If the first dialog box is not heard, it cannot be determined whether the application has the right to generate a shortcut at this time. In the case where the first dialog box is not monitored, the selection proceeds to S103 to guide the user to set the shortcut generation authority. In most cases, before the user triggers the shortcut generation instruction, the user does not actively set the system function in advance to open the authority of the application for generating the shortcut, so that the guidance of the authority of the shortcut generation is carried out under the condition that the application is not determined to have the authority of generating the shortcut, and the success rate of the shortcut creation can be improved on the whole.
S103: if the first dialog box is not popped up on the screen, popping up a second dialog box on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete the generation of the shortcut and the display of the corresponding shortcut identification.
In the embodiment of the present disclosure, in the case that the first dialog box is not monitored, the second dialog box pops up to guide the user to set the shortcut generation permission, as shown in fig. 4 a. Thereafter, in response to a preset trigger operation for the second content in the second dialog box, a page for setting the authority to generate the shortcut for the application in the terminal system may be skipped. For example, if the user clicks the "go to setup" button in the second dialog box, the user may jump to the right management page of the terminal system, and set the right of generating the shortcut corresponding to the current application, as shown in fig. 4 b. If the user selects the "know" button, then the user does not jump to the rights management page.
In one embodiment, the second dialog box further includes indication information indicating that the shortcut generation of the page has been attempted. Such as the top row of text "attempted to add to desktop" in figure 4 a.
As described above, some terminals may directly give the shortcut generation function when the application has the right to generate the shortcut, and the first dialog box is not popped up at this time. One embodiment of the present disclosure improves the content of the second dialog box by adding an indication that a shortcut of a page has been attempted to be generated, such as a textual description of "attempted to add to desktop," indicating that it is not necessarily the right to generate a shortcut. In this case, if the user has set the authority of the application before, it is known that the current application has the authority to generate the shortcut, and at this time, it is sufficient to trigger "know" to remove the second dialog box without triggering a "go to setup" button.
After the shortcut is successfully created, a shortcut identifier of a corresponding page, namely a shortcut icon, appears in the desktop, and a user can directly position a corresponding target page in the application by clicking the shortcut identifier. For some pages, the user may use a high degree of heat, and at this time, after the user creates a corresponding desktop shortcut, the user may drag the corresponding shortcut identifier to a hot spot location area of the desktop, as shown in fig. 5, the hot spot location area is also a location where a user frequently-used application icon is placed, and is generally the lowest location of the desktop. Dragging the shortcut mark to a hot spot position area of the desktop can ensure that all page cards of a user on the desktop can see the shortcut mark, and can further facilitate the user to open a corresponding target page.
In a specific implementation, target prompt information for prompting a user to set a shortcut identifier in a hotspot location area may be presented on a target page of an application. Here, the information of the prompt may include activity information that is derived by a user who sets the shortcut identifier of the target page in the hotspot location area. Such as discount offer information, reward information, etc., for a user who sets a shortcut identifier in a hotspot location area. Therefore, the attention degree of the user to the target page can be scheduled, and the utilization rate of the display resources in the target page is improved.
In specific implementation, after a terminal system generates a shortcut for the target page of the application, the terminal system detects that the application is started, and acquires the position information of the shortcut identifier on the screen; and determining whether the shortcut mark is positioned in a hotspot position area or not based on the position information. During detection of the shortcut, the distance between the position of the shortcut identifier on the desktop and the bottom of the screen can be determined based on the position coordinates indicated by the position information; and if the determined distance is smaller than a set value, determining that the shortcut mark is located in a hot spot position area of the desktop. The setting values herein may be preset, for example, setting values corresponding to different terminal sizes may be preset; alternatively, the calculation may be made by subtracting the upper-right Y2 coordinate value from the lower-right Y1 coordinate value of the shortcut identifier.
After the shortcut identification is determined to be located in the hot spot position area of the desktop, target push information can be displayed on a target page of the application; the target push information is configured for the user dragging the shortcut identifier to the hot spot position area of the desktop, such as hot spot information, discount offer information, red package reward, user personalized push information (for example, user attention content determined according to the functional area clicked by the user on the target page), and the like. The target push information has a greater attraction for users who drag shortcut identifiers to hot spot position areas of the desktop, so that the effectiveness of information display of the application can be improved, and the service capability and the service quality of the application are improved. In a specific implementation, after determining that the position of the shortcut identifier of the application is located in a hot spot location area of a desktop, the terminal may send a notification message to a server of the application, where the notification message carries user identifier information and indication information indicating that the position of the shortcut identifier of the page is dragged to the hot spot location area by a user, and at this time, the server configures the target push information for the user corresponding to the user identifier information and sends the target push information to the terminal (specifically, a client of the application installed in the terminal), and the terminal displays the target push information.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a shortcut generation device, a computer device and a computer-readable storage medium corresponding to the shortcut generation method are also provided in the embodiments of the present disclosure, and as the principle of solving the problem of the device, the computer device and the computer-readable storage medium in the embodiments of the present disclosure is similar to that of the shortcut generation method in the embodiments of the present disclosure, the implementation of the device, the computer device and the computer-readable storage medium can refer to the implementation of the method, and repeated parts are not described again.
As shown in fig. 6, a shortcut generation apparatus provided in an embodiment of the present disclosure includes:
a request initiating module 61, configured to respond to a shortcut generation instruction for a target page in an application, and initiate a shortcut generation request for a terminal system;
a monitoring module 62, configured to monitor whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut;
a guiding module 63, configured to pop up a second dialog box on the screen if the first dialog box is not popped up on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete generation of the shortcut and display of the corresponding shortcut identification.
In a possible embodiment, the apparatus further comprises:
a location determining module 64, configured to detect that the application is started after the terminal system generates a shortcut for the target page of the application, and obtain location information of the shortcut identifier on the screen; and determining whether the shortcut mark is positioned in a hotspot position area or not based on the position information.
In one possible implementation, the location determination module 64 is configured to determine whether the shortcut identifier is located in a hotspot location area of the desktop based on the location information according to the following steps:
determining a distance between the shortcut identifier and the bottom of the screen based on the position coordinates indicated by the position information; and if the determined distance is smaller than a set value, determining that the shortcut mark is located in a hot spot position area of the desktop.
In a possible embodiment, the apparatus further comprises:
and the prompting module 65 is configured to display target prompting information on a target page of the application, where the target prompting information is used to prompt a user to set a shortcut identifier in the hotspot location area.
In a possible embodiment, the apparatus further comprises:
and the information pushing module 66 is configured to, after detecting that the shortcut identifier corresponding to the target page is located in the hotspot location area, display target pushing information on the target page of the application.
In a possible implementation manner, the listening module 62 is specifically configured to listen whether the screen pops up the first dialog box according to the following steps:
monitoring whether a dialog box pops up on a screen; if the dialog box pops up, analyzing whether the dialog box content in the popped dialog box comprises the first content; and if the screen does not pop up the dialog box, or the dialog box content in the popped-up dialog box does not include the first content, determining that the first dialog box does not pop up on the screen.
In a possible implementation manner, the second dialog box further includes indication information indicating that the shortcut of the page is attempted to be generated.
In a possible embodiment, the apparatus further comprises:
and the skipping module 67 is used for responding to a preset triggering operation aiming at the second content after a second dialog box pops up on the screen, and skipping to a page for setting the authority of generating the shortcut for the application in the terminal system.
As shown in fig. 7, an embodiment of the present disclosure provides a computer device, including: a processor 71, a memory 72 and a bus 73, wherein the memory 72 stores machine-readable instructions executable by the processor 71, when a computer device runs, the processor 71 communicates with the memory 72 through the bus 73, and the machine-readable instructions are executed by the processor to perform the steps of the shortcut generation method, which are not described herein again.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the shortcut generation method in the above-mentioned method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the shortcut generation method provided in the embodiment of the present disclosure includes a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the steps of the shortcut generation method in the above method embodiment, which may be referred to in the above method embodiment specifically, and are not described herein again. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method for generating a shortcut, the method comprising:
responding to a shortcut generation instruction aiming at a target page in an application, and initiating a shortcut generation request aiming at a terminal system;
monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut;
if the first dialog box is not popped up on the screen, popping up a second dialog box on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete the generation of the shortcut and the display of the corresponding shortcut identification;
and responding to the preset triggering operation aiming at the second content, and jumping to a page for setting the authority of generating the shortcut for the application in the terminal system.
2. The method of claim 1, further comprising:
after the terminal system generates a shortcut for the target page of the application, detecting that the application is started, and acquiring the position information of the shortcut identifier on the screen;
and determining whether the shortcut mark is positioned in a hotspot position area or not based on the position information.
3. The method of claim 2, wherein determining whether the shortcut identifier is located in a hotspot location area based on the location information comprises:
determining a distance between the shortcut identifier and the bottom of the screen based on the position coordinates indicated by the position information;
and if the determined distance is smaller than a set value, determining that the shortcut is located in a hot spot position area of the desktop.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and displaying target prompt information on a target page of the application, wherein the target prompt information is used for prompting a user to set a shortcut identifier in the hotspot position area.
5. The method of claim 4, further comprising:
and displaying target push information on the target page of the application after detecting that the shortcut identification corresponding to the target page is located in the hotspot position area.
6. The method of claim 1, wherein listening whether the screen pops up the first dialog box comprises:
monitoring whether a dialog box pops up on a screen;
if the dialog box pop-up is monitored, analyzing whether dialog box contents in the dialog box displayed in the screen include the first contents or not;
and if the screen does not pop up the dialog box, or the dialog box content in the popped-up dialog box does not include the first content, determining that the first dialog box does not pop up on the screen.
7. The method of claim 1, wherein the second dialog box further comprises indication information indicating that a shortcut to the page has been attempted to be generated.
8. A shortcut generation apparatus, characterized in that said apparatus comprises:
the request initiating module responds to a shortcut generation instruction aiming at a target page in the application and initiates a shortcut generation request aiming at a terminal system;
the monitoring module is used for monitoring whether a first dialog box pops up on a screen; the first dialog box comprises first content which is generated by the terminal system in response to the shortcut generation request and indicates a user to confirm whether to generate a shortcut or not under the condition that the terminal system confirms that the application has the right to generate the shortcut;
the guide module is used for popping up a second dialogue frame on the screen if the first dialogue frame is not popped up on the screen; the second dialogue box comprises second content for guiding the user to open the shortcut generation permission of the application so as to complete the generation of the shortcut and the display of the corresponding shortcut identification;
and the skipping module is used for responding to the preset triggering operation aiming at the second content and skipping to a page for setting the authority of generating the shortcut for the application in the terminal system.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the shortcut generation method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the shortcut generation method according to any of claims 1 to 7.
CN202010102533.6A 2020-02-19 2020-02-19 Shortcut generation method and device and computer readable storage medium Active CN111338542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102533.6A CN111338542B (en) 2020-02-19 2020-02-19 Shortcut generation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102533.6A CN111338542B (en) 2020-02-19 2020-02-19 Shortcut generation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111338542A CN111338542A (en) 2020-06-26
CN111338542B true CN111338542B (en) 2021-08-17

Family

ID=71184420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102533.6A Active CN111338542B (en) 2020-02-19 2020-02-19 Shortcut generation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111338542B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016698A (en) * 2021-12-14 2022-09-06 荣耀终端有限公司 Display method of contact card and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034537A (en) * 2012-12-17 2013-04-10 北京奇虎科技有限公司 Method and device for executing quick operations in internet work operating system (IOS)
CN105867925A (en) * 2016-03-29 2016-08-17 联想(北京)有限公司 Shortcut establishing method and electronic device
CN107862204A (en) * 2017-07-26 2018-03-30 平安普惠企业管理有限公司 Method for page jump, mobile terminal and readable storage medium storing program for executing
CN107943369A (en) * 2017-11-30 2018-04-20 东软集团股份有限公司 A kind of method, apparatus, medium and the electronic equipment of authority application control management
CN107943531A (en) * 2017-11-03 2018-04-20 珠海市君天电子科技有限公司 A kind of authority control method, user terminal, electronic equipment and storage medium
CN109669748A (en) * 2018-11-30 2019-04-23 维沃移动通信有限公司 A kind of display interface processing method and mobile terminal
CN110018765A (en) * 2019-04-09 2019-07-16 腾讯科技(深圳)有限公司 Page display method, device, terminal and storage medium
CN110134869A (en) * 2019-05-16 2019-08-16 苏州达家迎信息技术有限公司 A kind of information-pushing method, device, equipment and storage medium
CN110703962A (en) * 2019-09-02 2020-01-17 维沃移动通信有限公司 Method and terminal for creating shortcut

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981873B (en) * 2017-12-27 2021-01-12 珠海市君天电子科技有限公司 Address book permission opening method and device and electronic equipment
CN110069724A (en) * 2019-03-15 2019-07-30 深圳壹账通智能科技有限公司 The quick jump method of application program, device, electronic equipment and storage medium
CN110046000B (en) * 2019-04-24 2022-03-11 上海连尚网络科技有限公司 Applet running method and device
CN110704123B (en) * 2019-09-04 2021-01-01 华东师范大学 Small program touch type interaction method based on NFC technology

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034537A (en) * 2012-12-17 2013-04-10 北京奇虎科技有限公司 Method and device for executing quick operations in internet work operating system (IOS)
CN105867925A (en) * 2016-03-29 2016-08-17 联想(北京)有限公司 Shortcut establishing method and electronic device
CN107862204A (en) * 2017-07-26 2018-03-30 平安普惠企业管理有限公司 Method for page jump, mobile terminal and readable storage medium storing program for executing
CN107943531A (en) * 2017-11-03 2018-04-20 珠海市君天电子科技有限公司 A kind of authority control method, user terminal, electronic equipment and storage medium
CN107943369A (en) * 2017-11-30 2018-04-20 东软集团股份有限公司 A kind of method, apparatus, medium and the electronic equipment of authority application control management
CN109669748A (en) * 2018-11-30 2019-04-23 维沃移动通信有限公司 A kind of display interface processing method and mobile terminal
CN110018765A (en) * 2019-04-09 2019-07-16 腾讯科技(深圳)有限公司 Page display method, device, terminal and storage medium
CN110134869A (en) * 2019-05-16 2019-08-16 苏州达家迎信息技术有限公司 A kind of information-pushing method, device, equipment and storage medium
CN110703962A (en) * 2019-09-02 2020-01-17 维沃移动通信有限公司 Method and terminal for creating shortcut

Also Published As

Publication number Publication date
CN111338542A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN108196930B (en) Application program processing method and device, storage medium and computer equipment
US9454411B2 (en) User-selectable progress bar threshold triggers and notification by detecting color change
CN108829487B (en) Popup window display method and device, storage medium and terminal
US20120166959A1 (en) Surfacing content including content accessed from jump list tasks and items
CN105573778B (en) Application program starting method and terminal
EP3955107B1 (en) Sub-application development method, apparatus, computer device, and storage medium
CN102934080A (en) Web application home button
WO2020088003A1 (en) Interaction method, apparatus and device
CN110609715A (en) Random option page display method and device, computer equipment and storage medium
CN111338542B (en) Shortcut generation method and device and computer readable storage medium
RU2639667C2 (en) Context invitation in trial version of application
CN109740041B (en) Webpage crawling method and device, storage medium and computer equipment
CN108668241B (en) Information reminding method and device, storage medium and electronic equipment
CN111966273A (en) Information display processing method and device
CN115129505A (en) Processing method and device for abnormal exit of application program
CN107948123B (en) File transmission method and device
CN110868347A (en) Message prompting method, device and system
CN111131440B (en) Resource scheduling method and device and server
AU2023210618A1 (en) System and method for providing a customisable graphical user interface for information technology assistance
CN109840113B (en) Application data processing method and equipment, storage medium and terminal thereof
CN115688102A (en) Window processing method and device, processor and electronic equipment
CN109558182A (en) Information popularization method, electronic equipment and computer storage medium based on plug-in unit
CN114237794A (en) Application available time duration display method, device, equipment and storage medium
CN108664253B (en) Application replacement method and device, storage medium and electronic equipment
CN114500426A (en) Message reminding method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.