CN109213944B - Application interaction method and device - Google Patents

Application interaction method and device Download PDF

Info

Publication number
CN109213944B
CN109213944B CN201710552955.1A CN201710552955A CN109213944B CN 109213944 B CN109213944 B CN 109213944B CN 201710552955 A CN201710552955 A CN 201710552955A CN 109213944 B CN109213944 B CN 109213944B
Authority
CN
China
Prior art keywords
target
application
picture
target application
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710552955.1A
Other languages
Chinese (zh)
Other versions
CN109213944A (en
Inventor
董红光
董俊杰
陈顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710552955.1A priority Critical patent/CN109213944B/en
Priority to PCT/CN2017/114508 priority patent/WO2018227899A1/en
Priority to EP17913542.1A priority patent/EP3627322A4/en
Priority to CN201780002125.XA priority patent/CN108139952B/en
Publication of CN109213944A publication Critical patent/CN109213944A/en
Priority to US16/699,416 priority patent/US10990461B2/en
Application granted granted Critical
Publication of CN109213944B publication Critical patent/CN109213944B/en
Priority to US17/207,251 priority patent/US11360834B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

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

Abstract

The disclosure provides an application interaction method and device, wherein the method comprises the following steps: determining that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application; outputting a target picture generated by a server side or the terminal according to the triggering operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application; extracting the target application parameters from the target picture; and opening the target application according to the target application parameters. According to the method and the device, the target application parameters are extracted from the output target picture, so that the jump between the applications is finally realized, the function of an operating system is enhanced, the interaction between the applications is not limited by whether the application of the two parties supports the deep link technology, and the user experience of the terminal is improved.

Description

Application interaction method and device
Technical Field
The present disclosure relates to the field of information interaction, and in particular, to an application interaction method and apparatus.
Background
With the development of computer communication technology, various application software brings excellent communication experience to people.
In the related art, the jump between applications can be realized by adopting the deep link technology. For example, in the case of application a adapting the Deeplink technology, the user triggers a link in application a for jumping to another application, and can jump to an inner page of another application, such as application B, through the Deeplink technology. However, if the Deeplink technology is not adapted in the application a, the page jump function between the applications is unavailable, which affects the user experience of the terminal.
Disclosure of Invention
In order to overcome the problems in the related art, the embodiments of the present disclosure provide an application interaction method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided an application interaction method, where the method is used for a terminal, and the method includes:
determining that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
outputting a target picture generated by a server side or the terminal according to the triggering operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
extracting the target application parameters from the target picture;
and opening the target application according to the target application parameters.
Optionally, the determining that a trigger operation is detected includes:
determining that a trigger operation is detected on a preset virtual key for opening the target application; or
Determining that a trigger operation for opening a preset display element of the target application is detected.
Optionally, the outputting the target picture generated by the server according to the trigger operation includes:
generating a network request according to the triggering operation, wherein the network request is used for requesting to jump to the target application and carries associated information corresponding to the target application;
sending the network request to a server through network connection established with the server in advance so that the server can obtain a target picture according to the associated information;
receiving the target picture pushed by the server side;
and outputting the target picture generated by the server side.
Optionally, the outputting the target picture generated by the terminal according to the trigger operation includes:
determining a target pixel value according to the association information corresponding to the target application through a js script associated with the trigger operation;
calling a drawing Application Programming Interface (API) to generate a target picture corresponding to the target pixel value;
and outputting the target picture generated by the terminal.
Optionally, the association information includes:
a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Optionally, the determining a target pixel value according to the associated information corresponding to the target application includes:
if the associated information comprises a URL address, obtaining a target pixel value corresponding to a target character included in the URL address according to a corresponding relation between preset characters and pixel values; or
Obtaining a target pixel difference value corresponding to a target character included in the URL address according to a preset corresponding relation between the character and the pixel difference value;
and obtaining a target pixel value, wherein the difference value between the target pixel values corresponding to the two pixel points with relative positions meeting the preset position condition is the target pixel difference value.
Optionally, determining a target pixel value according to the associated information corresponding to the target application includes:
if the associated information comprises jump indicating information, acquiring a target application parameter corresponding to the parameter acquisition indicating information according to the corresponding relation between the parameter acquisition indicating information and the application parameter;
acquiring a target pixel value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel value; or
Acquiring a target pixel difference value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel difference value, and then acquiring a target pixel value; and the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value.
Optionally, the extracting target application parameters from the target picture includes:
scanning pixel points of a current screen picture comprising the target picture to obtain pixel values corresponding to the pixel points of each line in the target picture;
converting the pixel values corresponding to the pixel points of each row into numerical values in a digital sequence one by one;
searching for a preamble in the digital sequence; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
according to the lead code, the target characteristic sequence is found in the digital sequence;
and determining the target application parameters according to the target characteristic sequence.
Optionally, the one-to-one conversion of the pixel values corresponding to the pixel points in each row into numerical values in a digital sequence includes:
directly taking the pixel value corresponding to each pixel point of each row as a numerical value forming the digital sequence; or
And taking the pixel difference value between two pixel points with relative positions meeting the preset position condition as a numerical value forming the digital sequence.
Optionally, the searching for a preamble in the digital sequence includes:
searching whether a numerical value matched with the numerical value included in the target numerical sequence exists in the numerical sequence;
if a numerical value matching the numerical value included in the target number sequence exists in the numerical sequence, taking the numerical value matching the numerical value included in the target number sequence in the numerical sequence as the preamble;
the target number sequence is composed of a first preset number of preset values.
Optionally, the finding the target feature sequence in the digital sequence according to the preamble includes:
taking a first numerical value of the numerical sequence after the preamble as a starting position of the target characteristic sequence;
and intercepting a plurality of numerical values of a second preset number from the initial position in the numerical sequence to obtain the target characteristic sequence.
Optionally, the determining the target application parameter according to the target feature sequence includes:
and determining target application parameters corresponding to the target characteristic sequence according to the corresponding relation between the pre-stored characteristic sequence and the application parameters.
Optionally, the method further comprises:
intercepting a plurality of numerical values of a third preset number from the numerical sequence starting from a first numerical value behind the target characteristic sequence to obtain a check sequence;
verifying the target characteristic sequence through the verification sequence to obtain a verification result;
and if the verification result is that the verification is passed, executing the step of opening the target application according to the target application parameters.
Optionally, the verifying the target feature sequence by the verification sequence to obtain a verification result includes:
calculating all values included in the check sequence and the target characteristic sequence according to a preset calculation mode to obtain a target value;
if the target value is consistent with the preset value, determining that the verification result is verification passing; otherwise, determining that the verification result is verification failure.
Optionally, the opening the target application according to the target application parameter includes:
determining whether the target application is installed locally or not according to the identity of the target application;
and if the target application is not locally installed, after the target application is downloaded and installed in the terminal background, opening the target application according to the target application parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided an application interaction method, where the method is used on a server side, and the method includes:
receiving a network request sent by a terminal, wherein the network request is used for requesting to jump to a target application and carries associated information corresponding to the target application;
obtaining a target picture according to the associated information, wherein the target picture is used for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
and pushing the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture.
Optionally, the obtaining a target picture according to the association information includes:
obtaining a target pixel value corresponding to the associated information carried in the network request according to the corresponding relation between the associated information and the pixel value;
generating a target picture in real time according to the target pixel value; or
And searching a target picture comprising target pixel points in a pre-generated picture according to the target pixel value, wherein the target pixel points are pixel points with pixel values being the target pixel values.
Optionally, the association information includes: a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Optionally, the obtaining, according to the correspondence between the association information and the pixel value, a target pixel value corresponding to the association information carried in the network request includes:
if the associated information carried in the network request comprises a URL address, acquiring a target pixel value corresponding to a character in the URL address according to the corresponding relation between the character and the pixel value; or
Acquiring a target pixel difference value corresponding to a target character in the URL address according to the corresponding relation between the character and the pixel difference value;
and obtaining a target pixel value, wherein the difference value between the target pixel values corresponding to the two pixel points with relative positions meeting the preset position condition is the target pixel difference value.
Optionally, the obtaining, according to the correspondence between the association information and the pixel value, a target pixel value corresponding to the association information carried in the network request includes:
if the network request contains jump indication information, acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter;
and acquiring a target pixel value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel value.
Optionally, the obtaining, according to the correspondence between the association information and the pixel value, a target pixel value corresponding to the association information carried in the network request includes:
if the network request contains jump indication information, acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter;
acquiring a target pixel difference value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel difference value;
and obtaining a target pixel value, wherein the difference value between the target pixel values corresponding to the two pixel points with relative positions meeting the preset position condition is the target pixel difference value.
According to a third aspect of the embodiments of the present disclosure, there is provided an application interaction apparatus, where the apparatus is used for a terminal, and the apparatus includes:
a trigger operation determination module configured to determine that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
the picture output module is configured to output a target picture generated by a server side or the terminal according to the trigger operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
an extraction module configured to extract the target application parameters from the target picture;
an execution module configured to open the target application based on the target application parameters.
Optionally, the triggering operation determining module includes:
a first determining sub-module configured to determine that a trigger operation is detected on a preset virtual key for opening the target application;
a second determination submodule configured to determine that a trigger operation for opening a preset display element of the target application is detected.
Optionally, the picture output module includes:
a network request generation submodule configured to generate a network request according to the trigger operation, where the network request is used to request to jump to the target application, and the network request carries associated information corresponding to the target application;
the sending submodule is configured to send the network request to a server side through network connection established with the server side in advance so that the server side can obtain a target picture according to the associated information;
the receiving submodule is configured to receive the target picture pushed by the server side;
a first output sub-module configured to output the target picture generated by the server side.
Optionally, the picture output module includes:
a first conversion submodule configured to determine, through a js script associated with the trigger operation, a target pixel value according to association information corresponding to the target application;
the picture generation submodule is configured to call a drawing Application Programming Interface (API) to generate a target picture corresponding to the target pixel value;
a second output sub-module configured to output the target picture generated by the terminal.
Optionally, the association information includes:
a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Optionally, the first conversion sub-module comprises:
a first obtaining unit configured to obtain, if the association information includes a URL address, a target pixel value corresponding to a target character included in the URL address according to a correspondence between preset characters and pixel values; or
A second obtaining unit configured to obtain a target pixel difference value corresponding to a target character included in the URL address according to a correspondence relationship between a preset character and a pixel difference value between two pixels whose relative positions satisfy a preset position condition;
the first determining unit is configured to obtain a target pixel value, and a difference value between the target pixel values corresponding to two pixels of which the relative positions meet a preset position condition is the target pixel difference value.
Optionally, the first conversion sub-module comprises:
a third obtaining unit, configured to, if the association information includes jump indication information, obtain a target application parameter corresponding to the parameter obtaining indication information according to a correspondence between the parameter obtaining indication information and the application parameter;
a fourth acquisition unit configured to acquire a target pixel value corresponding to the target application parameter according to a correspondence between an application parameter and a pixel value; or
A fifth obtaining unit, configured to obtain a target pixel value after obtaining a target pixel difference value corresponding to the target application parameter according to a corresponding relationship between the application parameter and the pixel difference value; and the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value.
Optionally, the extraction module comprises:
the first obtaining submodule is configured to scan pixel points of a current screen picture including the target picture, and pixel values corresponding to the pixel points of each row in the target picture are obtained;
the second conversion submodule is configured to convert the pixel values corresponding to the pixel points of each row into numerical values in a digital sequence one by one;
a first lookup sub-module configured to look up a preamble in the sequence of numbers; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
a second searching submodule configured to search the target feature sequence in the digital sequence according to the preamble;
a third determining sub-module configured to determine the target application parameter according to the target feature sequence.
Optionally, the second conversion sub-module includes any one of the following units:
the second determining unit is configured to directly take the pixel values corresponding to the pixel points of each row as numerical values forming the digital sequence;
a third determination unit configured to take a pixel difference value between two pixel points whose relative positions satisfy a preset position condition as a numerical value constituting the number sequence.
Optionally, the first lookup sub-module includes:
a search unit configured to search the number sequence for whether there is a value matching a value included in a target number sequence;
a fourth determination unit configured to take a value in the number sequence that matches a value included in the target number sequence as the preamble if there is a value in the number sequence that matches a value included in the target number sequence;
the target number sequence is composed of a first preset number of preset values.
Optionally, the second lookup sub-module includes:
a fifth determining unit, configured to use a first value of the digital sequence after the preamble as a start position of the target feature sequence;
a sixth obtaining unit, configured to intercept a second preset number of multiple numerical values in the numerical sequence from the starting position to obtain the target feature sequence.
Optionally, the third determining sub-module includes:
a sixth determining unit, configured to determine a target application parameter corresponding to the target feature sequence according to a correspondence between a pre-stored feature sequence and an application parameter.
Optionally, the apparatus further comprises:
the acquisition module is configured to intercept a plurality of numerical values of a third preset number from a first numerical value behind the target characteristic sequence to obtain a check sequence;
the verification module is configured to verify the target characteristic sequence through the verification sequence to obtain a verification result;
and the control module is configured to control the execution module to open the target application according to the target application parameter if the verification result is that the verification is passed.
Optionally, the verification module includes:
the calculation submodule is configured to calculate all values included in the check sequence and the target feature sequence according to a preset calculation mode to obtain a target value;
the verification result determining submodule is configured to determine that the verification result is verification passing if the target value is consistent with a preset value; otherwise, determining that the verification result is verification failure.
Optionally, the execution module includes:
the judging submodule is configured to determine whether the target application is installed locally according to the identity of the target application;
and the execution sub-module is configured to open the target application according to the target application parameters after the target application is downloaded and installed in the terminal background if the target application is not installed locally.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an application interaction apparatus, where the apparatus is used on a server side, and the apparatus includes:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is configured to receive a network request sent by a terminal, the network request is used for requesting to jump to a target application, and the network request carries associated information corresponding to the target application;
a picture obtaining module configured to obtain a target picture according to the association information, where the target picture is a picture for bearing a skip request, the skip request includes target application parameters, and the target application parameters at least include: an identity of the target application;
and the pushing module is configured to push the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture.
Optionally, the image obtaining module includes:
the second obtaining submodule is configured to obtain a target pixel value corresponding to the associated information carried in the network request according to the corresponding relation between the associated information and the pixel value;
a picture generation submodule configured to generate a target picture in real time according to the target pixel value; or
And the picture searching submodule is configured to search a target picture comprising target pixel points in a pre-generated picture according to the target pixel value, wherein the target pixel points are pixel points with pixel values being the target pixel values.
Optionally, the association information includes: a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Optionally, the second obtaining sub-module includes:
a seventh obtaining unit, configured to, if the association information carried in the network request includes a URL address, obtain, according to a correspondence between characters and pixel values, a target pixel value corresponding to a character in the URL address; or
An eighth obtaining unit configured to obtain a target pixel difference value corresponding to a target character in the URL address according to a correspondence between a character and a pixel difference value;
and the ninth acquisition unit is configured to acquire a target pixel value, and a difference value between the target pixel values corresponding to two pixels of which the relative positions meet a preset position condition is the target pixel difference value.
Optionally, the second obtaining sub-module includes:
a tenth obtaining unit, configured to, if the association information carried in the network request includes the skip indication information, obtain, according to a correspondence between the parameter obtaining indication information and the application parameter, a target application parameter corresponding to the parameter obtaining indication information;
an eleventh acquisition unit configured to acquire a target pixel value corresponding to the target application parameter in accordance with a correspondence relationship between the application parameter and the pixel value.
Optionally, the second obtaining sub-module includes:
a twelfth obtaining unit, configured to, if the association information carried in the network request includes the skip indication information, obtain, according to a correspondence between the parameter obtaining indication information and the application parameter, a target application parameter corresponding to the parameter obtaining indication information;
a thirteenth acquisition unit configured to acquire a target pixel difference value corresponding to the target application parameter according to a correspondence between an application parameter and a pixel difference value;
and the fourteenth acquiring unit is configured to acquire a target pixel value, and a difference value between the target pixel values corresponding to two pixel points whose relative positions meet a preset position condition is the target pixel difference value.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the application interaction method of the first aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the application interaction method of the second aspect.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an application interaction apparatus, where the apparatus is used for a terminal, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
outputting a target picture generated by a server side or the terminal according to the triggering operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
extracting the target application parameters from the target picture;
and opening the target application according to the target application parameters.
According to an eighth aspect of the embodiments of the present disclosure, there is provided an application interaction apparatus, where the apparatus is used on a server side, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a network request sent by a terminal, wherein the network request is used for requesting to jump to a target application and carries associated information corresponding to the target application;
obtaining a target picture according to the associated information, wherein the target picture is used for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
and pushing the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the terminal may determine that a trigger operation is detected, where the trigger operation is used to trigger a jump to a target application, and output a target picture according to the trigger operation, where the target picture carries a jump request, and the jump request includes a target application parameter. Further, the terminal extracts the target application parameters from the target picture, and then the target application can be opened according to the target application parameters. Through the process, the target application parameters are extracted from the output target picture, so that the jump between the applications is finally realized, the function of an operating system is enhanced, the interaction between the applications is not limited by whether the applications of the two parties support the deep link technology, and the user experience of the terminal is improved.
In this embodiment of the present disclosure, optionally, the terminal may determine that the trigger operation is detected on a preset virtual key for opening the target application, or determine that the trigger operation on a preset display element for opening the target application is detected, so as to trigger a jump to the target application. The realization is simple and convenient, and the usability is high.
In the embodiment of the disclosure, the target picture output by the terminal may be generated by the server or the terminal. If the target picture is generated by the server, the terminal can generate a network request according to a trigger operation, then the network request is sent to the server through a network connection which is established with the server in advance, and the server generates the target picture in real time according to the associated information carried in the network request or pushes the target picture to the terminal after finding the target picture in the pre-generated picture. If the target picture is generated by the terminal, the terminal can also determine a target pixel value according to the associated information corresponding to the target application through a js script associated with the trigger operation, and then call a drawing Application Programming Interface (API) to generate the target picture corresponding to the target pixel value. And the terminal outputs the target picture after receiving the target picture pushed by the server or generating the target picture by the terminal. Through the above process, a target picture carrying target application parameters may be generated by the server or the terminal, so as to implement subsequent inter-application hopping through the target picture.
In the embodiment of the present disclosure, if the association information includes a URL address, the terminal may directly obtain a target pixel value corresponding to a target character included in the URL address according to a preset correspondence between the character and the pixel value. Or according to the corresponding relation between the preset characters and the pixel difference values, a target pixel difference value corresponding to the target character is determined first, and then the target pixel value is determined according to the target pixel difference value. And ensuring that the target picture for bearing the jump request comprising the target application parameters can be accurately generated in the subsequent process.
In the embodiment of the present disclosure, if the associated information includes the skip indication information, the terminal may first convert the skip indication information into the target application parameter, and further convert the target application parameter into the target pixel value, or convert the target application parameter into the target pixel difference value, and obtain the target pixel value according to the target pixel difference value. And ensuring that the target picture for bearing the jump request comprising the target application parameters can be accurately generated in the subsequent process.
In the embodiment of the disclosure, when the terminal needs to extract the target application parameter from the target picture, the terminal may scan the pixel points of the current screen picture including the target picture to obtain the pixel values corresponding to the pixel points of each row. And converting the pixel values into numerical values in a numerical sequence one by one. Further, a target feature sequence may be looked up from the number sequence, thereby determining the target application parameters from the target feature sequence. The purpose of extracting the target application parameters from the target picture is achieved.
In the embodiment of the present disclosure, optionally, the extracted target feature sequence may be verified through a verification sequence, and after the verification is passed, the target application is opened according to the target application parameter. The accuracy of the target application parameters extracted through the target picture is ensured.
According to the method and the device, in the process of jumping to the target application, after the operating system obtains the target application parameters, whether the target application is installed at the user terminal currently can be determined according to the identity of the target application, if not, a data packet for installing the target application can be automatically downloaded in the terminal background, the target application is opened according to the target application parameters, automatic installation and accurate jumping of the target application are achieved, information interaction between the user and the terminal is not needed in the jumping process, the intelligent degree of application interaction is improved, and the terminal user experience is further improved.
In the embodiment of the present disclosure, a server may obtain a target picture according to associated information carried in a network request sent by a terminal, where the target picture is a picture used for bearing a skip request, the skip request includes target application parameters, and the target application parameters at least include: and the identity of the target application. Further, the server may push the target picture to the terminal, and the terminal opens the target application according to the target application parameter extracted from the target picture. Through the process, the server terminal can generate the target picture bearing the jump request, so that the terminal can extract the target application parameters from the target picture to jump between applications.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of application interaction, according to an example embodiment.
Fig. 2A-2E are schematic diagrams illustrating an application interaction scenario, according to an example embodiment.
FIG. 3 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
Fig. 4A-4C are diagrams illustrating an application interaction scenario, according to an example embodiment.
FIG. 5 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 6 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 7 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 8 is a flow chart illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 9 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 10 is a flow diagram illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 11 is a flow chart illustrating another method of application interaction in accordance with an illustrative embodiment.
FIG. 12 is a block diagram illustrating an application interaction device, according to an example embodiment.
FIG. 13 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 14 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 15 is a block diagram illustrating another application interaction device, according to an example embodiment.
Fig. 16A through 16B are block diagrams illustrating another application interaction device according to an example embodiment.
Fig. 17A-17B are block diagrams illustrating another application interaction device, according to an example embodiment.
FIG. 18 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 19 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 20 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 21 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 22 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 23 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 24 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 25 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 26 is a block diagram illustrating another application interaction device, according to an example embodiment.
Fig. 27A to 27B are block diagrams illustrating another application interaction device according to an example embodiment.
Fig. 28A-28B are block diagrams illustrating another application interaction device, according to an example embodiment.
FIG. 29 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 30 is a block diagram illustrating another application interaction device, according to an example embodiment.
FIG. 31 is a block diagram illustrating a structure for an application interaction device according to an exemplary embodiment of the present disclosure.
FIG. 32 is a block diagram illustrating another configuration for an application interaction device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application interaction mode is not limited by a Deeplink technology, and the jump from one application interface to the page of another target application can be realized.
Referring to FIG. 1, a flow diagram of a method of application interaction is shown according to an exemplary embodiment, which may include the steps of:
in step 101, it is determined that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
in step 102, outputting a target picture generated by the server or the terminal according to the trigger operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
in step 103, extracting the target application parameters from the target picture;
in step 104, the target application is opened according to the target application parameters.
In the above embodiment, the terminal may determine that a trigger operation is detected, where the trigger operation is used to trigger a jump to a target application, and output a target picture according to the trigger operation, where the target picture carries a jump request, and the jump request includes a target application parameter. Further, the terminal extracts the target application parameters from the target picture, and then the target application can be opened according to the target application parameters. Through the process, the target application parameters are extracted from the output target picture, so that the jump between the applications is finally realized, the function of an operating system is enhanced, the interaction between the applications is not limited by whether the applications of the two parties support the deep link technology, and the user experience of the terminal is improved.
With respect to step 101, optionally, the terminal may determine that the target network request is detected under any one of the following conditions:
in the first case, the application platform determines that the trigger operation is detected on the preset virtual key for opening the target application, for example, as shown in fig. 2A, it determines that the trigger jumps to the target application.
The application platform described above may be a platform for opening the target application. Including but not limited to the following platforms:
optionally, the application platform may be a platform directly installed in an operating system, and the operating system may be an android, an IOS, or the like; or the application platform may be some application such as WeChat, Payment Bao, QQ, etc. For example, as shown in fig. 2B, a user may open a target application through the application platform. Or the application platform may also be a browser.
In the second case, the application platform determines that a trigger operation for opening a preset display element of the target application is detected, and determines to trigger generation of a network request for jumping to the target application. The generated network request may carry a URL address corresponding to a target application, so that the server or the terminal generates a target picture according to the URL address, and the terminal may extract a target application parameter carried by the target picture according to the output target picture.
Alternatively, the preset display element may be a URL address, such as shown in fig. 2C. Or the preset display element may be a picture link, which may be provided in a browser, for example, as shown in fig. 2D, or in an application, for example, as shown in fig. 2E.
In step 102, the target picture output by the terminal may be generated by the server or the terminal itself.
When the target picture is generated by the server, optionally, referring to fig. 3, where fig. 3 is another application interaction method shown on the basis of the embodiment shown in fig. 1, step 102 may include:
in step 102-11, a network request is generated according to the trigger operation, the network request is used for requesting to jump to the target application, and the network request carries associated information corresponding to the target application;
in this step, the terminal may generate a network request for requesting to jump to the target application after determining that the trigger operation is detected according to the related art. Wherein the network request carries associated information corresponding to the target application.
In this embodiment of the present disclosure, optionally, the association information may include: a uniform resource locator, URL, address of the target application, or jump instruction information. Wherein the skip indication information at least may include: and the parameter acquisition indication information is used for acquiring the target application parameters.
In step 102-12, the network request is sent to the server side through a network connection established with the server side in advance;
in this step, the terminal may establish a network connection with the server in advance through a three-way handshake protocol and other related technologies. Further, the generated network request is sent to a server side through the network connection.
The server side can determine a target pixel value corresponding to the association information currently sent to the server side according to the preset corresponding relationship between the association information and the pixel value. Further, a target picture may be generated from the target pixel values. Or the server may determine a target pixel value according to the association information, and then search for a target picture including a target pixel point in a pre-generated picture, where the pixel value of the target pixel point is the target pixel value.
And the target picture finally obtained by the server carries a jump request, and the jump request comprises target application parameters.
In step 102-13, the target picture pushed by the server side is received.
In this step, after the server generates the target picture, the server pushes the target picture to the terminal according to the acquisition request, and the terminal can receive the target picture directly.
In step 102-14, the target picture generated by the server side is output.
In this step, the application platform may output the target picture by calling a display component module in the operating system, where the display component module is responsible for displaying on the screen, and the output target picture may completely cover the entire screen, for example, as shown in fig. 4A, or may partially cover the screen and the covered position is not fixed, for example, as shown in fig. 4B or 4C.
When the target picture is generated by the terminal itself, optionally, referring to fig. 5, where fig. 5 is another application interaction method shown on the basis of the embodiment shown in fig. 1, step 102 may include:
in step 102-21, determining a target pixel value according to the associated information corresponding to the target application through a js script associated with the trigger operation;
in this step, optionally, the associated information may include: a Uniform Resource Locator (URL) address of the target application or jump instruction information; wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
If the associated information includes a URL address, the terminal may directly convert a target character included in the URL address into a target pixel value according to table 1 through, but not limited to, a js script associated with the trigger operation.
Character(s) Pixel value
a 0,0,0,125,124,0
A 120,120,120,250,250,0
/ 250,250,250,100,100,180
…… ……
TABLE 1
Or the terminal converts the target character into a target pixel difference value according to the table 2 and then determines a target pixel value according to the target pixel difference value.
Character(s) Pixel difference value
A
0,0,0,1,2
A 1,2,3,4,5
/ 2,2,2,3,6
…… ……
TABLE 2
The terminal may determine a plurality of target pixel difference values corresponding to target characters included in the URL address corresponding to the target application according to table 2. Further, the difference value of the target pixel values corresponding to two pixel points whose relative positions meet the preset position condition can be obtained as the target pixel difference value, so that the target pixel value is obtained. Wherein the preset position condition may include: the preset number of pixel points are spaced, and the preset number can be 0, 1, 2 … ….
For example: if the target pixel difference value corresponding to the target character a is 0, 0, 0, 1, 2, the target pixel values 255, 255, 255, 254, 252 can be generated.
If the associated information includes the skip indication information, the terminal may also obtain a target application parameter corresponding to the parameter obtaining indication information according to a correspondence between pre-stored parameter obtaining indication information and application parameters.
For example, the jump instruction information includes parameter acquisition instruction information a. The terminal may obtain the target application parameter APP ID1 corresponding to the parameter obtaining indication information according to table 3.
Jump indication information Application parameters
A APP ID1
B APP ID2
C APP ID3
…… ……
TABLE 3
Further, the terminal may obtain a target pixel value corresponding to the target application parameter according to a pre-stored correspondence between the application parameter and the pixel value, for example, as shown in table 4.
Application parameters Pixel value
APP ID1 0,255,255,0,……
APP ID2 255,255,255,255,……
APP ID3 0,0,0,255,……
…… ……
TABLE 4
Alternatively, the terminal may obtain the target pixel difference value corresponding to the target application parameter according to a pre-stored correspondence between the application parameter and the pixel difference value, for example, as shown in table 5.
Application parameters Pixel difference value
APP ID1
1,1,1,……
APP ID2 2,0,0……
APP ID3 5,6,7……
…… ……
TABLE 5
Further, the terminal may determine that a difference value of target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition is the target pixel difference value, so as to determine the target pixel value. Wherein the preset position condition may include: the preset number of pixel points are spaced, and the preset number can be 0, 1, 2 … ….
In step 102-22, calling a drawing Application Programming Interface (API) to generate a target picture corresponding to the target pixel value;
in this step, after all the target pixel values are determined and the target pixel value sequence is obtained, the target pixel values may be used as pixel values corresponding to each pixel point in the target picture to generate the target picture. When the target picture is generated, the application platform can call a canvas (drawing) label in the js script through the browser, and then the canvas label calls a drawing Application Programming Interface (API) in the operating system, and finally the target picture is generated.
In steps 102-23, the target picture generated by the terminal is output.
In this step, the application platform may output the target picture by calling a display component module in the operating system, where the display component module is responsible for displaying on the screen, and the output target picture may completely cover the entire screen, for example, as shown in fig. 4A, or may partially cover the screen and the covered position is not fixed, for example, as shown in fig. 4B or 4C.
In the embodiment of the present disclosure, optionally, a preset picture may also be provided, and all pixel values corresponding to the preset picture form a pixel value sequence. After the application platform finally converts the associated information into the target pixel value according to the above manner, the application platform may replace the plurality of pixel values located at the preset positions in the pixel value array with the target pixel value one by one to obtain a target pixel value array.
For example, the pixel value sequence includes {255, 255, 255, 160, 124, 124, 0, 0 … … }, the application platform may replace the plurality of pixel values located at the starting position in the pixel value sequence with a plurality of target pixel values one by one, and assuming that the plurality of target pixel values are 254, 250, 254, 250, 254, respectively, the pixel values of the 5 pixels at the starting position may be replaced with 254, 250, 254, 250, 254 one by 255, 255, 160, 124, and the finally obtained target pixel value sequence is {254, 250, 254, 0, 0 … … }.
In the embodiment of the present disclosure, if it is necessary to replace a plurality of pixel values in the pixel value sequence by a target pixel value, after determining a target pixel difference according to table 2, preferably, the obtained target pixel value may be as close as possible to the original pixel value.
For example, the number of pixel values is {125, 125, 125, 125, 125, 124, 0, 0 … … }. When the pixel difference values of the first 5 pixels are changed to 1, 2, 3, 4, the obtained target pixel value sequence may be many, for example, it may be {125, 126, 128, 131, 125, 124, 0, 0 … … }, or {0, 1, 3, 6, 10, 124, 0, 0 … … }, or {200, 201, 203, 206, 210, 124, 0, 0 … … }.
In the embodiment of the present disclosure, the number series of {125, 126, 128, 131, 125, 124, 0, 0 … … } may be preferably used as the final target pixel value number series.
And taking each pixel value corresponding to the target pixel value sequence as a target pixel value of the target picture, calling a canvas (drawing) label in the js script through the browser, calling a drawing Application Programming Interface (API) in an operating system through the canvas label, and finally generating the target picture.
With respect to the step 103, optionally, referring to fig. 6, fig. 6 is another application interaction method shown on the basis of the embodiment shown in fig. 1, and the step 103 may include:
in step 103-1, scanning pixels of a current screen image including the target picture to obtain pixel values corresponding to the pixels of each row in the target picture;
in this step, the application platform may call the display component module, and perform, on the output current screen picture including the target picture, a video memory conversion process, for example, a process of converting a video memory back buffer to a video memory frontbuffer, pixel point scanning on the current screen picture including the target picture line by line.
Wherein, both the back buffer and the front buffer are video memories, one group displays, and the other group is standby. The video card stores the frame of picture being displayed by using a front buffer, and meanwhile, the next frame of picture is ready in a back buffer. Then the display card interchanges the two buffers, the frame of the back buffer is displayed, and the next frame is drawn in the front buffer for standby at the same time, thus forming a complementary working mode and being capable of quickly responding to the change of the frame.
In the embodiment of the present disclosure, the output current screen image may be scanned with the pixels line by line in the process of performing video memory conversion, so as to obtain the pixel values corresponding to the pixels in each line in the previous screen image.
It should be noted that, no matter whether the target picture completely covers the terminal screen, since the specific position of the target picture on the current screen picture cannot be determined, the display component module may perform pixel scanning on the entire current screen picture when performing pixel scanning.
In step 103-2, the pixel values corresponding to the pixel points of each row are converted into numerical values in a digital sequence one by one;
in this step, any one of the following manners may also be adopted to convert the pixel values corresponding to the pixels in each row into numerical values in the digital sequence one by one.
In the first mode, the pixel values corresponding to the pixels in each row are directly used as the numerical values forming the numerical sequence.
The display component module at the bottom layer of the system can directly take the pixel value corresponding to each pixel point of each row as a numerical value in the numerical sequence.
For example, if the row includes 100 pixels, the number sequence includes the pixel values corresponding to the 100 pixels.
In the second mode, the pixel difference value between two pixel points with relative positions meeting the preset position condition is used as the numerical value forming the digital sequence.
The display component module at the bottom layer of the system can calculate the pixel difference value corresponding to each of two pixel points with relative positions meeting the preset position condition, and the pixel difference value is used as a numerical value in the digital sequence.
For example, if the row includes 100 pixels, the number sequence includes the pixel difference between every two of the 100 pixels. In the embodiment of the present disclosure, the pixel difference may adopt an absolute value of the pixel difference. For example, the preset position condition is that the interval between two pixels is 0 pixels, that is, two pixels are adjacent, and the two adjacent pixel values are 100 and 105, respectively, then the absolute value of the pixel difference is 5, and the two adjacent pixel values are 200 and 199, respectively, then the absolute value of the pixel difference is 1.
In step 103-3, a preamble is looked up in the number sequence; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
in this step, the display module may search for whether a value completely matching a value included in the target number sequence exists in the number sequence, and if a value matching a value included in the target number sequence exists in the number sequence, use the value matching the value included in the target number sequence in the number sequence as the preamble. Alternatively, the target number sequence may be composed of a first preset number of preset numerical values. For example, if the target number is {1, 2, 3, 4}, the display module component can look up in the above-mentioned number sequence whether there is a value that matches the value included in the target number sequence. If the current number sequence is {0, 1, 1, 2, 3, 4, 5, 0, … … }, then {1, 2, 3, 4} is taken as the preamble.
And if the current digital sequence does not comprise a numerical value matched with the numerical value included in the target numerical sequence, continuing to search the digital sequence corresponding to the next row of pixel points until the lead code is found or the picture is completely scanned.
In step 103-4, the target feature sequence is found in the digital sequence according to the preamble;
in this step, the display module may use a first numerical value after the preamble in the number sequence as a start position of the target feature sequence, and further intercept a second preset number of numerical values from the start position in the number sequence to obtain the target feature sequence.
For example, if the number sequence is {0, 1, 1, 2, 3, 4, 0, 0, 2, 6, 5, 4 … … }, the preamble is determined to be {1, 2, 3, 4}, and the second predetermined number is 4, the target signature sequence can be truncated from the number sequence to be {0, 0, 2, 6 }.
In step 103-5, the target application parameters are determined according to the target feature sequence.
In this step, the display module may directly determine the target application parameters corresponding to the target feature sequence according to a correspondence between a pre-stored feature sequence and the application parameters.
Optionally, the target application parameter may include at least an identity of the target application, which may be represented as an APP ID; other information may also be included, such as page name, i.e., detail page name; page parameters, namely detail page parameters; the target application can execute corresponding operations according to the instruction parameters, such as popping up a dialog box, opening a specified audio file, a specified video file and the like.
For example, the application parameter is an identity of the application, i.e. APP ID, and the correspondence between the feature sequence and the application parameter is shown in table 6.
Characteristic sequence Application parameters
1,2,3,4 APP ID1
2,3,4,5 APP ID2
5,6,7,1 APP ID3
0,0,2,6 APP ID4
…… ……
TABLE 6
Then if the target feature sequence is {0, 0, 2, 6}, the display component module may determine the target application parameter as APP ID4 according to table 6.
In an embodiment, optionally, in order to ensure accuracy of the extracted target feature parameter, referring to fig. 7, fig. 7 is another application interaction method shown on the basis of the embodiment shown in fig. 6, where the application interaction method may further include:
in step 105, a plurality of values of a third preset number are intercepted from the number sequence starting from a first value after the target feature sequence, so as to obtain a check sequence;
in this step, a third preset number of values may be intercepted from the number sequence starting from the first value after the target feature sequence, so as to obtain a check sequence.
For example, the number sequence is {0, 1, 1, 2, 3, 4, 0, 0, 2, 6, 5, 4 … … }, the preamble has been determined to be {1, 2, 3, 4}, and the target signature sequence is {0, 0, 2, 6 }. If the third predetermined number is 2, the check sequence is {5, 4 }.
In step 106, the target characteristic sequence is verified through the verification sequence to obtain a verification result;
in this embodiment of the present disclosure, optionally, all values included in the check sequence and the target feature sequence may be calculated according to a preset calculation manner to obtain a target value. The preset calculation method may include, but is not limited to: calculate a sum, calculate a difference, etc. If the calculated target value is consistent with the preset value, the verification result can be determined to be passed, otherwise, the verification result is determined to be failed.
For example, a sum of all values included in the check sequence and all values included in the target feature sequence is calculated, for example, a sum of all values of the target feature sequence {0, 0, 2, 6} and the check sequence {5, 4} is calculated, and the sum is 0+0+2+6+5+4 ═ 17.
And if the sum is consistent with the preset sum, determining that the verification result is verification passing, otherwise, determining that the verification result is verification failing.
Assuming that the preset sum value is 17, which is consistent with the calculated sum value, the verification result is determined as verification pass. If the preset sum value is 18, the verification result is determined as verification failure.
In the embodiment of the present disclosure, when the verification result is that the verification passes, step 104 may be continuously executed.
Through the process, the extracted target characteristic sequence can be further verified through the verification sequence, the problem that the target characteristic sequence is extracted by mistake due to the fact that lead codes are extracted from some pictures which do not bear target application parameters is avoided, and the accuracy of the extracted target characteristic sequence is ensured.
For the above step 104, after extracting the target application parameter, the terminal may open the target application according to the target application parameter based on the skip request carried by the target picture.
In the embodiment of the present disclosure, the target application may be an application that needs to be manually triggered by a user in the related art during an installation process, or may be a new application, where the new application is different from the application in the related art in that: the installation process runs in the background of the user terminal.
Namely, after acquiring the compressed packet of the new application from the server, the terminal can install or update itself at the background, the foreground of the installation process is invisible, and the update process can be presented to the user at the foreground.
If the target application belongs to an application in the related art, in the case that the target application is installed in the terminal, the implementation process of the step 104 may be:
and the operating system starts the target application according to the identity of the target application in the target application parameters, such as opening an application home page or opening a login or registration page of the target application.
Under the condition that the target application parameters also comprise other information, the started target application program can also execute corresponding operation according to the information, such as opening an inner page of the target application, for example, a detail page of a sales commodity in an e-commerce platform; or playing audio and video files and the like in a preset interface; or pop up a preset dialog box, etc.
If the target application is not installed in the user terminal, the user can be reminded to download and install the target application by opening an application store and the like; alternatively, the target message is discarded.
If the target application belongs to an application that is running in the background in the installation process, as shown in fig. 8, fig. 8 is another application interaction method shown on the basis of the embodiment shown in fig. 1, and step 104 may include:
in step 104-1, determining whether the target application is installed locally according to the identity of the target application;
in the embodiment of the present disclosure, the terminal may determine whether the new application is installed locally according to the identity of the target application through an application platform, that is, a platform or service software for running the target application. For example, the installed application list is traversed according to the identity of the target application, and whether the target application is installed locally on the user terminal is determined.
In step 104-2, if the target application is not installed locally, after the target application is downloaded and installed in the terminal background, the target application is opened according to the target application parameters.
If the target application is determined not to be installed locally, the application platform can trigger the terminal to automatically download and install the target application, and the process is invisible to the user, namely the downloading and installing process is executed without taking the receiving of confirmation information triggered by the user in the foreground as a necessary condition.
After the application platform acquires the new application installation package or the update data package, the application platform can directly run a new application program and open a target new application.
In the embodiment of the disclosure, the application platform is a service program preset in the user terminal, and can be set in the operating system as a system software; the terminal still takes a smart phone as an example, and the application platform may be set when the mobile phone leaves a factory. The preset application platform can also be used as upper application software to independently run in the user terminal, and the setting position of the preset application platform is not limited by the disclosure.
The application platform can open the corresponding target application according to the application parameters of any target application. The process of opening the application by the application platform may be directly running an installation or update package of the application, and opening an application interface specified by target application parameters, for example, a home interface of the application, or an inner page thereof. For example, the quick-view cartoon is directly opened according to the identity of the quick-view cartoon APP.
In the embodiment of the present disclosure, after the terminal detects the trigger operation for jumping to the target application, a server or the terminal may generate a picture for bearing a jump request, that is, generate the target picture, where the jump request includes the target application parameter. Furthermore, target application parameters are extracted from the target picture, so that target applications are opened, inter-application skip is finally realized, the function of an operating system is enhanced, interaction between the applications is not limited by whether the applications of the two parties support the deep link technology, and the user experience of the terminal is improved.
Referring to fig. 9, a flow diagram of another application interaction method, which may be used on a server side, is shown according to an exemplary embodiment, including the steps of:
in step 201, a network request sent by a terminal is received, where the network request is used to request to jump to a target application, and the network request carries associated information corresponding to the target application;
in step 202, a target picture is obtained according to the association information, where the target picture is a picture for carrying a skip request, the skip request includes target application parameters, and the target application parameters at least include: an identity of the target application;
in step 203, the target picture is pushed to the terminal, so that the terminal opens the target application according to the target application parameter extracted from the target picture after outputting the target picture.
In the foregoing embodiment, the server may obtain a target picture according to association information carried in a network request sent by the terminal, where the target picture is a picture used for bearing a skip request, the skip request includes target application parameters, and the target application parameters at least include: and the identity of the target application. Further, the server may push the target picture to the terminal, and the terminal opens the target application according to the target application parameter extracted from the target picture. Through the process, the server terminal can generate the target picture bearing the jump request, so that the terminal can extract the target application parameters from the target picture to jump between applications.
For step 201, after detecting a trigger operation for jumping to a target application, a terminal generates a network request, where the network request is used to request to jump to the target application and carries associated information corresponding to the target application. The terminal sends the network request to the server through network connection established with the server in advance, and the server can receive the network request directly.
For step 202, the server may first obtain a target pixel value corresponding to the association information carried in the network request according to the correspondence between the association information and the pixel value.
Wherein the association information may include: a uniform resource locator, URL, address of the target application, or jump instruction information.
The jump indication information may include at least: and the parameter acquisition indication information is used for acquiring the target application parameters.
When obtaining a target pixel value corresponding to the association information carried in the network request according to the correspondence between the association information and the pixel value, if the association information includes a URL address, the server may convert a target character included in the URL address into the target pixel value according to a correspondence between a pre-stored character and the pixel value.
Alternatively, the target character may be directly converted into a corresponding target pixel value according to the correspondence relationship in table 1. The target character may also be converted into a corresponding target pixel difference value according to the correspondence relationship in table 2, and further, a difference value of target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition may be obtained as the target pixel difference value, so that the target pixel value is obtained. Wherein the preset position condition may include: the preset number of pixel points are spaced, and the preset number can be 0, 1, 2 … ….
If the association information carried in the network request includes the skip indication information, the server may first obtain the target application parameter corresponding to the parameter obtaining indication information according to a pre-stored correspondence between the parameter obtaining indication information and the application parameter.
For example, the association information carried in the network request received by the server and sent by the terminal includes the skip indication information, and the skip indication information includes the parameter acquisition indication information a. The server may obtain the target application parameter APP ID1 corresponding to the parameter obtaining indication information according to table 3.
Further, the server may obtain a target pixel value corresponding to the target application parameter according to a pre-stored correspondence between the application parameter and the pixel value, for example, as shown in table 4.
Alternatively, after acquiring the target application parameter, the server may acquire the target pixel difference value corresponding to the target application parameter according to table 5. Further, the difference value of the target pixel values corresponding to two pixel points whose relative positions meet the preset position condition may be determined as the target pixel difference value, so as to determine the target pixel value. Wherein the preset position condition may include: the preset number of pixel points are spaced, and the preset number can be 0, 1, 2 … ….
After the target pixel value is obtained, further, the server may generate a target picture in real time through the target pixel value, where pixel values corresponding to pixel points included in the target picture at least include the target pixel value.
Or the server may search, according to the target pixel value, a target picture including a target pixel point in a pre-generated picture, where the target pixel point is a pixel point whose pixel value is the target pixel value.
For step 203, the server may push the generated target picture to the terminal, and extract the target application parameter in the target picture after the terminal outputs the target picture, so as to open the target application according to the target application parameter.
In an embodiment, the skip indication information may further include any one of:
feature loading indication information for indicating generation of a target picture bearing the skip request;
and sending mode indication information for indicating a target picture sending mode.
The server may send the feature loading indication information to the terminal before sending the target picture to the terminal, and after receiving the feature loading indication information, the terminal may determine that the target picture to be sent by the server carries a skip request, and may extract a target application parameter from the skip request, so as to open the target application according to the target application parameter. In addition, the server may push the generated target picture to the terminal according to the sending method indicated by the sending method indication information.
In the above embodiment, the server may generate a target picture carrying the skip request, so that the terminal extracts the target application parameter from the target picture to perform inter-application skip.
Referring to FIG. 10, a flow chart of an application interaction method is shown according to an exemplary embodiment, including the steps of:
in step 301, the application platform in the terminal determines that a trigger operation for triggering a jump to a target application is detected.
In step 302, the terminal generates a network request according to the trigger operation, where the network request is used to request to jump to a target application, and the network request carries associated information corresponding to the target application.
Alternatively, the network request may be generated by a browser or any application that may generate a network request.
In step 303, the browser on the terminal sends the network request to the server through a network connection established with the server in advance.
In step 304, the server determines a target pixel value according to the association information.
In step 305, the server generates a target picture according to the target pixel value, where the target picture is a picture for bearing a skip request, and the skip request includes target application parameters, where the target application parameters at least include: and the identity of the target application.
In step 306, the server pushes the target picture to the terminal.
In step 307, the display component module on the terminal outputs the target picture.
In step 308, the application platform on the terminal extracts the target application parameters from the current screen including the target picture.
In step 309, the application platform on the terminal opens the target application according to the target application parameter.
In the embodiment, the server generates the target picture and pushes the target picture to the terminal, and the terminal extracts the target application parameters from the output target picture, so that the inter-application skip is finally realized, the function of the operating system is enhanced, the inter-application interaction is not limited by whether the applications of the two parties support the deep link technology, and the user experience of the terminal is improved.
Referring to FIG. 11, a flowchart of an application interaction method is shown, according to an exemplary embodiment, including the steps of:
in step 401, the application platform in the terminal determines that a trigger operation for triggering a jump to a target application is detected.
In step 402, the terminal determines a target pixel value according to the associated information corresponding to the target application through the js script associated with the trigger operation.
In step 403, the terminal calls a drawing application programming interface API to generate a target picture corresponding to the target pixel value.
In step 404, the display component module on the terminal outputs the target picture.
In step 405, the application platform on the terminal extracts the target application parameters from the target picture.
In step 406, the application platform on the terminal opens the target application according to the target application parameter.
In the embodiment, the terminal generates and outputs the target picture, and further extracts the target application parameters from the output target picture, so that inter-application skip is finally realized, the function of an operating system is enhanced, the interaction between applications is not limited by whether the applications of the two parties support the deep link technology, and the user experience of the terminal is improved. While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
Referring to fig. 12, a block diagram of an application interaction apparatus for a terminal according to an exemplary embodiment is shown, including:
a trigger determination module 510 configured to determine that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
a picture output module 520 configured to output a target picture generated by the server or the terminal according to the trigger operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
an extracting module 530 configured to extract the target application parameter from the target picture;
an executing module 540 configured to open the target application according to the target application parameters.
Referring to fig. 13, fig. 13 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 12, and the trigger operation determining module 510 includes:
a first determination submodule 511 configured to determine that a trigger operation is detected on a preset virtual key for opening the target application;
a second determining sub-module 512 configured to determine that a trigger operation for opening a preset display element of the target application is detected.
Referring to fig. 14, fig. 14 is a block diagram of another application interaction device shown on the basis of the embodiment shown in fig. 12, and the picture output module 520 includes:
a network request generation submodule 521 configured to generate a network request according to the trigger operation, where the network request is used to request to jump to the target application, and the network request carries associated information corresponding to the target application;
a sending sub-module 522, configured to send the network request to a server side through a network connection established with the server side in advance, so that the server side obtains a target picture according to the association information;
a receiving submodule 523 configured to receive the target picture pushed by the server side;
a first output sub-module 524 configured to output the target picture generated by the server side.
Referring to fig. 15, fig. 15 is a block diagram of another application interaction device shown on the basis of the embodiment shown in fig. 12, and the picture output module 520 includes:
a first conversion submodule 525 configured to determine, through a js script associated with the trigger operation, a target pixel value according to association information corresponding to the target application;
the picture generation submodule 526 is configured to call a drawing application programming interface API to generate a target picture corresponding to the target pixel value;
a second output sub-module 527 configured to output the target picture generated by the terminal.
Optionally, the association information includes:
a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Referring to fig. 16A, fig. 16A is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 15, where the first conversion sub-module 525 includes:
a first obtaining unit 5251 configured to obtain, if the association information includes a URL address, a target pixel value corresponding to a target character included in the URL address according to a preset correspondence between characters and pixel values.
Referring to fig. 16B, fig. 16B is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 15, where the first conversion sub-module 525 includes:
a second obtaining unit 5252 configured to obtain a target pixel difference value corresponding to a target character included in the URL address according to a preset correspondence relationship between characters and pixel difference values;
a first determination unit 5253 configured to obtain a target pixel value, where a difference value between target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition is the target pixel difference value.
Referring to fig. 17A, fig. 17A is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 12, where the first conversion sub-module 525 includes:
a third obtaining unit 5254 configured to, if the association information includes jump instruction information, obtain a target application parameter corresponding to the parameter acquisition instruction information according to a correspondence between the parameter acquisition instruction information and the application parameter;
a fourth obtaining unit 7255 configured to obtain a target pixel value corresponding to the target application parameter according to the correspondence between the application parameter and the pixel value.
Referring to fig. 17B, fig. 17B is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 12, where the first conversion sub-module 525 includes:
a third obtaining unit 5254 configured to, if the association information includes jump instruction information, obtain a target application parameter corresponding to the parameter acquisition instruction information according to a correspondence between the parameter acquisition instruction information and the application parameter;
a fifth obtaining unit 5256 configured to obtain a target pixel value after obtaining a target pixel difference value corresponding to the target application parameter according to the correspondence between the application parameter and the pixel difference value; and the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value.
Referring to fig. 18, fig. 18 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 12, and the extraction module 530 includes:
a first obtaining sub-module 531, configured to perform pixel point scanning on a current screen image including the target picture, and obtain pixel values corresponding to pixel points in each row in the target picture;
a second conversion submodule 532, configured to convert the pixel values corresponding to the pixel points in each row into numerical values in a digital sequence one by one;
a first lookup sub-module 533 configured to lookup a preamble in the digital sequence; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
a second searching sub-module 534 configured to search the digital sequence for the target signature sequence according to the preamble;
a third determining sub-module 535 configured to determine the target application parameters from the target feature sequence.
Referring to fig. 19, fig. 19 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 18, where the second conversion submodule 532 includes any one of the following units:
a second determining unit 5321 configured to directly take the pixel values corresponding to the respective pixel points of each row as numerical values constituting the number sequence;
a third determination unit 5322 configured to take a pixel difference value between two pixel points whose relative positions satisfy a preset position condition as a numerical value constituting the number sequence.
Referring to fig. 20, fig. 20 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 18, where the first lookup submodule 533 includes:
a search unit 5331 configured to search the number sequence for whether there is a number that matches a number included in the target number sequence;
a fourth determining unit 5332 configured to take a value in the number sequence that matches a value included in the target number sequence as the preamble if there is a value in the number sequence that matches a value included in the target number sequence;
the target number sequence is composed of a first preset number of preset values.
Referring to fig. 21, fig. 21 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 18, and the second lookup sub-module 534 includes:
a fifth determining unit 5341 configured to use a first numerical value of the number sequence after the preamble as a start position of the target feature sequence;
a sixth obtaining unit 5342 configured to obtain the target feature sequence by intercepting a plurality of numerical values of a second preset number from the starting position in the numerical sequence.
Referring to fig. 22, fig. 22 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 18, and the third determining submodule 535 includes:
a sixth determining unit 5351 configured to determine a target application parameter corresponding to the target feature sequence according to a correspondence between a pre-stored feature sequence and an application parameter.
Referring to fig. 23, fig. 23 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in any one of fig. 18 to fig. 22, the apparatus further includes:
an obtaining module 550 configured to intercept a plurality of values of a third preset number from the first value after the target feature sequence to obtain a check sequence;
the checking module 560 is configured to check the target feature sequence through the check sequence to obtain a check result;
a control module 570 configured to control the execution module 540 to open the target application according to the target application parameter if the verification result is that the verification passes.
Referring to fig. 24, fig. 24 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 23, and the verification module 560 includes:
the calculation submodule 561 is configured to calculate all values included in the check sequence and the target feature sequence according to a preset calculation mode to obtain a target value;
a verification result determining sub-module 562 configured to determine that the verification result is verification pass if the target value is consistent with a preset value; otherwise, determining that the verification result is verification failure.
Referring to fig. 25, fig. 25 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 12, and the executing module 540 includes:
a judgment sub-module 541 configured to determine whether to locally install the target application according to the identity of the target application;
the execution sub-module 542 is configured to, if the target application is not locally installed, open the target application according to the target application parameter after the target application is downloaded and installed in the terminal background.
Referring to fig. 26, a block diagram of an application interaction apparatus for use on a server side is shown, according to an example embodiment, the apparatus comprising;
a receiving module 610, configured to receive a network request sent by a terminal, where the network request is used to request to jump to a target application, and the network request carries associated information corresponding to the target application;
a picture obtaining module 620, configured to obtain a target picture according to the association information, where the target picture is a picture for bearing a skip request, and the skip request includes target application parameters, where the target application parameters at least include: an identity of the target application;
a pushing module 630, configured to push the target picture to the terminal, so that after the terminal outputs the target picture, the terminal opens the target application according to the target application parameter extracted from the target picture.
Referring to fig. 27A, fig. 27A is a block diagram of another application interaction device shown on the basis of the embodiment shown in fig. 26, where the picture acquiring module 620 includes:
the second obtaining sub-module 621 is configured to obtain, according to a correspondence between the association information and the pixel value, a target pixel value corresponding to the association information carried in the network request;
and a picture generation sub-module 622 configured to generate a target picture in real time according to the target pixel value.
Referring to fig. 27B, fig. 27B is a block diagram of another application interaction device shown on the basis of the embodiment shown in fig. 26, where the picture obtaining module 620 includes:
the second obtaining sub-module 621 is configured to obtain, according to a correspondence between the association information and the pixel value, a target pixel value corresponding to the association information carried in the network request;
the picture searching submodule 623 is configured to search a target picture including a target pixel point in a pre-generated picture according to the target pixel value, where the target pixel point is a pixel point whose pixel value is the target pixel value.
Optionally, the association information includes: a Uniform Resource Locator (URL) address of the target application or jump instruction information;
wherein the skip indication information at least includes: and the parameter acquisition indication information is used for acquiring the target application parameters.
Referring to fig. 28A, fig. 28A is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 26, where the second obtaining sub-module 621 includes:
a seventh obtaining unit 6211, configured to, if the association information carried in the network request includes a URL address, obtain a target pixel value corresponding to a character in the URL address according to a correspondence between the character and the pixel value.
Referring to fig. 28B, fig. 28B is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 26, where the second obtaining sub-module 621 includes:
an eighth acquiring unit 6212 configured to acquire a target pixel difference value corresponding to a target character in the URL address according to a correspondence between characters and pixel difference values;
a ninth obtaining unit 6213, configured to obtain a target pixel value, where a difference value between target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition is the target pixel difference value.
Referring to fig. 29, fig. 29 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 26, where the second obtaining sub-module 621 includes:
a tenth obtaining unit 6214, configured to, if the association information carried in the network request includes the skip indication information, obtain, according to a corresponding relationship between the parameter obtaining indication information and the application parameter, a target application parameter corresponding to the parameter obtaining indication information;
an eleventh acquiring unit 6215 configured to acquire a target pixel value corresponding to the target application parameter according to the correspondence between the application parameter and the pixel value.
Referring to fig. 30, fig. 30 is a block diagram of another application interaction apparatus shown on the basis of the embodiment shown in fig. 26, where the second obtaining sub-module 621 includes:
a twelfth obtaining unit 6216, configured to, if the association information carried in the network request includes the skip indication information, obtain, according to a corresponding relationship between the parameter obtaining indication information and the application parameter, a target application parameter corresponding to the parameter obtaining indication information;
a thirteenth acquiring unit 6217 configured to acquire a target pixel difference value corresponding to the target application parameter according to a correspondence between the application parameter and the pixel difference value;
a fourteenth obtaining unit 6218, configured to obtain a target pixel value, where a difference value between target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition is the target pixel difference value.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, an embodiment of the present disclosure further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is configured to execute any of the application interaction methods for a terminal.
Correspondingly, an embodiment of the present disclosure further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is used to execute any of the application interaction methods described above for the server side.
Correspondingly, the embodiment of the present disclosure further provides an application interaction apparatus, where the apparatus is used for a terminal, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
outputting a target picture generated by a server side or the terminal according to the triggering operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
extracting the target application parameters from the target picture;
and opening the target application according to the target application parameters.
Fig. 31 is a schematic structural diagram illustrating an application interaction apparatus according to an exemplary embodiment. As shown in fig. 31, an application interaction apparatus 3100 is shown in accordance with an example embodiment, where the apparatus 3100 may be a computer, a mobile phone, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 31, the apparatus 3100 may include one or more of the following components: processing component 3101, memory 3102, power component 3103, multimedia component 3104, audio component 3105, input/output (I/O) interface 3106, sensor component 3107, and communication component 3108.
The processing component 3101 generally controls the overall operation of the device 3100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 3101 may include one or more processors 3109 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 3101 may include one or more modules that facilitate interaction between the processing component 3101 and other components. For example, the processing component 3101 may include a multimedia module to facilitate interaction between the multimedia component 3104 and the processing component 3101.
The memory 3102 is configured to store various types of data to support the operations at the device 3100. Examples of such data include instructions for any application or method operating on the device 3100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 3102 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 3103 provides power to the various components of the device 3100. The power components 3103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 3100.
The multimedia component 3104 includes a screen between the device 3100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 3104 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 3100 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 3105 is configured to output and/or input audio signals. For example, the audio component 3105 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 3100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in memory 3102 or transmitted via communication component 3108. In some embodiments, the audio component 3105 also includes a speaker for outputting audio signals.
I/O interface 3106 provides an interface between processing component 3101 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 3107 includes one or more sensors for providing various aspects of state assessment for the device 3100. For example, the sensor component 3107 may detect the open/closed state of the device 3100, the relative positioning of components, such as a display and keypad of the device 3100, the sensor component 3107 may also detect a change in position of the device 3100 or one component of the device 3100, the presence or absence of user contact with the device 3100, the orientation or acceleration/deceleration of the device 3100, and a change in temperature of the device 3100. The sensor assembly 3107 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 3107 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 3107 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 3108 is configured to facilitate communication between the apparatus 3100 and other devices in a wired or wireless manner. The device 3100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 3108 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 3108 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 3100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 3102, that includes instructions executable by the processor 3109 of the apparatus 3100 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 3100 to perform the above-described application interaction method.
Correspondingly, an embodiment of the present disclosure further provides an application interaction apparatus, where the apparatus is used at a server side, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a network request sent by a terminal, wherein the network request is used for requesting to jump to a target application and carries associated information corresponding to the target application;
obtaining a target picture according to the associated information, wherein the target picture is used for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
and pushing the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture.
As shown in fig. 32, fig. 32 is a schematic structural diagram illustrating a method for applying an interaction means 3200 according to an exemplary embodiment. For example, the apparatus 3200 may be provided as a server. Referring to fig. 32, the device 3200 includes a processing component 3222 that further includes one or more processors, and memory resources, represented by memory 3232, for storing instructions, e.g., applications, that are executable by the processing component 3222. The application programs stored in memory 3232 may include one or more modules that each correspond to a set of instructions. Further, the processing component 3222 is configured to execute instructions to perform the application interaction methods described above.
The device 3200 may also include a power component 3226 configured to perform power management of the device 3200, a wired or wireless network interface 3250 configured to connect the device 3200 to a network, and an input output (I/O) interface 3258. The device 3200 may operate based on an operating system stored in memory 3232, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (27)

1. An application interaction method, which is used for a terminal, the method comprising:
determining that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
outputting a target picture generated by a server side or the terminal according to the triggering operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
extracting the target application parameters from the target picture;
opening the target application according to the target application parameters;
the outputting the target picture generated by the terminal according to the trigger operation comprises:
determining a target pixel value according to the association information corresponding to the target application through a js script associated with the trigger operation;
calling a drawing Application Programming Interface (API) to generate a target picture corresponding to the target pixel value;
outputting the target picture generated by the terminal;
the determining a target pixel value according to the associated information corresponding to the target application includes:
if the associated information comprises a URL address, obtaining a target pixel difference value corresponding to a target character included in the URL address according to a preset corresponding relation between the character and the pixel difference value; the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value; determining the target pixel value according to the target pixel difference value;
if the associated information comprises jump indicating information, the jump indicating information comprises parameter acquisition indicating information for acquiring target application parameters; acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter; acquiring a target pixel difference value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel difference value, and then acquiring a target pixel value; and the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value.
2. The method of claim 1, wherein the determining that a trigger operation is detected comprises:
determining that a trigger operation is detected on a preset virtual key for opening the target application; or
Determining that a trigger operation for opening a preset display element of the target application is detected.
3. The method according to claim 1, wherein the outputting the target picture generated by the server side according to the trigger operation comprises:
generating a network request according to the triggering operation, wherein the network request is used for requesting to jump to the target application and carries associated information corresponding to the target application;
sending the network request to a server through network connection established with the server in advance so that the server can obtain a target picture according to the associated information;
receiving the target picture pushed by the server side;
and outputting the target picture generated by the server side.
4. The method of claim 1, wherein the extracting target application parameters from the target picture comprises:
scanning pixel points of a current screen picture comprising the target picture to obtain pixel values corresponding to the pixel points of each line in the target picture;
converting the pixel values corresponding to the pixel points of each row into numerical values in a digital sequence one by one;
searching for a preamble in the digital sequence; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
according to the lead code, the target characteristic sequence is found in the digital sequence;
and determining the target application parameters according to the target characteristic sequence.
5. The method of claim 4, wherein converting the pixel values corresponding to the pixels in each row into numerical values in a numerical sequence one by one comprises:
directly taking the pixel value corresponding to each pixel point of each row as a numerical value forming the digital sequence; or
And taking the pixel difference value between two pixel points with relative positions meeting the preset position condition as a numerical value forming the digital sequence.
6. The method of claim 4, wherein the searching for a preamble in the number sequence comprises:
searching whether a numerical value matched with the numerical value included in the target numerical sequence exists in the numerical sequence;
if a numerical value matching the numerical value included in the target number sequence exists in the numerical sequence, taking the numerical value matching the numerical value included in the target number sequence in the numerical sequence as the preamble;
the target number sequence is composed of a first preset number of preset values.
7. The method of claim 4, wherein finding the target signature sequence in the number sequence according to the preamble comprises:
taking a first numerical value of the numerical sequence after the preamble as a starting position of the target characteristic sequence;
and intercepting a plurality of numerical values of a second preset number from the initial position in the numerical sequence to obtain the target characteristic sequence.
8. The method of claim 4, wherein the determining the target application parameters according to the target feature sequence comprises:
and determining target application parameters corresponding to the target characteristic sequence according to the corresponding relation between the pre-stored characteristic sequence and the application parameters.
9. The method according to any one of claims 4-8, further comprising:
intercepting a plurality of numerical values of a third preset number from the numerical sequence starting from a first numerical value behind the target characteristic sequence to obtain a check sequence;
verifying the target characteristic sequence through the verification sequence to obtain a verification result;
and if the verification result is that the verification is passed, executing the step of opening the target application according to the target application parameters.
10. The method according to claim 9, wherein the verifying the target signature sequence by the verification sequence to obtain a verification result comprises:
calculating all values included in the check sequence and the target characteristic sequence according to a preset calculation mode to obtain a target value;
if the target value is consistent with the preset value, determining that the verification result is verification passing; otherwise, determining that the verification result is verification failure.
11. The method of claim 1, wherein the opening the target application according to target application parameters comprises:
determining whether the target application is installed locally or not according to the identity of the target application;
and if the target application is not locally installed, after the target application is downloaded and installed in the terminal background, opening the target application according to the target application parameters.
12. An application interaction method, wherein the method is used for a server side, and the method comprises the following steps:
receiving a network request sent by a terminal, wherein the network request is used for requesting to jump to a target application and carries associated information corresponding to the target application;
obtaining a target picture according to the associated information, wherein the target picture is used for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
pushing the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture;
the obtaining of the target picture according to the associated information includes:
obtaining a target pixel value corresponding to the associated information carried in the network request according to the corresponding relation between the associated information and the pixel value;
generating a target picture in real time according to the target pixel value; or
Searching a target picture comprising target pixel points in a pre-generated picture according to the target pixel value, wherein the target pixel points are pixel points with pixel values being the target pixel values;
the obtaining a target pixel value corresponding to the associated information carried in the network request according to the corresponding relationship between the associated information and the pixel value includes:
if the associated information carried in the network request comprises a URL address according to the corresponding relation between characters and pixel difference values, acquiring a target pixel difference value corresponding to a target character in the URL address; the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value; determining the target pixel value according to the target pixel difference value;
if the associated information carried in the network request comprises jump indication information, the jump indication information comprises parameter acquisition indication information used for acquiring target application parameters; acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter; acquiring a target pixel difference value corresponding to the target application parameter according to the corresponding relation between the application parameter and the pixel difference value; the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value; and determining the target pixel value according to the target pixel difference value.
13. An application interaction apparatus, wherein the apparatus is used for a terminal, and the apparatus comprises:
a trigger operation determination module configured to determine that a trigger operation is detected; the triggering operation is used for triggering skipping to a target application;
the picture output module is configured to output a target picture generated by a server side or the terminal according to the trigger operation; the target picture is a picture for bearing a jump request, the jump request comprises target application parameters, and the target application parameters at least comprise: an identity of the target application;
an extraction module configured to extract the target application parameters from the target picture;
an execution module configured to open the target application according to the target application parameters;
the picture output module includes:
a first conversion submodule configured to determine, through a js script associated with the trigger operation, a target pixel value according to association information corresponding to the target application;
the picture generation submodule is configured to call a drawing Application Programming Interface (API) to generate a target picture corresponding to the target pixel value;
a second output sub-module configured to output the target picture generated by the terminal;
the first conversion submodule includes:
a second obtaining unit configured to obtain a target pixel difference value corresponding to a target character included in a URL address according to a preset correspondence between a character and a pixel difference value if the association information includes the URL address; the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value;
a first determination unit configured to determine the target pixel value from the target pixel difference value;
or, the first conversion sub-module includes:
a third obtaining unit configured to, if the association information includes jump instruction information, the jump instruction information including parameter obtaining instruction information for obtaining a target application parameter; acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter;
a fifth obtaining unit, configured to obtain a target pixel value after obtaining a target pixel difference value corresponding to the target application parameter according to a corresponding relationship between the application parameter and the pixel difference value; and the difference value between the target pixel values corresponding to the two pixel points with the relative positions meeting the preset position condition is the target pixel difference value.
14. The apparatus of claim 13, wherein the trigger operation determination module comprises:
a first determining sub-module configured to determine that a trigger operation is detected on a preset virtual key for opening the target application;
a second determination submodule configured to determine that a trigger operation for opening a preset display element of the target application is detected.
15. The apparatus of claim 13, wherein the picture output module comprises:
a network request generation submodule configured to generate a network request according to the trigger operation, where the network request is used to request to jump to the target application, and the network request carries associated information corresponding to the target application;
the sending submodule is configured to send the network request to a server side through network connection established with the server side in advance so that the server side can obtain a target picture according to the associated information;
the receiving submodule is configured to receive the target picture pushed by the server side;
a first output sub-module configured to output the target picture generated by the server side.
16. The apparatus of claim 13, wherein the extraction module comprises:
the first obtaining submodule is configured to scan pixel points of a current screen picture including the target picture, and pixel values corresponding to the pixel points of each row in the target picture are obtained;
the second conversion submodule is configured to convert the pixel values corresponding to the pixel points of each row into numerical values in a digital sequence one by one;
a first lookup sub-module configured to look up a preamble in the sequence of numbers; the lead code is used for identifying the starting position of a target characteristic sequence corresponding to the target application parameter;
a second searching submodule configured to search the target feature sequence in the digital sequence according to the preamble;
a third determining sub-module configured to determine the target application parameter according to the target feature sequence.
17. The apparatus of claim 16, wherein the second conversion submodule comprises any one of:
the second determining unit is configured to directly take the pixel values corresponding to the pixel points of each row as numerical values forming the digital sequence;
a third determination unit configured to take a pixel difference value between two pixel points whose relative positions satisfy a preset position condition as a numerical value constituting the number sequence.
18. The apparatus of claim 16, wherein the first lookup submodule comprises:
a search unit configured to search the number sequence for whether there is a value matching a value included in a target number sequence;
a fourth determination unit configured to take a value in the number sequence that matches a value included in the target number sequence as the preamble if there is a value in the number sequence that matches a value included in the target number sequence;
the target number sequence is composed of a first preset number of preset values.
19. The apparatus of claim 16, wherein the second lookup sub-module comprises:
a fifth determining unit, configured to use a first value of the digital sequence after the preamble as a start position of the target feature sequence;
a sixth obtaining unit, configured to intercept a second preset number of multiple numerical values in the numerical sequence from the starting position to obtain the target feature sequence.
20. The apparatus of claim 16, wherein the third determination submodule comprises:
a sixth determining unit, configured to determine a target application parameter corresponding to the target feature sequence according to a correspondence between a pre-stored feature sequence and an application parameter.
21. The apparatus of any one of claims 16-20, further comprising:
the acquisition module is configured to intercept a plurality of numerical values of a third preset number from a first numerical value behind the target characteristic sequence to obtain a check sequence;
the verification module is configured to verify the target characteristic sequence through the verification sequence to obtain a verification result;
and the control module is configured to control the execution module to open the target application according to the target application parameter if the verification result is that the verification is passed.
22. The apparatus of claim 21, wherein the verification module comprises:
the calculation submodule is configured to calculate all values included in the check sequence and the target feature sequence according to a preset calculation mode to obtain a target value;
the verification result determining submodule is configured to determine that the verification result is verification passing if the target value is consistent with a preset value; otherwise, determining that the verification result is verification failure.
23. The apparatus of claim 13, wherein the means for performing comprises:
the judging submodule is configured to determine whether the target application is installed locally according to the identity of the target application;
and the execution sub-module is configured to open the target application according to the target application parameters after the target application is downloaded and installed in the terminal background if the target application is not installed locally.
24. An application interaction device, wherein the device is used for a server side, and the device comprises:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is configured to receive a network request sent by a terminal, the network request is used for requesting to jump to a target application, and the network request carries associated information corresponding to the target application;
a picture obtaining module configured to obtain a target picture according to the association information, where the target picture is a picture for bearing a skip request, the skip request includes target application parameters, and the target application parameters at least include: an identity of the target application;
the pushing module is configured to push the target picture to the terminal so that the terminal opens the target application according to the target application parameters extracted from the target picture after outputting the target picture;
the picture acquisition module comprises:
the second obtaining submodule is configured to obtain a target pixel value corresponding to the associated information carried in the network request according to the corresponding relation between the associated information and the pixel value;
a picture generation submodule configured to generate a target picture in real time according to the target pixel value; or
The picture searching submodule is configured to search a target picture comprising target pixel points in a pre-generated picture according to the target pixel value, wherein the target pixel points are pixel points with pixel values being the target pixel values;
the second acquisition sub-module includes:
an eighth obtaining unit, configured to, if the association information carried in the network request includes a URL address, obtain, according to a correspondence between characters and pixel difference values, a target pixel difference value corresponding to a target character in the URL address;
a ninth obtaining unit, configured to obtain a target pixel value, where a difference value between target pixel values corresponding to two pixel points whose relative positions satisfy a preset position condition is the target pixel difference value;
or, the second obtaining sub-module includes:
a twelfth obtaining unit, configured to, if the association information carried in the network request includes jump indication information, the jump indication information includes parameter obtaining indication information for obtaining a target application parameter; acquiring a target application parameter corresponding to the parameter acquisition indication information according to the corresponding relation between the parameter acquisition indication information and the application parameter;
a thirteenth acquisition unit configured to acquire a target pixel difference value corresponding to the target application parameter according to a correspondence between an application parameter and a pixel difference value;
and the fourteenth acquiring unit is configured to acquire a target pixel value, and a difference value between the target pixel values corresponding to two pixel points whose relative positions meet a preset position condition is the target pixel difference value.
25. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the application interaction method of any one of claims 1 to 11, or the application interaction method of claim 12.
26. An application interaction device, wherein the device is used for a terminal, and comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1 to 11.
27. An application interaction device, wherein the device is used for a server side, and comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of claim 12.
CN201710552955.1A 2017-06-14 2017-07-07 Application interaction method and device Active CN109213944B (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
CN201710552955.1A CN109213944B (en) 2017-07-07 2017-07-07 Application interaction method and device
PCT/CN2017/114508 WO2018227899A1 (en) 2017-06-14 2017-12-04 Application interaction method, interaction method and device
EP17913542.1A EP3627322A4 (en) 2017-06-14 2017-12-04 Application interaction method, interaction method and device
CN201780002125.XA CN108139952B (en) 2017-06-14 2017-12-04 Application interaction method, interaction method and device
US16/699,416 US10990461B2 (en) 2017-06-14 2019-11-29 Application interaction method, interaction method and apparatus
US17/207,251 US11360834B2 (en) 2017-06-14 2021-03-19 Application interaction method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710552955.1A CN109213944B (en) 2017-07-07 2017-07-07 Application interaction method and device

Publications (2)

Publication Number Publication Date
CN109213944A CN109213944A (en) 2019-01-15
CN109213944B true CN109213944B (en) 2020-10-30

Family

ID=64991474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710552955.1A Active CN109213944B (en) 2017-06-14 2017-07-07 Application interaction method and device

Country Status (1)

Country Link
CN (1) CN109213944B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504313A (en) * 2014-12-31 2015-04-08 北京畅游天下网络技术有限公司 Confidential treatment method and device for code
CN105574170A (en) * 2015-12-16 2016-05-11 深圳市金立通信设备有限公司 Web page link opening method and terminal
CN105763630A (en) * 2016-04-12 2016-07-13 百度在线网络技术(北京)有限公司 Information pushing method and device applied to mobile terminal
CN105808725A (en) * 2016-03-08 2016-07-27 腾讯科技(深圳)有限公司 Method and apparatus for processing application information
CN106126033A (en) * 2016-06-30 2016-11-16 珠海市魅族科技有限公司 A kind of method for sending information and device
CN106844019A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 Application control method, application program redirect associated configuration method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9484032B2 (en) * 2014-10-27 2016-11-01 Xerox Corporation Methods and systems for navigating through multimedia content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504313A (en) * 2014-12-31 2015-04-08 北京畅游天下网络技术有限公司 Confidential treatment method and device for code
CN106844019A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 Application control method, application program redirect associated configuration method and device
CN105574170A (en) * 2015-12-16 2016-05-11 深圳市金立通信设备有限公司 Web page link opening method and terminal
CN105808725A (en) * 2016-03-08 2016-07-27 腾讯科技(深圳)有限公司 Method and apparatus for processing application information
CN105763630A (en) * 2016-04-12 2016-07-13 百度在线网络技术(北京)有限公司 Information pushing method and device applied to mobile terminal
CN106126033A (en) * 2016-06-30 2016-11-16 珠海市魅族科技有限公司 A kind of method for sending information and device

Also Published As

Publication number Publication date
CN109213944A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US10104599B2 (en) Device binding methods and apparatuses
CN107329742B (en) Software development kit calling method and device
US10764934B2 (en) Method, apparatus for terminal device to access wireless network
US9667774B2 (en) Methods and devices for sending virtual information card
EP3174053A1 (en) Method, apparatus and system for playing multimedia data, computer program and recording medium
US20180004365A1 (en) Method and apparatus for recommending an interface theme
EP3057048A1 (en) Transfer method and apparatus
CN108764003B (en) Picture identification method and device
EP2978201B1 (en) Method and device for identifying telephone call
CN110996121A (en) Information processing method and device, electronic equipment and storage medium
CN106375096B (en) short message verification method and device
CN108156271B (en) Communication method and device and electronic equipment
EP3051772A1 (en) Method and apparatus for accessing network
CN110704054A (en) Method and device for accessing target application program through applet, electronic equipment and storage medium
CN108156220B (en) Communication method and device
CN109246094B (en) User terminal verification method, device and storage medium
CN110852163A (en) Binding method and device
CN108984417B (en) Software testing method, device, terminal and storage medium
US20170075671A1 (en) Method and apparatus for installing application and smart device using the same
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN109885360B (en) Data processing method, device and storage medium
CN110008668B (en) Data processing method, device and storage medium
CN109213944B (en) Application interaction method and device
EP3128722A1 (en) File transmission method and apparatus, computer program and recording medium

Legal Events

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