Disclosure of Invention
The embodiment of the disclosure provides a new technical scheme based on the above problem, and can realize direct skip from a first application program to a designated page in a local second application program which sends shared content to the first application program, so that the operation is simple and efficient, and the user experience is favorably improved.
In view of this, according to a first aspect of the embodiments of the present disclosure, a page jump method for an application is provided, where the page jump method is used for a terminal device, and includes: when the first application program receives the shared content sent by the second application program and receives an instruction for entering the second application program to view the shared content, link information of the shared content is obtained, wherein the link information comprises a content source identifier and a copy timestamp; copying and storing the link information to a preset storage area of the terminal equipment; skipping from the first application program to the second application program according to the content source identification, and acquiring a current timestamp entering the second application program to determine an interval time between the current timestamp and the copy timestamp; and determining whether to open the designated page where the shared content is located in the second application program according to the state and the interval time of the second application program in the terminal equipment.
In the technical scheme, when a user needs to call up a second application program sending shared content to the user through a first application program in a terminal device and jump to the second application program to view a detailed page of the shared content, link information of the shared content can be obtained in the first application program and copied and stored into a preset storage area of the terminal device, wherein the link information of the shared content mainly comprises a content source identifier for identifying a source of the shared content and a copy timestamp for obtaining the content source identifier, the user can jump from the first application program to the second application program according to the content source identifier and record a current timestamp presented after entering the second application program, then an interval time between the current timestamp and the copy timestamp can be determined, and further whether the user needs to open the second application program in the second application program or not can be determined according to the state of the second application program in the terminal device and the interval time The designated page where the shared content sent by the first application program is located can determine whether to open the detailed page of the shared content according to specific conditions after the second application program is called by the first application program and direct jump is realized, so that the operation is simple and efficient, and the user experience is favorably improved.
The first application may specifically be a social application, and for example, the social application includes: a WeChat application, a QQ application, etc., and the second application may include other applications besides the first application itself that receives the shared content, such as a bean application, a know-you application, etc.; of course, the first application may also be other applications besides the social-type application and the second application.
In the foregoing technical solution, preferably, the step of determining whether to open the designated page where the shared content is located in the second application according to the state and the interval time of the second application in the terminal device includes: setting effective time corresponding to the state of the second application program in the terminal equipment; judging whether the interval time is greater than or equal to the effective time or not; if so, opening a home page of the second application program, otherwise, opening a specified page where the shared content is located in the second application program.
In the technical solution, when it is determined whether to open the specified page where the shared content sent to the first application program is located in the second application program according to the state of the second application program in the terminal device and the determined interval time, it may be determined according to a size relationship between the interval time and a set effective time, where the effective time corresponds to the state of the second application program in the terminal device, so that accuracy of the comparison result may be ensured, thereby ensuring accuracy of an execution result of whether to open the specified page where the shared content is located in the second application program, that is, when the interval time from a time when the first application program calls up the second application program (i.e., the copy timestamp) to a time when the first application program jumps into the second application program (i.e., the current timestamp), it indicates that the required time for the user to open the detailed page where the shared content is too long is exceeded, and at the moment, the user only needs to enter a home page staying in the second application program, otherwise, the user directly jumps to enter a detailed page of the shared content in the second application program, and the direct jump from the first application program to a specified page in the local second application program which sends the shared content to the first application program is realized.
In any of the above technical solutions, preferably, the state of the second application in the terminal device includes: a background running state, a process closing state and a state to be installed.
In this technical solution, the state of the second application program in the terminal device mainly includes: the first application program can be used for calling the background running state which is easy to call, and the time length of the corresponding effective time setting can be relatively short; when the first application program is called up, the process closing state entering the running state needs to be restarted, and the time length of the corresponding effective time setting can be relatively longer; when the first application program is called, the state to be installed of the second application program needs to be carried out in the terminal equipment, namely the second application program which is not installed before the terminal equipment needs to be installed and then operated, the time length of the corresponding effective time setting can be relatively longer, and therefore the requirement that the second application program is called under different scenes is met.
In any of the above technical solutions, preferably, the content source identifier includes naming structure information of a uniform resource identifier; and the preset storage area comprises a clipboard of the terminal equipment.
In the technical Scheme, when a second application program is called up through a first application program, the second application program can be located through the naming structure information (namely, uri (uniform Resource identifier) Scheme) of the uniform Resource identifier of the shared content, which is beneficial to realizing accurate and efficient skip; further specifically, the clipboard in the terminal device can be used as a bridge for jump switching between the first application program and the second application program which sends the shared content to the first application program, so that direct jump from the first application program to a designated page in the local second application program which sends the shared content to the first application program is effectively realized, the operation is simple and efficient, the user experience is favorably improved, and the content in the clipboard is further stored in the memory of the terminal device.
According to a second aspect of the embodiments of the present disclosure, a page jump apparatus of an application is provided, where the page jump apparatus is used for a terminal device, and includes: the acquisition module is used for acquiring link information of the shared content when the first application program receives the shared content sent by the second application program and receives an instruction for entering the second application program to view the shared content, wherein the link information comprises a content source identifier and a copy timestamp; the storage module is used for copying and storing the link information acquired by the acquisition module to a preset storage area of the terminal equipment; the processing module is used for jumping from the first application program to the second application program according to the content source identification and acquiring a current timestamp entering the second application program so as to determine the interval time between the current timestamp and the copying timestamp; and the determining module is used for determining whether to open the specified page where the shared content is located in the second application program according to the state and the interval time of the second application program in the terminal equipment.
In the technical scheme, when a user needs to call up a second application program sending shared content to the user through a first application program in a terminal device and jump to the second application program to view a detailed page of the shared content, link information of the shared content can be obtained in the first application program and copied and stored into a preset storage area of the terminal device, wherein the link information of the shared content mainly comprises a content source identifier for identifying a source of the shared content and a copy timestamp for obtaining the content source identifier, the user can jump from the first application program to the second application program according to the content source identifier and record a current timestamp presented after entering the second application program, then an interval time between the current timestamp and the copy timestamp can be determined, and further whether the user needs to open the second application program in the second application program or not can be determined according to the state of the second application program in the terminal device and the interval time The designated page where the shared content sent by the first application program is located can determine whether to open the detailed page of the shared content according to specific conditions after the second application program is called by the first application program and direct jump is realized, so that the operation is simple and efficient, and the user experience is favorably improved.
The first application may specifically be a social application, and for example, the social application includes: a WeChat application, a QQ application, etc., and the second application may include other applications besides the first application itself that receives the shared content, such as a bean application, a know-you application, etc.; of course, the first application may also be other applications besides the social-type application and the second application.
In the above technical solution, preferably, the determining module includes: the setting submodule is used for setting effective time corresponding to the state of the second application program in the terminal equipment; the judging submodule is used for judging whether the interval time is greater than or equal to the effective time or not; and the control submodule is used for controlling to open a home page of the second application program when the judgment submodule judges that the home page is yes, and controlling to open a specified page where the shared content is located in the second application program when the judgment submodule judges that the home page is not.
In the technical solution, when it is determined whether to open the specified page where the shared content sent to the first application program is located in the second application program according to the state of the second application program in the terminal device and the determined interval time, it may be determined according to a size relationship between the interval time and a set effective time, where the effective time corresponds to the state of the second application program in the terminal device, so that accuracy of the comparison result may be ensured, thereby ensuring accuracy of an execution result of whether to open the specified page where the shared content is located in the second application program, that is, when the interval time from a time when the first application program calls up the second application program (i.e., the copy timestamp) to a time when the first application program jumps into the second application program (i.e., the current timestamp), it indicates that the required time for the user to open the detailed page where the shared content is too long is exceeded, and at the moment, the user only needs to enter a home page staying in the second application program, otherwise, the user directly jumps to enter a detailed page of the shared content in the second application program, and the direct jump from the first application program to a specified page in the local second application program which sends the shared content to the first application program is realized.
In any of the above technical solutions, preferably, the state of the second application in the terminal device includes: a background running state, a process closing state and a state to be installed.
In this technical solution, the state of the second application program in the terminal device mainly includes: the first application program can be used for calling the background running state which is easy to call, and the time length of the corresponding effective time setting can be relatively short; when the first application program is called up, the process closing state entering the running state needs to be restarted, and the time length of the corresponding effective time setting can be relatively longer; when the first application program is called, the state to be installed of the second application program needs to be carried out in the terminal equipment, namely the second application program which is not installed before the terminal equipment needs to be installed and then operated, the time length of the corresponding effective time setting can be relatively longer, and therefore the requirement that the second application program is called under different scenes is met.
In any of the above technical solutions, preferably, the content source identifier includes naming structure information of a uniform resource identifier; and the preset storage area comprises a clipboard of the terminal equipment.
In the technical Scheme, when a second application program is called up through a first application program, the second application program can be positioned through the naming structure information (namely URI Scheme) of the uniform resource identifier of the shared content, and accurate and efficient skipping is facilitated; further specifically, the clipboard in the terminal device can be used as a bridge for jump switching between the first application program and the second application program which sends the shared content to the first application program, so that direct jump from the first application program to a designated page in the local second application program which sends the shared content to the first application program is effectively realized, the operation is simple and efficient, the user experience is favorably improved, and the content in the clipboard is further stored in the memory of the terminal device.
According to a third aspect of the embodiments of the present disclosure, a computer device is provided, where the computer device includes a processor, and the processor is configured to implement, when executing a computer program stored in a memory, the steps of the page jump method for an application program according to any one of the above-mentioned solutions of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the page jump method of the application program according to any one of the above-mentioned technical solutions of the first aspect.
According to the technical scheme of the embodiment of the disclosure, the clipboard in the terminal device is used as a bridge for switching the jump between the first application program and the second application program which sends the shared content to the first application program, so that the direct jump from the first application program to the designated page in the local second application program which sends the shared content to the first application program can be effectively realized, the operation is simple and efficient, and the user experience is favorably improved.
Detailed Description
In order that the above objects, features and advantages of the embodiments of the present disclosure may be more clearly understood, embodiments of the present disclosure are described in further detail below with reference to the accompanying drawings and detailed description. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure, however, the embodiments of the disclosure may be practiced in other ways than those described herein, and therefore the scope of the embodiments of the disclosure is not limited by the specific embodiments disclosed below.
The following describes the page jump method of the application program according to the embodiment of the present disclosure in detail with reference to fig. 1 and fig. 2.
As shown in fig. 1, the page jump method for an application program of a terminal device according to the embodiment of the present disclosure specifically includes the following steps:
step S10, when the first application receives the shared content sent by the second application and receives an instruction to enter the second application to view the shared content, acquiring link information of the shared content, where the link information includes a content source identifier and a copy timestamp.
It is to be understood that the first application may specifically be a social application, such as including: a WeChat application, a QQ application, etc., and the second application may include other applications besides the first application itself that receives the shared content, such as a bean application, a know-you application, etc.; of course, the first application may also be other applications besides the social-type application and the second application.
In step S20, the link information is copied and stored to a preset storage area of the terminal device.
Step S30, jump from the first application to the second application according to the content source identifier, and obtain the current timestamp of the second application, so as to determine the time interval between the current timestamp and the copy timestamp.
Step S40, determining whether to open the designated page where the shared content is located in the second application according to the state of the second application in the terminal device and the interval time.
In this embodiment, when a user needs to invoke a second application program sending shared content to the user through a first application program in a terminal device and jump to the second application program to view a detailed page of the shared content, link information of the shared content may be first obtained in the first application program and copied and stored into a preset storage area of the terminal device, where the link information of the shared content mainly includes a content source identifier for identifying a source of the content and a copy time stamp when the content source identifier is obtained, further, the user may jump from the first application program to the second application program according to the content source identifier, and record a current time stamp presented after entering the second application program, and then may determine an interval time between the current time stamp and the copy time stamp, and further determine whether the user needs to open the second application program in the second application program to the first application program according to a state of the second application program and the interval time of the second application program in the terminal device The designated page where the shared content sent by the application program is located can determine whether to open the detailed page of the shared content according to specific conditions after the second application program is called by the first application program and direct jump is realized, so that the operation is simple and efficient, and the user experience is favorably improved.
Further, in the above embodiment, the content source identifier includes the naming structure information of the uniform resource identifier, that is, when the second application is invoked by the first application, the second application can be located by the naming structure information (i.e., URI Scheme) of the uniform resource identifier of the shared content, which helps to realize accurate and efficient jumping.
Further, in the above embodiment, the preset storage area includes a clipboard of the terminal device, that is, the clipboard in the terminal device may be specifically used as a bridge for switching between the first application program and the second application program that sends the shared content to the first application program, so as to effectively implement direct jump from the first application program to a designated page in the local second application program that sends the shared content to the first application program, the operation is simple and efficient, and user experience is improved.
For example, one example of the naming structure information URI Scheme of the uniform resource identifier stored by the clipboard is: scheme:// host/pathquery; and the storage contents added with the copy time stamp copy _ time are exemplified by: scheme:// host/path & copy _ time 1497860457300.
Further, as shown in fig. 2, in the above embodiment, the step S40 may be specifically executed as the following flow steps:
step S402, setting an effective time corresponding to a state of the second application in the terminal device.
In step S404, it is determined whether the interval time is greater than or equal to the valid time, if so, step S406 is executed, otherwise, step S408 is executed.
In step S406, a home page of the second application is opened.
Step S408 is to open the designated page where the shared content is located in the second application.
In this embodiment, specifically, when it is determined whether to open the specified page where the shared content sent to the first application program in the second application program is located in the second application program according to the state of the second application program in the terminal device and the determined interval time, it may be determined according to a size relationship between the interval time and a set effective time, where the effective time corresponds to the state of the second application program in the terminal device, so that accuracy of the comparison result may be ensured, thereby ensuring accuracy of an execution result of whether to open the specified page where the shared content is located in the second application program, that is, when an interval between a time (i.e., a copy timestamp) when the first application program calls up the second application program and a time (i.e., a current timestamp) when the first application program jumps into the second application program, it indicates that the required time for the user to open the detailed page of the shared content is exceeded, and at the moment, the user only needs to enter a home page staying in the second application program, otherwise, the user directly jumps to enter a detailed page of the shared content in the second application program, and the direct jump from the first application program to a specified page in the local second application program which sends the shared content to the first application program is realized.
Further, in the above embodiment, the state of the second application in the terminal device includes: a background running state, a process closing state and a state to be installed.
It can be understood that the state of the second application in the terminal device mainly includes: the first application program can be used for calling the background running state which is easy to call, and the time length of the corresponding effective time setting can be relatively short; when the first application program is called up, the process closing state entering the running state needs to be restarted, and the time length of the corresponding effective time setting can be relatively longer; when the first application program is called, the state to be installed of the second application program needs to be carried out in the terminal equipment, namely the second application program which is not installed before the terminal equipment needs to be installed and then operated, the time length of the corresponding effective time setting can be relatively longer, and therefore the requirement that the second application program is called under different scenes is met.
The following describes in detail a page jump apparatus of an application according to an embodiment of the present disclosure with reference to fig. 3 and 4.
As shown in fig. 3, a page jump apparatus 30 for an application program of a terminal device according to an embodiment of the present disclosure includes: an acquisition module 302, a storage module 304, a processing module 306, and a determination module 308.
The obtaining module 302 is configured to obtain link information of the shared content when the first application receives the shared content sent by the second application and receives an instruction for entering the second application to view the shared content, where the link information includes a content source identifier and a copy timestamp; the storage module 304 is configured to copy and store the link information acquired by the acquisition module 302 to a preset storage area of the terminal device; the processing module 306 is configured to jump from the first application to the second application according to the content source identifier, and obtain a current timestamp of entering the second application, so as to determine an interval time between the current timestamp and the copy timestamp; the determining module 308 is configured to determine whether to open a specified page where the shared content is located in the second application according to the state of the second application in the terminal device and the interval time.
In this embodiment, when a user needs to invoke a second application program sending shared content to the user through a first application program in a terminal device and jump to the second application program to view a detailed page of the shared content, link information of the shared content may be first obtained in the first application program and copied and stored into a preset storage area of the terminal device, where the link information of the shared content mainly includes a content source identifier for identifying a source of the content and a copy time stamp when the content source identifier is obtained, further, the user may jump from the first application program to the second application program according to the content source identifier, and record a current time stamp presented after entering the second application program, and then may determine an interval time between the current time stamp and the copy time stamp, and further determine whether the user needs to open the second application program in the second application program to the first application program according to a state of the second application program and the interval time of the second application program in the terminal device The designated page where the shared content sent by the application program is located can determine whether to open the detailed page of the shared content according to specific conditions after the second application program is called by the first application program and direct jump is realized, so that the operation is simple and efficient, and the user experience is favorably improved.
The first application may specifically be a social application, and for example, the social application includes: a WeChat application, a QQ application, etc., and the second application may include other applications besides the first application itself that receives the shared content, such as a bean application, a know-you application, etc.; of course, the first application may also be other applications besides the social-type application and the second application.
Further, in the above embodiment, the content source identifier includes the naming structure information of the uniform resource identifier, that is, when the second application is invoked by the first application, the second application can be located by the naming structure information (i.e., URI Scheme) of the uniform resource identifier of the shared content, which helps to realize accurate and efficient jumping.
Further, in the above embodiment, the preset storage area includes a clipboard of the terminal device, that is, the clipboard in the terminal device can be used as a bridge for switching between the first application program and the second application program that sends the shared content to the first application program, so as to effectively implement direct jump from the first application program to a designated page in the local second application program that sends the shared content to the first application program, the operation is simple and efficient, and user experience is improved.
For example, one example of the naming structure information URI Scheme of the uniform resource identifier stored by the clipboard is: scheme:// host/pathquery; and the storage contents added with the copy time stamp copy _ time are exemplified by: scheme:// host/path & copy _ time 1497860457300.
Further, as shown in fig. 4, in the above embodiment, the determining module 308 includes: setting submodule 3082, judging submodule 3084 and control submodule 3086.
The setting submodule 3082 is configured to set an effective time corresponding to a state of the second application program in the terminal device; the judging submodule 3084 is used for judging whether the interval time is greater than or equal to the effective time; the control submodule 3086 is configured to control to open the home page of the second application program when the determination submodule 3084 determines that the home page is yes, and control to open the designated page where the shared content is located in the second application program when the determination submodule 3084 determines that the home page is not.
In this embodiment, specifically, when it is determined whether to open the specified page where the shared content sent to the first application program in the second application program is located in the second application program according to the state of the second application program in the terminal device and the determined interval time, it may be determined according to a size relationship between the interval time and a set effective time, where the effective time corresponds to the state of the second application program in the terminal device, so that accuracy of the comparison result may be ensured, thereby ensuring accuracy of an execution result of whether to open the specified page where the shared content is located in the second application program, that is, when an interval between a time (i.e., a copy timestamp) when the first application program calls up the second application program and a time (i.e., a current timestamp) when the first application program jumps into the second application program, it indicates that the required time for the user to open the detailed page of the shared content is exceeded, and at the moment, the user only needs to enter a home page staying in the second application program, otherwise, the user directly jumps to enter a detailed page of the shared content in the second application program, and the direct jump from the first application program to a specified page in the local second application program which sends the shared content to the first application program is realized.
Further, in the above embodiment, the state of the second application in the terminal device includes: a background running state, a process closing state and a state to be installed.
It can be understood that the state of the second application in the terminal device mainly includes: the first application program can be used for calling the background running state which is easy to call, and the time length of the corresponding effective time setting can be relatively short; when the first application program is called up, the process closing state entering the running state needs to be restarted, and the time length of the corresponding effective time setting can be relatively longer; when the first application program is called, the state to be installed of the second application program needs to be carried out in the terminal equipment, namely the second application program which is not installed before the terminal equipment needs to be installed and then operated, the time length of the corresponding effective time setting can be relatively longer, and therefore the requirement that the second application program is called under different scenes is met.
Further, in any of the above embodiments, the terminal device may be a mobile terminal such as a smart phone and a palm computer; and when the terminal equipment is a smart phone, the terminal equipment comprises an Android main stream type and an IOS type.
FIG. 5 shows a schematic block diagram of a computer device of an embodiment of the present disclosure.
As shown in fig. 5, the computer device 50 according to the embodiment of the present disclosure includes a memory 502, a processor 504, and a computer program stored on the memory 502 and executable on the processor 504, wherein the memory 502 and the processor 504 may be connected via a bus, and the processor 504 is configured to implement the steps of the page jump method of the application program as described in the above embodiment when executing the computer program stored in the memory 502.
The steps in the method of the embodiments of the present disclosure may be sequentially adjusted, combined, and deleted according to actual needs.
The page jump device of the application program and the units in the computer equipment in the embodiment of the disclosure can be combined, divided and deleted according to actual needs.
According to an embodiment of the present disclosure, a computer-readable storage medium is proposed, on which a computer program is stored, which, when being executed by a processor, implements the steps of the page jump method of an application program as described in the above embodiments.
Further, it is understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be implemented by instructing related hardware with a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc (EEPROM), a Compact Disc Read-Only Memory (CD-ROM), or other Memory Disk storage, tape storage, or any other medium readable by a computer that can be used to carry or store data.
Further, the Computer device may be a PC (Personal Computer) terminal or the like.
The technical scheme of the embodiment of the disclosure is described in detail above with reference to the accompanying drawings, and by using the clipboard in the terminal device as a bridge for switching between the first application program and the second application program sending the shared content to the first application program, direct jump from the first application program to the designated page in the local second application program sending the shared content to the first application program can be effectively realized, so that the operation is simple and efficient, and the user experience is favorably improved.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the disclosed embodiments should be included in the scope of protection of the disclosed embodiments.