CN111666165A - Method, device, equipment and storage medium for function calling between applications - Google Patents

Method, device, equipment and storage medium for function calling between applications Download PDF

Info

Publication number
CN111666165A
CN111666165A CN202010482536.7A CN202010482536A CN111666165A CN 111666165 A CN111666165 A CN 111666165A CN 202010482536 A CN202010482536 A CN 202010482536A CN 111666165 A CN111666165 A CN 111666165A
Authority
CN
China
Prior art keywords
application
function
called
inter
metadata
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010482536.7A
Other languages
Chinese (zh)
Inventor
欧阳英俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010482536.7A priority Critical patent/CN111666165A/en
Publication of CN111666165A publication Critical patent/CN111666165A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

The invention discloses a method, a device, equipment and a storage medium for calling functions among applications, which are used for receiving a function calling request among applications, wherein the function calling request among applications comprises a second application and a function to be called; checking whether the current equipment is provided with the second application or not, and if the current equipment is provided with the second application, reading and analyzing metadata set for the function to be called by the second application; judging whether the first application supports the function to be called or not according to the metadata; and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application. Therefore, when the first application needs to call the function to be called of the second application, whether the first application supports the function to be called or not is judged through the metadata set by the second application, and the function to be called is used according to the description document, so that the success rate of interaction between applications is improved, and the problems that function call between applications fails and user experience is poor are solved.

Description

Method, device, equipment and storage medium for function calling between applications
Technical Field
The present invention relates to the field of machine application interaction, and in particular, to a method, an apparatus, a device, and a storage medium for inter-application function invocation.
Background
With the development of intelligent devices, the requirements on application programs and functions thereof are also higher and higher. It is also common for functions to be mutually invoked between different applications on the same device. However, two applications that need to make function calls may fail to make function calls or even cause system crash because the version of one of the applications is not updated, but it is difficult for users to find problems in time, which results in poor user experience,
disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for function calling between applications, and aims to solve the problems of function calling failure between applications and poor user experience.
In order to solve the above problem, the present invention provides a method for inter-application function invocation, which comprises:
receiving an inter-application function call request sent by a first application, wherein the inter-application function call request comprises a second application and a function to be called;
checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application;
judging whether the first application supports the function to be called or not according to the metadata;
and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application.
Preferably, the step of determining whether the first application supports the function to be called according to the metadata includes:
acquiring and analyzing metadata of the function to be called, and acquiring a plurality of target authorities required by calling the function to be called;
acquiring a plurality of actual authorities possessed by the first application, and comparing the actual authorities with the target authorities;
if the plurality of actual authorities comprise the plurality of target authorities, judging that the first application supports the function to be called;
and if the plurality of actual authorities do not comprise one or more of the plurality of target authorities, judging that the first application does not support the function to be called.
Preferably, the step of checking whether the second application is installed on the current device, and if the second application is installed on the current device, reading and analyzing the metadata set for the function to be called by the second application further includes:
judging whether the first application calls the function to be called of the second application for the first time;
if the first application calls the function to be called of the second application for the first time, executing the following steps: checking whether the second application is installed on the current equipment, and reading and analyzing the metadata of the function to be called if the second application is installed on the current equipment;
if the first application does not call the function to be called of the second application for the first time, checking a call record, and judging whether the function to be called of the second application is successfully called;
if the function to be called of the second application is successfully called, executing the following steps: and using the function to be called by the first application according to the description document of the second application.
Preferably, the step of checking whether the second application is installed on the current device includes:
acquiring an application list of the current equipment, and comparing the specific name of the second application with a plurality of names in the application list;
and if the plurality of names in the application list comprise the specific name of the second application, judging that the second application is installed in the current equipment.
Preferably, before the step of determining whether the first application supports the function to be called according to the metadata, the method further includes:
acquiring and analyzing metadata of the function to be called, and judging whether the second application has an interaction authority for interacting the function to be called with the first application;
if the second application has the interaction authority of interacting the function to be called with the first application, executing the following steps: and judging whether the first application supports the function to be called or not according to the metadata.
Preferably, after the step of determining whether the first application supports the function to be called according to the metadata, the method further includes:
if the first application does not support the function to be called, outputting unsupported prompt information, and acquiring current version information and latest version information of the first application;
and comparing the current version information with the latest version information, and if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application.
Preferably, after the step of reading and parsing the metadata set for the function to be called by the second application, the method further includes:
acquiring a function list of the second application installed currently, and judging whether the second application has the function to be called or not according to the function list;
and if the second application does not have the function to be called, outputting prompt information without the function to be called and/or outputting version upgrading prompt information of the second application.
In addition, to achieve the above object, the present invention further provides an apparatus for inter-application function invocation, including:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an inter-application function calling request sent by a first application, and the inter-application function calling request comprises a second application and a function to be called;
the analysis module is used for checking whether the second application is installed on the current equipment or not, and reading and analyzing the metadata set for the function to be called by the second application if the second application is installed on the current equipment;
the judging module is used for judging whether the first application supports the function to be called or not according to the metadata;
and the using module is used for using the function to be called by the first application according to the description document of the second application if the first application supports the function to be called.
In addition, in order to achieve the above object, the present invention further provides an inter-application function calling device, where the inter-application function calling device includes a processor, a memory, and an inter-application function calling program stored in the memory, and when the inter-application function calling program is executed by the processor, the steps of the inter-application function calling method are implemented.
In addition, to achieve the above object, the present invention further provides a computer storage medium having a program for inter-application function call stored thereon, where the program for inter-application function call implements the steps of the method for inter-application function call as described above when the program is executed by a processor.
Compared with the prior art, the invention discloses a method, a device, equipment and a storage medium for calling functions among applications, which are used for receiving a function calling request among applications, wherein the function calling request among applications comprises a second application and a function to be called; checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application; judging whether the first application supports the function to be called or not according to the metadata; and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application. Therefore, when a first application needs to call a function to be called of a second application, whether the first application supports the function to be called is judged through metadata set for the function to be called by the second application, and the function to be called is used according to a description document, so that the success rate of interaction between applications is improved, and the problems that function calling between applications fails and user experience is poor are solved.
Drawings
Fig. 1 is a hardware configuration diagram of an apparatus for inter-application function call according to embodiments of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for inter-application function invocation in accordance with the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a method for inter-application function invocation in accordance with the present invention;
fig. 4 is a functional block diagram of a first embodiment of the apparatus for inter-application function call according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The device for calling the function between the applications mainly related to the embodiment of the invention is network connection equipment capable of realizing network connection, and the device for calling the function between the applications can be network equipment such as a mobile terminal, a computer, an iPad and the like.
Referring to fig. 1, fig. 1 is a hardware configuration diagram of a device for inter-application function call according to embodiments of the present invention. In this embodiment of the present invention, the device for inter-application function call may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is a readable storage medium, may include an operating system, a network communication module, an application program module, and a program for inter-application function calling. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 serves to call a program of the inter-application function call stored in the memory 1005 and to execute the steps of the method of the inter-application function call.
A first embodiment of the present invention is proposed based on the inter-application function call device. Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for inter-application function invocation according to the present invention.
The embodiment provides a method for function calling between applications, which comprises the following steps:
step S101: receiving an inter-application function call request sent by a first application, wherein the inter-application function call request comprises a second application and a function to be called;
when using a device such as a mobile phone, an iPad, or a computer that can call functions between applications, it is often necessary to call a certain function of another application from a currently running application. For example, a payment function of the internet bank needs to be called when a shopping application is used, a video playing function of a player needs to be called when WeChat is used, and the like. However, in the actual use process, the function call often fails due to restrictions of version, authority, and the like.
In this embodiment, the inter-application function calling device may perform human-computer interaction with a user, and when the user uses a currently active first application, an instruction for inter-application function calling may be triggered, and the first application generates an inter-application function calling request according to the application function calling instruction. It is to be understood that the inter-application function call request includes the second application and the function to be called. For example, when a payment function of the internet bank is called when the shopping application is used, the first application is the shopping application, the second application is the internet bank, and the function to be called is the payment function.
Step S102: checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application;
currently, there are many technical solutions that can check whether a current device has an application installed, for example, for a computer, it can check through a code: firstly, looking up a system registry, and traversing the installed application HKEY _ LOCAL _ MACHINE \ software \ Micrsoft \ Windows \ current version \ uninstantall through Uninstall.
Specifically, the step S102 of checking whether the second application is installed on the current device includes:
step S102 a: acquiring an application list of the current equipment, and comparing the specific name of the second application with a plurality of names in the application list;
and acquiring and viewing an application list of the current equipment, wherein the application list at least comprises the name of the installed application and can also comprise information such as an icon, a version number, an update date, use frequency and the like. And after the plurality of names are obtained through the application list, comparing the specific name of the second application with the plurality of names in the application list.
Step S102 b: and if the plurality of names in the application list comprise the specific name of the second application, judging that the second application is installed in the current equipment.
And if one of the plurality of names of the application list is the same as the name of the second application, judging that the second application is installed in the current equipment.
On the contrary, if the name of the application list is not the same as the name of the second application, it is determined that the second application is not installed in the current device. And if the second application is not installed, outputting prompt information of the second application not installed.
And if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application. And when the second application updates or newly adds a certain external function, synchronously updating or newly adding the metadata of the external function. For example, in an android system, when a foreign function is newly added to an application, metadata (metadata) of the function is newly added to an android manifest (xml) file of the application, a key and a value corresponding to the metadata are written in a foreign document of the application, the meanings of the key and the value are described, and the mode (such as a starting mode and a reference mode) of calling the function can be described. And after the android manifest is set, issuing an application compression package and an interface document for a user to download, install and use.
Further, the step S102: checking whether the second application is installed on the current device, if the second application is installed on the current device, reading and analyzing the metadata set for the function to be called by the second application further comprises:
step S1020 a: judging whether the first application calls the function to be called of the second application for the first time;
and inquiring the record of the first application for calling the second application according to the historical calling record of the current equipment. If the history calling record does not have the record of the function to be called of the second application called by the first application, it indicates that the first application calls the function to be called of the second application for the first time. If the history calling record contains the record of the function to be called of the second application called by the first application, it indicates that the first application does not call the function to be called of the second application for the first time. It will be appreciated that since the history call log may be cleared by the system or the user, it is generally only possible to determine whether the history call log is the first call in the time frame in which it exists.
Step S1020 b: if the first application calls the function to be called of the second application for the first time, executing the following steps: checking whether the second application is installed on the current equipment, and reading and analyzing the metadata of the function to be called if the second application is installed on the current equipment;
if the first application calls the function to be called of the second application for the first time, no history record which can be relied on exists, whether the second application is installed on the current equipment needs to be checked, and if the second application is installed on the current equipment, the step of reading and analyzing the metadata of the function to be called is carried out, so that relevant information is obtained.
Step S1020 c: if the first application does not call the function to be called of the second application for the first time, checking a call record, and judging whether the function to be called of the second application is successfully called;
if the first application does not call the function to be called of the second application for the first time, whether the historical call is successful or not can be judged according to the call record.
Step S1020 d: if the function to be called of the second application is successfully called, executing the following steps: and using the function to be called by the first application according to the description document of the second application.
If the function to be called of the second application is not successfully called, executing the following steps: and checking whether the second application is installed on the current equipment, and reading and analyzing the metadata of the function to be called if the second application is installed on the current equipment.
Therefore, under the condition that the historical calling record exists, the metadata does not need to be checked, the repeated work is reduced, and the processing efficiency of the calling request is improved.
Step S103: judging whether the first application supports the function to be called or not according to the metadata;
generally, the metadata includes an application name, an application identifier, activity of the application, contentprovider, broadcast, service, API (application programming Interface), a right declaration required for the corresponding application to enable the function, a right declaration required for other applications to call the function, and the like. Based on this, whether the first application supports the function to be invoked may be determined by the metadata.
Specifically, the step S103: the step of judging whether the first application supports the function to be called or not according to the metadata comprises the following steps:
step S103 a: acquiring and analyzing metadata of the function to be called, and acquiring a plurality of target authorities required by calling the function to be called;
the metadata declares a plurality of target authorities required for calling the function to be called, so that the plurality of target authorities can be obtained by analyzing the metadata of the function to be called. It is understood that the number of the target rights may be one or more. For example, if the function to be called is to take a picture, the target permission may be to access a camera.
Step S103 b: acquiring a plurality of actual authorities possessed by the first application, and comparing the actual authorities with the target authorities;
and acquiring a plurality of actual authorities of the first application by inquiring the authority list of the first application. After the target authority and the actual authority are obtained, comparing the plurality of actual authorities with the plurality of target authorities
Step S103 c: if the plurality of actual authorities comprise the plurality of target authorities, judging that the first application supports the function to be called;
if the plurality of actual permissions include the plurality of target permissions, the condition that the first application device uses the function to be called is indicated, and therefore it is determined that the first application supports the function to be called.
Step S103 d: and if the plurality of actual authorities comprise one or more of the plurality of target authorities, judging that the first application does not support the function to be called.
If the plurality of actual authorities include one or more of the plurality of target authorities, it is indicated that the first application does not have the condition for using the function to be called, and therefore it is determined that the first application does not support the function to be called.
And if the first application does not support the function to be called, outputting a prompt message which is not supported by the authority for granting the related authority.
Further, the step S103: the step of judging whether the first application supports the function to be called or not according to the metadata further comprises the following steps:
step S1030: acquiring and analyzing metadata of the function to be called, and judging whether the second application has an interaction authority for interacting the function to be called with the first application;
the metadata of the function to be called also comprises the corresponding authority which is applied to other applications and is needed to interact with the function to be called. For example, the current WeChat and Payment treasures do not support interaction, and therefore, there is no interaction authority between the WeChat and Payment treasures. For another example, when shopping is carried out by the Jingdong, payment can be carried out by the WeChat, and the Jingdong and the WeChat have the interactive right.
If the second application has the interaction authority of interacting the function to be called with the first application, executing the following steps: and judging whether the first application supports the function to be called or not according to the metadata.
Otherwise, if the second application has the interaction authority of interacting the function to be called with the first application, outputting unsupported prompt information.
Step S104: and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application.
If the first application supports the function to be called, further obtaining a description document of the second application, wherein the description document comprises a relevant description for using the function to be called, so that the corresponding function to be called is used according to the description document when the second application is called.
According to the scheme, the inter-application function calling request sent by the first application is received, wherein the inter-application function calling request comprises the second application and the function to be called; checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application; judging whether the first application supports the function to be called or not according to the metadata; and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application. Therefore, when a first application needs to call a function to be called of a second application, whether the first application supports the function to be called is judged through metadata set for the function to be called by the second application, and the function to be called is used according to a description document, so that the success rate of interaction between applications is improved, and the problems that function calling between applications fails and user experience is poor are solved.
Based on the first embodiment shown in fig. 2, a second embodiment of the present invention is proposed, and referring to fig. 3, fig. 3 is a flowchart illustrating a first embodiment of a method for inter-application function invocation according to the present invention.
After the step of judging whether the first application supports the function to be called according to the metadata, the method further comprises the following steps:
step S1031: if the first application does not support the function to be called, outputting unsupported prompt information, and acquiring current version information and latest version information of the first application;
and acquiring a plurality of target authorities required for calling the function to be called according to the metadata of the function to be called, and acquiring a plurality of actual authorities of the first application by inquiring an authority list of the first application. And after the target authority and the actual authority are obtained, comparing the plurality of actual authorities with the plurality of target authorities. If the plurality of actual authorities include one or more of the plurality of target authorities, it is indicated that the first application does not have the condition for using the function to be called, and therefore it is determined that the first application does not support the function to be called. And if the first application does not support the function to be called, outputting unsupported prompt information, and acquiring the current version information and the latest version information of the first application. Consulting current version information of the first application from a current device; latest version information of the first application is acquired from the broadcast of the first application.
Step S1032: and comparing the current version information with the latest version information, and if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application.
And comparing the current version information with the latest version information to judge whether the first application does not support the function to be called due to the fact that the version of the first application is too low. And if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application.
Therefore, under the condition that the first application does not support the function to be called, the unsupported reason is checked, and a corresponding solution is obtained. In this embodiment, if the first application version is not supported due to being too low, the problem may be solved by version upgrade.
Further, after the step of reading and parsing the metadata set for the function to be called by the second application, the method further includes:
step S1021: acquiring a function list of the second application installed currently, and judging whether the second application has the function to be called or not according to the function list;
it is to be understood that, if the function to be called is the function added by the second application corresponding to the latest version, the function to be called is not configured by the second application of the old version.
The embodiment obtains and views the function list of the installed second application through the code, and obtains the functions of the installed second application. Comparing the function to be called with the functions in the function list, and if the functions in the function list comprise the function to be called, judging that the second application has the function to be called; otherwise, if the function in the function list does not include the function to be called, it is determined that the second application does not have the function to be called.
Step S1022: and if the second application does not have the function to be called, outputting prompt information without the function to be called and/or outputting version upgrading prompt information of the second application.
Generally, if the second application does not have the function to be called, it may be that the function to be called is a new function added to a new version, and therefore, the second application on the current device needs to be updated to the latest version to use the function to be called.
In this embodiment, the current version information of the second application is compared with the latest version information, and if the current version information of the second application is not the latest version information, the version upgrade prompt information of the second application is output. Therefore, the failure of function calling between the applications caused by that the second application is not updated in time can be solved.
According to the scheme, if the first application does not support the function to be called, the unsupported prompt information is output, and the current version information and the latest version information of the first application are acquired; and comparing the current version information with the latest version information, and if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application. Acquiring a function list of the second application installed currently, and judging whether the second application has the function to be called or not according to the function list; and if the second application does not have the function to be called, outputting prompt information without the function to be called and/or outputting version upgrading prompt information of the second application. Therefore, under the condition that the function to be called is called unsuccessfully, the version information of the first application and the second application is checked, the problem that function calling fails among applications due to too low version is solved, the success rate of interaction among applications is improved, and the problems that function calling fails among applications and user experience is poor are solved.
In addition, the embodiment of the invention also provides a device for calling the function between the applications. Specifically, referring to fig. 4, fig. 4 is a functional module diagram of a first embodiment of an apparatus for inter-application function call according to the present invention, where the apparatus for inter-application function call includes:
a receiving module 10, configured to receive an inter-application function call request sent by a first application, where the inter-application function call request includes a second application and a function to be called;
the analysis module 20 is configured to check whether the second application is installed on the current device, and if the second application is installed on the current device, read and analyze metadata set for the function to be called by the second application;
a determining module 30, configured to determine whether the first application supports the function to be called according to the metadata;
a using module 40, configured to, if the first application supports the function to be called, use, by the first application, the function to be called according to the specification document of the second application.
Further, the judging module comprises:
the first obtaining unit is used for obtaining and analyzing the metadata of the function to be called and obtaining a plurality of target authorities required by calling the function to be called;
the second acquisition unit is used for acquiring a plurality of actual authorities possessed by the first application and comparing the actual authorities with the target authorities;
a first determining unit, configured to determine that the first application supports the function to be called if the plurality of actual permissions include the plurality of target permissions;
a second determining unit, configured to determine that the first application does not support the function to be invoked if the plurality of actual permissions do not include one or more of the plurality of target permissions.
Further, the parsing module further comprises:
the first judging unit is used for judging whether the first application calls the function to be called of the second application for the first time;
a first execution unit, configured to, if the first application calls the function to be called of the second application for the first time, execute the following steps: checking whether the second application is installed on the current equipment, and reading and analyzing the metadata of the function to be called if the second application is installed on the current equipment;
a second determining unit, configured to check a call record and determine whether the function to be called of the second application is successfully called if the first application does not call the function to be called of the second application for the first time;
a second execution unit, configured to, if the function to be called of the second application has been successfully called, execute the following steps: and using the function to be called by the first application according to the description document of the second application.
Further, the parsing module comprises:
the comparison unit is used for acquiring an application list of the current device and comparing the specific name of the second application with a plurality of names in the application list;
a third determining unit, configured to determine that the second application is installed in the current device if the specific name of the second application is included in the multiple names in the application list.
Further, the judging module comprises:
the third judging unit is used for acquiring and analyzing the metadata of the function to be called and judging whether the second application has the interaction authority of interacting the function to be called with the first application;
a third execution unit, configured to execute the following steps if the second application has an interaction permission to interact with the first application for the function to be called: and judging whether the first application supports the function to be called or not according to the metadata.
Further, the determining module further includes:
the first output unit is used for outputting unsupported prompt information and acquiring current version information and latest version information of the first application if the first application does not support the function to be called;
and the second output unit is used for comparing the current version information with the latest version information, and if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application.
Further, the parsing module further comprises:
a fourth judging unit, configured to obtain a function list of the currently installed second application, and judge whether the second application has the function to be called according to the function list;
and the third output unit is used for outputting prompt information without the function to be called and/or outputting version upgrading prompt information of the second application if the second application does not have the function to be called.
In addition, an embodiment of the present invention further provides a computer storage medium, where a program for inter-application function call is stored on the computer storage medium, and when the program for inter-application function call is executed by a processor, the steps of the method for inter-application function call are implemented, which are not described herein again.
Compared with the prior art, the method, the device, the equipment and the storage medium for calling the inter-application function, provided by the invention, receive the inter-application function calling request sent by the first application, wherein the inter-application function calling request comprises the second application and the function to be called; checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application; judging whether the first application supports the function to be called or not according to the metadata; and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application. Therefore, when a first application needs to call a function to be called of a second application, whether the first application supports the function to be called is judged through metadata set for the function to be called by the second application, and the function to be called is used according to a description document, so that the success rate of interaction between applications is improved, and the problems that function calling between applications fails and user experience is poor are solved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (10)

1. A method for inter-application function invocation, the method comprising:
receiving an inter-application function call request sent by a first application, wherein the inter-application function call request comprises a second application and a function to be called;
checking whether the second application is installed on the current equipment, and if the second application is installed on the current equipment, reading and analyzing metadata set for the function to be called by the second application;
judging whether the first application supports the function to be called or not according to the metadata;
and if the first application supports the function to be called, using the function to be called by the first application according to the description document of the second application.
2. The method according to claim 1, wherein the step of determining whether the first application supports the function to be called according to the metadata comprises:
acquiring and analyzing metadata of the function to be called, and acquiring a plurality of target authorities required by calling the function to be called;
acquiring a plurality of actual authorities possessed by the first application, and comparing the actual authorities with the target authorities;
if the plurality of actual authorities comprise the plurality of target authorities, judging that the first application supports the function to be called;
and if the plurality of actual authorities do not comprise one or more of the plurality of target authorities, judging that the first application does not support the function to be called.
3. The method according to claim 1, wherein the step of checking whether the second application is installed on the current device, and if the second application is installed on the current device, reading and parsing the metadata set for the function to be called by the second application further comprises:
judging whether the first application calls the function to be called of the second application for the first time;
if the first application calls the function to be called of the second application for the first time, executing the following steps: checking whether the second application is installed on the current equipment, and reading and analyzing the metadata of the function to be called if the second application is installed on the current equipment;
if the first application does not call the function to be called of the second application for the first time, checking a call record, and judging whether the function to be called of the second application is successfully called;
if the function to be called of the second application is successfully called, executing the following steps: and using the function to be called by the first application according to the description document of the second application.
4. The method of claim 1, wherein the step of checking whether the second application is installed on the current device comprises:
acquiring an application list of the current equipment, and comparing the specific name of the second application with a plurality of names in the application list;
and if the plurality of names in the application list comprise the specific name of the second application, judging that the second application is installed in the current equipment.
5. The method according to claim 1, wherein the step of determining whether the first application supports the function to be called according to the metadata further comprises:
acquiring and analyzing metadata of the function to be called, and judging whether the second application has an interaction authority for interacting the function to be called with the first application;
if the second application has the interaction authority of interacting the function to be called with the first application, executing the following steps: and judging whether the first application supports the function to be called or not according to the metadata.
6. The method according to claim 1, wherein the step of determining whether the first application supports the function to be called according to the metadata further comprises:
if the first application does not support the function to be called, outputting unsupported prompt information, and acquiring current version information and latest version information of the first application;
and comparing the current version information with the latest version information, and if the current version information of the first application is not the latest version information, outputting version upgrading prompt information of the first application.
7. The method according to claim 1, wherein the step of reading and parsing the metadata set for the function to be called by the second application is followed by further comprising:
acquiring a function list of the second application installed currently, and judging whether the second application has the function to be called or not according to the function list;
and if the second application does not have the function to be called, outputting prompt information without the function to be called and/or outputting version upgrading prompt information of the second application.
8. An apparatus for inter-application function invocation, the apparatus comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an inter-application function calling request sent by a first application, and the inter-application function calling request comprises a second application and a function to be called;
the analysis module is used for checking whether the second application is installed on the current equipment or not, and reading and analyzing the metadata set for the function to be called by the second application if the second application is installed on the current equipment;
the judging module is used for judging whether the first application supports the function to be called or not according to the metadata;
and the using module is used for using the function to be called by the first application according to the description document of the second application if the first application supports the function to be called.
9. An inter-application function calling device, characterized in that the inter-application function calling device comprises a processor, a memory and a program of inter-application function calling stored in the memory, and when the program of inter-application function calling is executed by the processor, the steps of the method of inter-application function calling according to any one of claims 1-7 are implemented.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a program of inter-application function calls, which when executed by a processor implement the steps of the method of inter-application function calls according to any one of claims 1-7.
CN202010482536.7A 2020-05-29 2020-05-29 Method, device, equipment and storage medium for function calling between applications Pending CN111666165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010482536.7A CN111666165A (en) 2020-05-29 2020-05-29 Method, device, equipment and storage medium for function calling between applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010482536.7A CN111666165A (en) 2020-05-29 2020-05-29 Method, device, equipment and storage medium for function calling between applications

Publications (1)

Publication Number Publication Date
CN111666165A true CN111666165A (en) 2020-09-15

Family

ID=72385347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010482536.7A Pending CN111666165A (en) 2020-05-29 2020-05-29 Method, device, equipment and storage medium for function calling between applications

Country Status (1)

Country Link
CN (1) CN111666165A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040924A1 (en) * 2011-07-13 2014-02-06 Adobe Systems Incorporated Invocation of additional processing using remote procedure calls
JP2014081705A (en) * 2012-10-15 2014-05-08 Sharp Corp Information processing terminal and method of controlling information processing terminal
US20150113544A1 (en) * 2013-03-25 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method for controlling process of application and computer system
CN107193609A (en) * 2017-05-27 2017-09-22 北京奇虎科技有限公司 Functional module call method and device, electronic equipment in
CN110062106A (en) * 2019-03-27 2019-07-26 努比亚技术有限公司 A kind of call method of application program, mobile terminal and storage medium
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110990075A (en) * 2019-11-18 2020-04-10 北京小米移动软件有限公司 Starting method, device and equipment of fast application and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040924A1 (en) * 2011-07-13 2014-02-06 Adobe Systems Incorporated Invocation of additional processing using remote procedure calls
JP2014081705A (en) * 2012-10-15 2014-05-08 Sharp Corp Information processing terminal and method of controlling information processing terminal
US20150113544A1 (en) * 2013-03-25 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method for controlling process of application and computer system
CN107193609A (en) * 2017-05-27 2017-09-22 北京奇虎科技有限公司 Functional module call method and device, electronic equipment in
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110062106A (en) * 2019-03-27 2019-07-26 努比亚技术有限公司 A kind of call method of application program, mobile terminal and storage medium
CN110990075A (en) * 2019-11-18 2020-04-10 北京小米移动软件有限公司 Starting method, device and equipment of fast application and storage medium

Similar Documents

Publication Publication Date Title
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
KR101456489B1 (en) Method and apparatus for managing access privileges in a CLDC OSGi environment
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
CN110597531B (en) Distributed module upgrading method and device and storage medium
US20120227032A1 (en) Method, apparatus, and system for invoking widget
CN109391676B (en) Terminal device control method, terminal device, and computer-readable storage medium
CN110688232A (en) Application program calling method, terminal device and computer readable storage medium
CN110457049B (en) Method and device for realizing plug-in automation, electronic equipment and storage medium
CN110543327A (en) Service component multiplexing method and device, computer equipment and storage medium
CN112667426A (en) Log analysis method and device
CN113849199B (en) Method and device for cross-system installation of application, electronic equipment and storage medium
CN113330419A (en) Equipment application installation method and device
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN110610080B (en) Application isolation implementation method, mobile terminal, computer equipment and storage medium
CN111666165A (en) Method, device, equipment and storage medium for function calling between applications
CN108628620B (en) POS application development implementation method and device, computer equipment and storage medium
CN106778270B (en) Malicious application detection method and system
CN112130900B (en) User information management method, system, equipment and medium for BMC
CN114238021A (en) SDK interface positioning method, device, equipment and computer storage medium
CN113656009A (en) Macro processing method and device, electronic equipment and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN113282363A (en) Method and device for optimizing hybrid APP
US20030126135A1 (en) Remote resource management of local devices
CN108804236B (en) AIDL file sharing method and system
KR101155218B1 (en) System, device and the method for installing application using package files, and server for creatincation using package filesfiles

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