CN113467862A - Desktop shortcut generation method and device, mobile terminal and storage medium - Google Patents

Desktop shortcut generation method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN113467862A
CN113467862A CN202010236869.1A CN202010236869A CN113467862A CN 113467862 A CN113467862 A CN 113467862A CN 202010236869 A CN202010236869 A CN 202010236869A CN 113467862 A CN113467862 A CN 113467862A
Authority
CN
China
Prior art keywords
function page
application program
instruction
desktop
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010236869.1A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010236869.1A priority Critical patent/CN113467862A/en
Publication of CN113467862A publication Critical patent/CN113467862A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application relates to a method and a device for generating a desktop shortcut, a mobile terminal and a storage medium. The method comprises the following steps: when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a uniquely identifiable protocol of the target application program; acquiring configuration information of the first target function page according to the creation instruction; and generating a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information. By adopting the method, the function page of the application program can be quickly accessed.

Description

Desktop shortcut generation method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a desktop shortcut, a mobile terminal, and a storage medium.
Background
With the rapid development of the mobile internet, the market share of the mobile terminal is higher and higher, and APP (Application program) is used as software installed in the mobile terminal to provide various services for users. In recent years, not only the types of APPs have been increasing, but also functions provided by the same APP have been increasing, and thus the number of function pages constituting an APP has been increasing.
When a user needs to access a functional page, the home page of the APP needs to be opened first, and another functional page is opened through the home page of the APP, but when the functional pages of the APP are many, the user needs to open a plurality of functional pages to enter the functional page needing to be accessed, which results in complex operation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for generating a desktop shortcut that can quickly access a function page of an application, a mobile terminal, and a storage medium.
A method for generating a desktop shortcut comprises the following steps:
when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a protocol uniquely identifiable to the target application program;
acquiring configuration information of a first target function page according to the creation instruction;
and generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information.
An apparatus for generating desktop shortcuts, the apparatus comprising:
the detection module is used for acquiring a first target function page corresponding to the creation instruction when the creation instruction is detected, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program;
the acquisition module is used for acquiring the configuration information of the first target function page according to the creation instruction;
and the creating module is used for generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information.
A mobile terminal comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a protocol uniquely identifiable to the target application program;
acquiring configuration information of a first target function page according to the creation instruction;
and generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a protocol uniquely identifiable to the target application program;
acquiring configuration information of a first target function page according to the creation instruction;
and generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information.
According to the method, the device, the mobile terminal and the storage medium for generating the desktop shortcut, when a creation instruction is detected, a first target function page corresponding to the creation instruction is obtained, the configuration information of the first target function page is obtained according to the creation instruction, and the desktop shortcut corresponding to the first target function page is generated on the desktop of the mobile terminal according to the configuration information, wherein the first target function page is a function page loaded in a target application program, and the protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program.
Drawings
FIG. 1 is a flowchart illustrating a method for generating desktop shortcuts in one embodiment;
FIG. 2 is a diagram of creating an icon in one embodiment;
FIG. 3 is a diagram of a protocol corresponding to an instruction in one embodiment;
FIG. 4 is a diagram of a desktop shortcut in one embodiment;
FIG. 5 is a diagram of a pop-up message in one embodiment;
FIG. 6 is a diagram of a hint message in one embodiment;
FIG. 7 is a diagram of a rights management interface in one embodiment;
FIG. 8 is a diagram of a pop-up message in another embodiment;
FIG. 9 is a diagram of a delete icon in one embodiment;
FIG. 10 is a schematic diagram of a delete icon in another embodiment;
FIG. 11 is a diagram of updating icons in one embodiment;
FIG. 12 is a diagram of an update icon in another embodiment;
FIG. 13 is a flowchart illustrating a method for generating desktop shortcuts in another embodiment;
FIG. 14 is a block diagram of an apparatus for generating desktop shortcuts in one embodiment;
fig. 15 is an internal structural view of a mobile terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a method for generating a desktop shortcut is provided, and this embodiment is illustrated by applying the method to a terminal, it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 102, when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a protocol uniquely identifiable by the target application program.
The creating instruction is used for creating a desktop shortcut of a function page of the application program. The application refers to software installed on the mobile terminal, such as WeChat APP, happy club APP, and the like. The function page is an operation interface of the application program, namely an instruction part designed to face an operator in software and used for operating use and feeding back information. The application program is composed of at least one function page, each function page can comprise function modules for realizing different functions, and the function modules are software modules which can realize specific functions in the application program. The function module is displayed in the function page through the visual identification, and the visual identification can be used as an operation inlet of the function module for an operator to use. The target application is an application that can recognize the creation instruction. The first target function page is a function page loaded in the target application program, and is a function page corresponding to the creation instruction.
In one embodiment, the creation instruction may be triggered by a create icon in the first target function page, the create icon being a visual identification of the creation of the desktop shortcut of the first target function page. The creation icon may be disposed at an arbitrary position in the first target function page. For example, as shown in FIG. 2, "Add to desktop" in FIG. 2 is the create icon. The user may trigger the create command by clicking, double clicking, long pressing the create icon, etc.
In one embodiment, the creation instruction may be triggered by preset behavior information, which may be sliding track information or the like. And comparing the sliding track information received in the first target function page with pre-stored sliding track information, and triggering a creation instruction when the received sliding track information is matched with the pre-stored sliding track information. Alternatively, a creation area for receiving input slide trace information may be provided in the first target function page.
In one embodiment, the instruction set of the target application is preset, which may include a create instruction, an update instruction, a delete instruction, a jump instruction, and the like. The updating instruction is used for updating the desktop shortcut of the function page of the application program, the deleting instruction is used for deleting the desktop shortcut of the function page of the application program, and the jumping instruction is used for jumping to the function page of the application program.
In one embodiment, the protocol corresponding to the instructions in the instruction set is a preset protocol, and the protocol is character information capable of being recognized and analyzed, such as a combination of numbers, letters and the like. The protocol may be uniquely identifiable to the target application, such as creating instructions, and only the target application may be identifiable while other applications may not be identifiable, and thus are not available for other applications.
In one embodiment, as shown in FIG. 3, the protocol to which the instruction corresponds may include application character information, function page class name, parameter character information, and the like. The application program character information is used for representing an application program to be operated, wherein the application program character information of the target application program has uniqueness; the functional page character information is used for representing a functional page to be operated, wherein each functional page of the target application program has unique functional page character information, the functional page character information and the functional page class name have a mapping relation, and the target application program can call the functional page class name to execute an action; the parameter character information is used for describing specific parameters for generating the desktop shortcut corresponding to the first target function page, and may be null or at least one.
In one embodiment, a route resolver is created in a target application program, and the route resolver is used for resolving a protocol corresponding to each instruction in an instruction set to obtain an instruction resolution result; further, the route resolver can also judge the integrity and the performability of the instruction resolving result, such as whether the protocol is a uniquely identifiable protocol of the target application program, whether the protocol comprises dynamic information of creation, updating, deletion and the like; when the instruction analysis result is judged to be complete and executable, the target application program executes the action corresponding to the instruction analysis result.
Specifically, when a creating instruction is detected, whether the creating instruction is a target Application program is identified according to Application program character information, when the creating instruction is identified as the target Application program, a first target function page corresponding to the creating instruction is determined according to function page character information, wherein a function page class name is determined according to a mapping relation between the function page character information and the function page class name, a creating intention is determined according to the function page class name and parameter character information, an Application Programming Interface (API) is called to start the creating intention, and a desktop shortcut corresponding to the first target function page can be generated.
In one embodiment, when the application program detects a creation instruction, the application program acquires a first target function page corresponding to the creation instruction.
And 104, acquiring the configuration information of the first target function page according to the creation instruction.
The configuration information is used for configuring and generating a desktop shortcut corresponding to the first target function page. The desktop shortcut is a visual identifier of a function page which is displayed on the desktop of the mobile terminal and can be quickly connected with the application program, and the visual identifier can be displayed in the form of an icon.
In one embodiment, the configuration information may include a picture of a desktop shortcut of the first target function page, a name of the desktop shortcut of the first target function page, an address of the target function page, a title of the target function page, and the like.
In one embodiment, the application program obtains configuration information of the first target function page according to the creation instruction.
And 106, generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information.
Specifically, as shown in fig. 4, fig. 4 is a schematic diagram of a desktop shortcut corresponding to a first target function page in an embodiment. The first target function page can be directly accessed through the desktop shortcut corresponding to the first target function page without opening the target application program first and then accessing the first target function page through a plurality of function pages.
In one embodiment, the application program generates a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information.
In the method for generating the desktop shortcut, when a creation instruction is detected, a first target function page corresponding to the creation instruction is obtained, the configuration information of the first target function page is obtained according to the creation instruction, and the desktop shortcut corresponding to the first target function page is generated on the desktop of the mobile terminal according to the configuration information, wherein the first target function page is a function page loaded in a target application program, and the protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program.
In one embodiment, before obtaining the configuration information of the first target function page according to the creation instruction, the method further includes: comparing the application program character information with preset application program character information; and when the character information of the application program is consistent with the preset character information of the application program, executing the step of acquiring the configuration information of the first target function page according to the creation instruction.
The protocol corresponding to the creating instruction comprises application program character information, the application program character information is used for representing an application program to be operated, and the preset application program character information is a unique identifier of a target application program.
Specifically, comparing the application program character information with preset application program character information, and if the application program character information is consistent with the preset application program character information, indicating that the instruction is oriented to a target application program and can be executed; if the application character information is not consistent with the preset application character information, the instruction is not oriented to the target application program and cannot be executed.
In this embodiment, the application program character information is compared with the preset application program character information, and when the application program character information is consistent with the preset application program character information, the configuration information of the first target function page is acquired according to the creation instruction, so that the security of instruction execution in the target application program is improved.
In one embodiment, obtaining configuration information of the first target function page according to the creation instruction includes: and determining the configuration information of the first target function page according to the parameter character information.
The protocol corresponding to the creation instruction includes parameter character information, where the parameter character information is used to describe specific parameters for generating a desktop shortcut corresponding to the first target function page, and may be null or at least one of the parameters, and the parameter character information may include: the picture character information of the desktop shortcut, the name character information of the desktop shortcut, the address character information of the target function page, the title character information of the target function page and the like.
In one embodiment, the picture of the desktop shortcut may be determined according to the picture character information of the desktop shortcut, the name of the desktop shortcut may be determined according to the name character information of the desktop shortcut, the address of the target function page may be determined according to the address character information of the target function page, the title of the target function page may be determined according to the title character information of the target function page, and thus the configuration information of the first target function page may be determined according to the parameter character information.
In the embodiment, the configuration information of the first target function page is determined according to the parameter character information, so that the accuracy of creating the desktop shortcut of the function page is improved.
In one embodiment, before generating a desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal according to the configuration information, the method further includes: and detecting whether the target application program has the authority of generating the desktop shortcut. In one embodiment, the method further comprises: and when the target application program does not have the authority for generating the desktop shortcut, outputting prompt information, wherein the prompt information is used for indicating the authority for starting the target application program to generate the desktop shortcut.
Specifically, some mobile terminals set the authority for generating the desktop shortcut to the third-party application, and when the target application does not have the authority for generating the desktop shortcut, prompt information is output to indicate the authority for opening the target application to generate the desktop shortcut.
In one embodiment, the prompt message may be presented in the form of a message pop-up box or a function page. The prompt information may only prompt the user to open the authority of the target application program for generating the desktop shortcut, or may include a method for opening the authority of the target application program for generating the desktop shortcut. Optionally, the prompt message may include a jump function module, and the jump function module is configured to jump to a function page where the authority of the desktop shortcut is set.
In one embodiment, when the target application does not have the right to generate a desktop shortcut, a popup message "attempted to add to desktop" is output, as shown in FIG. 5, and may also include a "return" icon and a "know details" icon. When the user selects the "back" icon, the action of adding to the desktop is cancelled; when the user selects the "know details" icon, that is, outputs the prompt information, which is shown in fig. 6, and the prompt information is used for indicating the authority for opening the target application to generate the desktop shortcut, the user can switch to the authority management page shown in fig. 7 according to the prompt information to open the authority for the target application to generate the desktop shortcut.
Further, when the target application has the right to generate a desktop shortcut, a popup message "add to home screen" is output, as shown in fig. 8, and may further include a "cancel" icon and an "add" icon. When the user selects the cancel icon, the action of adding to the desktop is cancelled; and when the user selects the 'adding' icon, the target application program generates a desktop shortcut corresponding to the target function page on the desktop of the mobile terminal according to the configuration information.
In this embodiment, whether the target application program has the authority for generating the desktop shortcut is detected, and when the target application program does not have the authority for generating the desktop shortcut, prompt information is output and used for indicating the authority for starting the target application program to generate the desktop shortcut, so that the situation that the desktop shortcut cannot be created when the target application program does not have the authority for generating the desktop shortcut is avoided.
In one embodiment, the method further comprises: when a deleting instruction is detected, acquiring a second target function page corresponding to the deleting instruction, wherein a protocol corresponding to the deleting instruction is a protocol uniquely identifiable to a target application program; and clearing the desktop shortcut corresponding to the second target function page on the desktop of the mobile terminal.
And the deleting instruction is used for deleting the desktop shortcut of the function page of the application program. The second target function page is a function page loaded in the target application program, and is a function page corresponding to the delete instruction.
In one embodiment, the delete instruction may be triggered by a delete icon in the second target function page. Alternatively, the deletion icon may be provided at an arbitrary position in the second target function page. For example, as shown in fig. 9, "delete" in fig. 9 is a delete icon. Optionally, the delete icon may be set on the desktop shortcut corresponding to the second target function page. For example, as shown in fig. 10, the deletion flag in fig. 10 is a deletion icon. The user can trigger the deletion instruction by clicking, double clicking, long pressing the deletion icon and the like.
In one embodiment, the deletion instruction may be triggered by preset behavior information, which may be sliding track information or the like. And comparing the sliding track information received in the second target function page with the pre-stored sliding track information, and triggering a deleting instruction when the received sliding track information is matched with the pre-stored sliding track information. Alternatively, a deletion area for receiving input slide trace information may be provided in the second target function page.
Specifically, when a deleting instruction is detected, whether the deleting instruction corresponds to a target application program is identified according to application program character information, when the deleting instruction corresponds to the target application program is identified, a second target function page corresponding to the deleting instruction is determined according to function page character information, wherein the function page class name is determined according to the mapping relation between the function page character information and the function page class name, a deleting intention is determined according to the function page class name and parameter character information, the API is called to start the deleting intention, and then desktop shortcuts corresponding to the second target function page can be cleared on a desktop of the mobile terminal.
In this embodiment, when the delete instruction is detected, the second target function page corresponding to the delete instruction is acquired, and the desktop shortcut corresponding to the second target function page is cleared on the desktop of the mobile terminal, so that the phenomenon that the redundant desktop shortcut interferes with the user operation is avoided.
In one embodiment, the method further comprises: when an updating instruction is detected, a third target function page corresponding to the updating instruction is obtained, and a protocol corresponding to the updating instruction is a protocol uniquely identifiable to a target application program; acquiring updating information according to the updating instruction; and updating the desktop shortcut corresponding to the third target function page on the desktop of the mobile terminal according to the updating information.
And the updating instruction is used for updating the desktop shortcut of the function page of the application program. The third target function page is a function page loaded in the target application program, and is a function page corresponding to the update instruction.
In one embodiment, the update instruction may be triggered by an update icon in the third target function page. Alternatively, the update icon may be provided at an arbitrary position in the third target function page. For example, as shown in fig. 11, "update" in fig. 11 is an update icon. Optionally, the update icon may be set on the desktop shortcut corresponding to the third target function page. For example, as shown in fig. 12, the update flag in fig. 12 is an update icon. The user can trigger the update instruction by clicking, double clicking, long pressing the update icon and the like.
In one embodiment, the update instruction may be triggered by preset behavior information, which may be sliding track information or the like. And comparing the sliding track information received in the third target function page with the pre-stored sliding track information, and triggering an updating instruction when the received sliding track information is matched with the pre-stored sliding track information. Alternatively, an update area for receiving input slide track information may be provided in the third target function page.
In one embodiment, an update instruction may be generated periodically to update the desktop shortcut corresponding to the third target function page periodically.
In one embodiment, the update information may be determined according to parameter character information in a protocol corresponding to the update instruction, and the target application may obtain the parameter character information from the server. Specifically, when an update instruction is detected, whether the update instruction corresponds to a target application program is identified according to application program character information, when the update instruction corresponds to the target application program is identified, a third target function page corresponding to the update instruction is determined according to function page character information, wherein the function page class name is determined according to the mapping relation between the function page character information and the function page class name, an update intention is determined according to the function page class name and the parameter character information, the API is called to start the update intention, and then a desktop shortcut corresponding to the third target function page can be updated on a desktop of the mobile terminal.
In the embodiment, when the update instruction is detected, the third target function page corresponding to the update instruction is obtained, the update information is obtained according to the update instruction, and the desktop shortcut corresponding to the third target function page is updated on the desktop of the mobile terminal according to the update information, so that the variety of desktop shortcut display is enhanced.
In one embodiment, the method further comprises: and when the target application program is uninstalled, clearing the desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal.
In the embodiment, when the target application program is uninstalled, the desktop shortcut corresponding to the first target function page is cleared on the desktop of the mobile terminal, so that the rationality of desktop shortcut display is enhanced.
The application also provides an application scene, and the application scene applies the method for generating the desktop shortcut. Specifically, the method for generating the desktop shortcut is applied to the application scene as follows: when the user uses the target application program, the use times of one function page are more frequent. As shown in fig. 13, the method includes:
firstly, when a creating instruction is detected, the application program acquires a target function page corresponding to the creating instruction, wherein the target function page is a function page loaded in the target application program, and a protocol corresponding to the creating instruction is a protocol uniquely identifiable to the target application program.
And then, comparing the application program character information in the protocol corresponding to the creating instruction with the preset application program character information.
Further, when the character information of the application program is consistent with the character information of the preset application program, determining the configuration information of the target function page according to the parameter character information in the protocol corresponding to the creation instruction.
And then, detecting whether the target application program has the authority of generating the desktop shortcut.
Further, when the target application program does not have the authority for generating the desktop shortcut, prompt information is output, and the prompt information is used for indicating the authority for opening the target application program to generate the desktop shortcut.
And then, when the target application program has the right of generating the desktop shortcut, generating the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal according to the configuration information.
Further, after generating a desktop shortcut corresponding to the target function page on the desktop of the mobile terminal, when an update instruction is detected, the application program acquires the target function page corresponding to the update instruction, acquires update information according to the update instruction, and updates the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal according to the update information, wherein a protocol corresponding to the update instruction is a protocol uniquely identifiable to the target application program.
Or after generating a desktop shortcut corresponding to the target function page on the desktop of the mobile terminal, when detecting a deletion instruction, the application program acquires the target function page corresponding to the deletion instruction, and removes the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal, wherein the protocol corresponding to the deletion instruction is the only recognizable protocol of the target application program.
In the embodiment, the desktop shortcut is set for the function page of the application program, and the function page of the application program can be quickly accessed through the desktop shortcut of the function page, so that complicated operation is avoided; the exposure rate of the functional page is increased, and the information conversion rate of the functional page is further improved; the function page can be updated and deleted to set the desktop shortcut, so that the display diversity and the display rationality of the desktop shortcut are enhanced.
The application further provides an application scenario applying the method for generating the desktop shortcut. Specifically, the method for generating the desktop shortcut is applied to the application scene as follows: when the user uses the target application program, the number of times of use of one of the function pages is relatively frequent, and the function page is as shown in fig. 2. The function page has a create icon, i.e., "add to desktop" in fig. 2, set therein.
Firstly, clicking an icon of 'adding to a desktop', triggering a creation instruction, detecting the creation instruction by a target application program, and acquiring a target function page corresponding to the creation instruction, wherein the target function page is a function page loaded in the target application program, and a protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program.
And then, comparing the application program character information in the protocol corresponding to the creating instruction with the preset application program character information.
Further, when the character information of the application program is consistent with the character information of the preset application program, determining the configuration information of the target function page according to the parameter character information in the protocol corresponding to the creation instruction.
And then, detecting whether the target application program has the authority of generating the desktop shortcut.
Further, when the target application does not have the right to generate a desktop shortcut, as shown in FIG. 5, a popup message "attempted to add to desktop" is output, and may also include a "return" icon and a "know details" icon. When the user selects the "back" icon, the action of adding to the desktop is cancelled; when the user selects the "know details" icon, that is, outputs the prompt information, which is shown in fig. 6, and the prompt information is used to indicate the authority to open the target application to generate the desktop shortcut, the user can open the authority to generate the desktop shortcut of the target application to the authority management page shown in fig. 7 according to the prompt information.
Further, when the target application has the right to generate a desktop shortcut, a popup message "add to home screen" is output, as shown in fig. 8, and may further include a "cancel" icon and an "add" icon. When the user selects the cancel icon, the action of adding to the desktop is cancelled; when the user selects the "add" icon, the target application generates a desktop shortcut corresponding to a target function page on the desktop of the mobile terminal according to the configuration information, wherein the desktop shortcut corresponding to the target function page is shown in fig. 4.
Further, after generating the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal, as shown in fig. 11, the user clicks the "update" icon to trigger an update instruction, the application program obtains the target function page corresponding to the update instruction, obtains update information according to the update instruction, and updates the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal according to the update information, wherein a protocol corresponding to the update instruction is a uniquely identifiable protocol of the target application program.
Or after generating the desktop shortcut corresponding to the target function page on the desktop of the mobile terminal, as shown in fig. 9, the user clicks the "delete" icon to trigger a delete instruction, the application program obtains the target function page corresponding to the delete instruction, and the desktop shortcut corresponding to the target function page is removed on the desktop of the mobile terminal, wherein the protocol corresponding to the delete instruction is the only recognizable protocol of the target application program.
In the embodiment, the desktop shortcut is set for the function page of the application program, and the function page of the application program can be quickly accessed through the desktop shortcut of the function page, so that complicated operation is avoided; the exposure rate of the functional page is increased, and the information conversion rate of the functional page is further improved; the function page can be updated and deleted to set the desktop shortcut, so that the display diversity and the display rationality of the desktop shortcut are enhanced.
It should be understood that although the various steps in the flowcharts of fig. 1 and 13 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 13 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 14, there is provided a device for generating a desktop shortcut, which may be a part of a mobile terminal using a software module or a hardware module, or a combination of the two modules, and specifically includes: a detection module 1402, an acquisition module 1404, and a creation module 1406, wherein:
the detection module 1402 is configured to, when the creation instruction is detected, obtain a first target function page corresponding to the creation instruction, where the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program;
an obtaining module 1404, configured to obtain configuration information of the first target function page according to the creation instruction;
a creating module 1406, configured to generate a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information.
In the device for generating the desktop shortcut, when a creation instruction is detected, a first target function page corresponding to the creation instruction is obtained, the configuration information of the first target function page is obtained according to the creation instruction, and the desktop shortcut corresponding to the first target function page is generated on the desktop of the mobile terminal according to the configuration information, wherein the first target function page is a function page loaded in a target application program, and the protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program.
In one embodiment, the protocol to which the creation instruction corresponds includes application character information; the generation device of the desktop shortcut further comprises a comparison module and an execution module, wherein the comparison module is used for: comparing the application program character information with preset application program character information; an execution module to: and when the character information of the application program is consistent with the preset character information of the application program, executing the step of acquiring the configuration information of the first target function page according to the creation instruction.
In this embodiment, the application program character information is compared with the preset application program character information, and when the application program character information is consistent with the preset application program character information, the configuration information of the first target function page is acquired according to the creation instruction, so that the security of instruction execution in the target application program is improved.
In one embodiment, the protocol to which the create instruction corresponds includes parameter character information; an obtaining module 1404, further configured to: and determining the configuration information of the first target function page according to the parameter character information.
In the embodiment, the configuration information of the first target function page is determined according to the parameter character information, so that the accuracy of creating the desktop shortcut of the function page is improved.
In one embodiment, the detection module 1402 is further configured to: detecting whether a target application program has the authority of generating a desktop shortcut; the desktop shortcut generation device further comprises an output module, and the output module is used for: and when the target application program does not have the authority for generating the desktop shortcut, outputting prompt information, wherein the prompt information is used for indicating the authority for starting the target application program to generate the desktop shortcut.
In this embodiment, whether the target application program has the authority for generating the desktop shortcut is detected, and when the target application program does not have the authority for generating the desktop shortcut, prompt information is output and used for indicating the authority for starting the target application program to generate the desktop shortcut, so that the situation that the desktop shortcut cannot be created when the target application program does not have the authority for generating the desktop shortcut is avoided.
In one embodiment, the obtaining module 1404 is further configured to: when a deleting instruction is detected, acquiring a second target function page corresponding to the deleting instruction, wherein a protocol corresponding to the deleting instruction is a protocol uniquely identifiable to a target application program; the desktop shortcut generation device further comprises a deletion module, and the deletion module is used for: and clearing the desktop shortcut corresponding to the second target function page on the desktop of the mobile terminal.
In this embodiment, when the delete instruction is detected, the second target function page corresponding to the delete instruction is acquired, and the desktop shortcut corresponding to the second target function page is cleared on the desktop of the mobile terminal, so that the phenomenon that the redundant desktop shortcut interferes with the user operation is avoided.
In one embodiment, the obtaining module 1404 is further configured to: when an updating instruction is detected, a third target function page corresponding to the updating instruction is obtained, and a protocol corresponding to the updating instruction is a protocol uniquely identifiable to a target application program; an obtaining module 1404, further configured to: acquiring updating information according to the updating instruction; the device for generating the desktop shortcut further comprises an updating module, wherein the updating module is used for: and updating the desktop shortcut corresponding to the third target function page on the desktop of the mobile terminal according to the updating information.
In the embodiment, when the update instruction is detected, the third target function page corresponding to the update instruction is obtained, the update information is obtained according to the update instruction, and the desktop shortcut corresponding to the third target function page is updated on the desktop of the mobile terminal according to the update information, so that the variety of desktop shortcut display is enhanced.
In one embodiment, the apparatus for generating a desktop shortcut further includes a clearing module, where the clearing module is configured to: and when the target application program is uninstalled, clearing the desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal.
In the embodiment, when the target application program is uninstalled, the desktop shortcut corresponding to the first target function page is cleared on the desktop of the mobile terminal, so that the rationality of desktop shortcut display is enhanced.
For specific definition of the desktop shortcut generation device, reference may be made to the above definition of the desktop shortcut generation method, which is not described herein again. The modules in the device for generating the desktop shortcut can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the mobile terminal, and can also be stored in a memory in the mobile terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a mobile terminal is provided, the internal structure of which may be as shown in fig. 15. The mobile terminal comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the mobile terminal is configured to provide computing and control capabilities. The memory of the mobile terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the mobile terminal is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for generating desktop shortcuts. The display screen of the mobile terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the mobile terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the mobile terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is only a block diagram of a portion of the architecture associated with the present solution and does not constitute a limitation on the mobile terminal to which the present solution applies, and that a particular mobile terminal may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a mobile terminal is further provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for generating a desktop shortcut, the method comprising:
when a creating instruction is detected, acquiring a first target function page corresponding to the creating instruction, wherein the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creating instruction is a uniquely identifiable protocol of the target application program;
acquiring configuration information of the first target function page according to the creation instruction;
and generating a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information.
2. The method of claim 1, wherein the protocol corresponding to the creation instruction comprises application character information;
before the obtaining the configuration information of the first target function page according to the creating instruction, the method further includes:
comparing the application program character information with preset application program character information;
and when the character information of the application program is consistent with the character information of the preset application program, executing the step of acquiring the configuration information of the first target function page according to the creation instruction.
3. The method of claim 1, wherein the protocol corresponding to the create instruction comprises parameter character information;
the obtaining of the configuration information of the first target function page according to the creation instruction includes:
and determining the configuration information of the first target function page according to the parameter character information.
4. The method according to claim 1, wherein before generating a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information, the method further comprises:
detecting whether the target application program has the authority of generating the desktop shortcut;
the method further comprises the following steps:
and when the target application program does not have the authority for generating the desktop shortcut, outputting prompt information, wherein the prompt information is used for indicating the authority for starting the target application program to generate the desktop shortcut.
5. The method of claim 1, further comprising:
when a deleting instruction is detected, acquiring a second target function page corresponding to the deleting instruction, wherein a protocol corresponding to the deleting instruction is a protocol uniquely identifiable to the target application program;
and clearing the desktop shortcut corresponding to the second target function page on the desktop of the mobile terminal.
6. The method of claim 1, further comprising:
when an updating instruction is detected, acquiring a third target function page corresponding to the updating instruction, wherein a protocol corresponding to the updating instruction is a protocol uniquely identifiable to the target application program;
acquiring updating information according to the updating instruction;
and updating the desktop shortcut corresponding to the third target function page on the desktop of the mobile terminal according to the updating information.
7. The method of claim 1, further comprising:
and when the target application program is uninstalled, clearing the desktop shortcut corresponding to the first target function page on the desktop of the mobile terminal.
8. An apparatus for generating desktop shortcuts, the apparatus comprising:
the system comprises a detection module, a processing module and a processing module, wherein the detection module is used for acquiring a first target function page corresponding to a creation instruction when the creation instruction is detected, the first target function page is a function page loaded in a target application program, and a protocol corresponding to the creation instruction is a protocol uniquely identifiable to the target application program;
the acquisition module is used for acquiring the configuration information of the first target function page according to the creation instruction;
and the creating module is used for generating a desktop shortcut corresponding to the first target function page on a desktop of the mobile terminal according to the configuration information.
9. A mobile terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010236869.1A 2020-03-30 2020-03-30 Desktop shortcut generation method and device, mobile terminal and storage medium Pending CN113467862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236869.1A CN113467862A (en) 2020-03-30 2020-03-30 Desktop shortcut generation method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236869.1A CN113467862A (en) 2020-03-30 2020-03-30 Desktop shortcut generation method and device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113467862A true CN113467862A (en) 2021-10-01

Family

ID=77864871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236869.1A Pending CN113467862A (en) 2020-03-30 2020-03-30 Desktop shortcut generation method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113467862A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237755A (en) * 2021-12-20 2022-03-25 百度在线网络技术(北京)有限公司 Application running method and device, electronic equipment and storage medium
CN114253441A (en) * 2021-11-30 2022-03-29 青岛海尔科技有限公司 Target function starting method and device, storage medium and electronic device
CN116700853A (en) * 2022-09-22 2023-09-05 荣耀终端有限公司 Page display method, device, terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253441A (en) * 2021-11-30 2022-03-29 青岛海尔科技有限公司 Target function starting method and device, storage medium and electronic device
CN114253441B (en) * 2021-11-30 2023-12-19 青岛海尔科技有限公司 Method and device for enabling target function, storage medium and electronic device
CN114237755A (en) * 2021-12-20 2022-03-25 百度在线网络技术(北京)有限公司 Application running method and device, electronic equipment and storage medium
CN116700853A (en) * 2022-09-22 2023-09-05 荣耀终端有限公司 Page display method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
JP7146927B2 (en) Application program processing method, apparatus, storage medium and computer device
CN108984225B (en) Method and device for quickly starting hosted application
CN110417988B (en) Interface display method, device and equipment
CN113467862A (en) Desktop shortcut generation method and device, mobile terminal and storage medium
TWI671677B (en) Interactive processing method and device
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN109074278B (en) Validating stateful dynamic links in mobile applications
JP7106001B2 (en) SUB-APPLICATION DEVELOPMENT METHOD, APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM
WO2017172659A1 (en) Enabling stateful dynamic links in mobile applications
CN104346075A (en) Method for processing screenshots and client
CN111176543A (en) Method, device, computer equipment and storage medium for realizing electronic signature
CN112433712A (en) Report display method and device, computer equipment and storage medium
CN110134656A (en) Page control method, device, computer readable storage medium and computer equipment
CN111309622A (en) Application program testing method and device, terminal equipment and storage medium
CN107102937B (en) User interface testing method and device
CN112258295A (en) Recording processing method, device and equipment
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN113342629B (en) Operation track restoration method and device, computer equipment and storage medium
CN111190574B (en) Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly
CN108664253B (en) Application replacement method and device, storage medium and electronic equipment
CN114020589A (en) Embedded point processing method and device, computer equipment and storage medium
CN112700341A (en) One-way friend detection method, device and medium for social account and computer equipment
CN111045672B (en) Interface component setting method, computer device and storage medium
CN113672826A (en) Page jump method, device, computer equipment and storage medium
CN111506379A (en) Interface control method and device, storage medium and electronic equipment

Legal Events

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