CN116361113A - Application state acquisition method and device, electronic equipment and readable storage medium - Google Patents

Application state acquisition method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116361113A
CN116361113A CN202310281969.XA CN202310281969A CN116361113A CN 116361113 A CN116361113 A CN 116361113A CN 202310281969 A CN202310281969 A CN 202310281969A CN 116361113 A CN116361113 A CN 116361113A
Authority
CN
China
Prior art keywords
application
state
starting
service
intermediate service
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
CN202310281969.XA
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310281969.XA priority Critical patent/CN116361113A/en
Publication of CN116361113A publication Critical patent/CN116361113A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification discloses an application state acquisition method, an application state acquisition device, an electronic device and a computer readable storage medium, wherein in the application state acquisition method, when a call request of a first application in the electronic device for calling a local second application is detected, the second application is controlled to start, the starting of an intermediate service is triggered, the intermediate service can acquire the starting state of the second application, the first application acquires the starting state of the second application through communication with the intermediate service, and the accuracy of the first application in acquiring the starting state of the second application is ensured.

Description

Application state acquisition method and device, electronic equipment and readable storage medium
The scheme is divided application, and the application date of the mother application is: 2020-02-24; application number: 202010113312.9; the invention name is as follows: application state acquisition method, device, electronic equipment and readable storage medium.
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an application state obtaining method, an application state obtaining device, an electronic device, and a readable storage medium.
Background
With the continuous development of science and technology, electronic technology has also been rapidly developed, and service functions that can be realized by electronic devices are more and more abundant. In the prior art, when using an electronic device, a user often encounters other applications that call local in the running process in one application, for example, when using a browser, if a payment scene is encountered, payment applications such as payment treasures, online banks, etc. are called.
Disclosure of Invention
The embodiment of the specification provides an application state acquisition method, an application state acquisition device, electronic equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present disclosure provides an application state obtaining method, applied to an electronic device, where a first application and a second application are installed, the method including:
in the running process of the first application, if a call request of the first application for the second application is detected, controlling the second application to start;
starting an intermediate service corresponding to the second application, wherein the intermediate service can acquire the starting state of the second application and can communicate with the first application;
and communicating with the intermediate service through the first application to enable the first application to acquire the starting state of the second application.
In a second aspect, an embodiment of the present disclosure provides an application state obtaining apparatus, applied to an electronic device, in which a first application and a second application are installed, the apparatus including:
the detection module is used for controlling the second application to start if the calling request of the first application for the second application is detected in the running process of the first application;
an intermediate service starting module, configured to start an intermediate service corresponding to the second application, where the intermediate service is capable of acquiring a starting state of the second application, and the intermediate service is capable of communicating with the first application;
and the acquisition module is used for communicating with the intermediate service through the first application so that the first application acquires the starting state of the second application.
In a third aspect, the present description provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor performing the steps of any of the methods described above.
In a fourth aspect, embodiments of the present description provide a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements the steps of any of the methods described above.
The embodiment of the specification has the following beneficial effects:
in the application state acquisition method provided by the embodiment of the specification, when a first application installed in an electronic device detects a call request of the first application to a second application in a running process, the second application is opened; after the second application is opened, starting an intermediate service corresponding to the second application, wherein the intermediate service can acquire the starting state of the second application, and the intermediate service can communicate with the first application; the first application obtains the start-up state of the second application by communicating with the intermediary service. In the scheme, the intermediate service can acquire the starting state of the second application, so that the first application acquires the starting state of the second application by accessing the intermediate service, the first application can accurately acquire the starting state of the second application, and the accuracy of the acquired starting state of the second application is ensured; further, whether the second application is started successfully or not can be accurately obtained, so that the calling condition of the second application can be accurately obtained, if the second application is started successfully, the second application can feed back a calling result based on the calling request, and if the second application is started successfully, the calling fails.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the specification. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flowchart of an application state obtaining method provided in the first aspect of the embodiment of the present disclosure;
fig. 2 is an interaction schematic diagram of an application state acquisition method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an application state obtaining apparatus provided in a second aspect of the embodiment of the present disclosure;
fig. 4 is a schematic diagram of an electronic device according to a third aspect of the embodiments of the present disclosure.
Detailed Description
In order to better understand the technical solutions described above, the technical solutions of the embodiments of the present specification are described in detail below through the accompanying drawings and the specific embodiments, and it should be understood that the specific features of the embodiments of the present specification and the specific features of the embodiments of the present specification are detailed descriptions of the technical solutions of the embodiments of the present specification, and not limit the technical solutions of the present specification, and the technical features of the embodiments of the present specification may be combined without conflict.
In a first aspect, an embodiment of the present disclosure provides an application state obtaining method, which is applied to an electronic device, where the electronic device may be a mobile phone, a computer, a tablet computer, or the like, and is not limited herein. The electronic device is provided with a first application and a second application, the first application and the second application can be any application installed in the electronic device, for example, the electronic device is taken as a mobile phone, the first application can be a mobile phone browser, or a mobile phone application embedded with a browser, or other applications, the second application can be payment applications such as payment treasures and internet banking installed in the mobile phone, shopping applications such as treasures and jingdong, downloading applications such as thunder and Yun Pan, and the like.
When the user uses the first application, if the first application needs to use functions and services of other applications, the second application needs to be called. In the prior art, when a first application calls a second application, in order to determine whether the second application is called successfully, the processor usage rate of the electronic device is generally detected, because if the second application is called successfully, the second application is started to cause the processor usage rate to increase, and if the processor usage rate is detected to increase, the second application is considered to be called successfully. However, the increase in processor usage of the electronic device is not necessarily due to the second application opening, but may also be due to other events, e.g. the user opening a third application may also result in an increase in processor usage, which is obviously inaccurate if the second application is opened or not by detecting the process usage. Therefore, the application provides an application state acquisition method, which accurately acquires the state of the second application when the first application calls the second application to determine whether the second application is called successfully.
As shown in fig. 1, a flowchart of an application state obtaining method provided in an embodiment of the present disclosure is shown, where the method includes the following steps:
step S11: in the running process of the first application, if a call request of the first application for the second application is detected, controlling the second application to start;
step S12: starting an intermediate service corresponding to the second application, wherein the intermediate service can acquire the starting state of the second application and can communicate with the first application;
step S13: and communicating with the intermediate service through the first application to enable the first application to acquire the starting state of the second application.
In the embodiment of the present disclosure, the first application may be any application or any applet in the electronic device, and for convenience of explanation, the first application is illustrated by taking a browser installed in the electronic device as an example. When the user uses the browser, the user may need to use functions of other local applications, for example, when the user browses a shopping webpage through the browser, the user may click a payment button or a link on the current webpage to invoke the local payment application, and at this time, the second application may be a payment application or a payment applet such as a payment device, an online bank, or the like. For another example, when the user browses the movie resource web page through the browser, the opening of the download application may be triggered by clicking the download link, and at this time, the second application is a download application or a download applet such as thunder, yun Pan, etc.
And opening the second application when detecting the call request of the first application to the second application. In a specific implementation, the first application may call up the second application through a schema, such as locating the second application within a system of the electronic device using the schema of a URL (Uniform Resource Locator ), and after detecting a call request of the second application, opening the second application in response to the request.
After the second application is opened, an intermediate service corresponding to the second application is started, and the intermediate service can be a local service or a remote service. The intermediate service may be a service provided by the second application itself or a service provided by a third party. The intermediate service may acquire a start state of the second application, and the start state of the second application may be a start success state or a start failure state. Specifically, the intermediate service is not limited to an http (HyperText Transfer Protocol ) protocol, a socket (socket) service, or the like. When the intermediate service is started, the intermediate service may actively send a state acquisition request to the second application to acquire the starting state of the second application, or the second application may actively notify the intermediate service of its own state. It can be seen that the intermediate service can accurately obtain the start-up status of the second application.
The first application may be capable of communicating with the intermediate service to obtain the start-up state of the second application, for example, the first application may actively send a state query request to the intermediate service to obtain the start-up state of the second application, or, after the intermediate service is started, if a call request initiated by the first application for the second application is detected, the intermediate service may actively send the start-up state of the second application to the first application, which is not limited herein. In a specific implementation process, the first application is a browser, and the communicating with the intermediate service through the first application enables the first application to obtain a starting state of the second application, including: and sending a state query request for the second application to the intermediate service through the browser so as to obtain the starting state of the second application.
According to the scheme in the embodiment of the specification, the intermediate service can accurately acquire the starting state of the second application, so that the first application can accurately acquire the starting state of the second application by communicating with the intermediate service. In addition, the first application judges whether the second application is successfully opened or not through the intermediate service, so that the intermediate service can be compatible with the query requests of various types of applications, and has strong operability and high compatibility.
In the implementation process, for different running environments of different electronic devices, such as a system version, a system type and the like, some electronic devices can only start local services, some electronic devices can only start remote services, and of course, there are electronic devices which can start both local services and remote services. In the embodiment of the present disclosure, when the intermediate service is started, a priority may be set for the start type of the intermediate service, for example, for an electronic device that can start both the local service and the remote service, the local service is preferentially started as the intermediate service, that is: determining whether the electronic device is capable of triggering the start of a local service; if yes, starting a local service corresponding to the second application as the intermediate service; and if not, starting the remote service corresponding to the second application as the intermediate service. Of course, the remote service may be started preferentially as an intermediate service, or the local service or the remote service may be started randomly without setting priority to the start type of the intermediate service, which is not limited herein.
For convenience of explanation, taking the local service as an http ((HyperText Transfer Protocol, hypertext transfer protocol) service as an example, when a first application needs to call a second application, opening the second application based on a call request of the first application, and determining whether the electronic device can provide the local service, that is, starting the local http service, wherein whether the electronic device can support the starting of the local service can be judged through an attribute of the second application or a system environment of the electronic device, for example, the system environment of the electronic device allows the second application to start the local service, the http service is started as an intermediate service, and if the system environment of the electronic device cannot start the local service, a remote service can be started as an intermediate service.
In addition, when the intermediate service is started, if the second application or the electronic device can trigger the starting of the local service and the starting of the remote service, the type of the intermediate service can be determined according to the object that the first application can communicate with. For example, if the first application is only able to communicate with the local service, the local service is started as an intermediary service, if the first application is only able to communicate with the remote service, the remote service is started as an intermediary service, if the first application is both able to communicate with the local service and the remote service, the priority of the intermediary service may be set or the type of intermediary service may be randomly selected, without limitation.
In the embodiment of the present specification, when the first application communicates with the intermediate service, the first application may be implemented by: sending a state query request to the intermediate service through the first application, wherein the state query request comprises identification information of the second application; and receiving a response result of the intermediate service for the state query request by the first application, and determining the starting state of the second application based on the response result.
In a specific implementation, after initiating a call request for the second application, the first application may send a start-up status query request for the second application to the intermediary service. For example, when the first application is a browser and the intermediate service is a local http service, the browser may request the local http service through ajax (Asynchronous Javascript And XML ), if the response result is that the response is successful, it is determined that the starting state of the second application is that the starting is successful, the second application is that the call is successful, and if the response result is that the response is failed or the first application does not receive feedback of the intermediate service within a predetermined time, it is determined that the starting state of the second application is that the starting is failed, and the call is failed.
It should be noted that, when there is a case of calling a plurality of applications, for example, when a user calls two applications of mobile phone panning and payment panning through a mobile phone browser, if the intermediate services corresponding to the mobile phone panning and payment panning are both remote http services, in order to distinguish the two applications, the browser may take the identification information of the application to access the intermediate services, where the identification information may be information such as an ID, a name, and the like of the application. For example, the browser sends a request with mobile phone panned identification information and a request with paid panned identification information to acquire the states of the two applications respectively, and the response result of the intermediate service feedback should also include the identification information of the two applications, so that the first application distinguishes the state of each application based on the identification information of the application.
Further, the first application may perform different responses according to the acquired starting state of the second application, in this embodiment of the present disclosure, the first application is controlled to execute a target control instruction corresponding to the starting state of the second application based on the acquired starting state of the second application, where when the starting state of the second application is successful in starting, the target control instruction is an instruction for prompting the user that the second application is successful in calling, and when the starting state of the second application is failed in starting of the application, the target control instruction is an instruction for prompting the user that the second application is failed in calling.
In the implementation process, the target control instruction may be set according to actual needs, for example, the target control instruction may be a page jump instruction, a prompt information generation instruction, or the like. The target control instruction is different according to the starting state of the second application. For example, when the user invokes the second application by clicking a button on the display page of the first application, the current page may be changed into a loading page, when the starting state of the second application obtained by the first application is successful in starting, the currently displayed loading page of the first application may be jumped to a page for prompting the user to invoke success, and when the starting state of the obtained second application is failed in starting, the currently displayed loading page of the first application may be jumped to a page for prompting the user to invoke failure.
In addition, if the starting state of the second application is failed in starting, the first application can reinitiate the calling request to make an attempt again, specifically, the number of times of recall can be set, and if the call is not successful within the set number of times, the first application prompts the user that the second application cannot be called. Therefore, according to the method in the embodiment of the specification, the response of the first application and the starting state of the second application can be linked, different instructions are executed based on the starting state of the second application, so that a user can more directly know whether the second application is successfully started or not, and user experience is improved.
In this embodiment of the present disclosure, after the communicating, by the first application, with the intermediate service, so that the first application obtains the start state of the second application, the method further includes: and when the starting state of the second application is that the starting is successful, controlling the second application to feed back the calling result of the calling request to the first application based on the calling request.
In the implementation process, when the second application is started successfully, the second application can execute corresponding operation according to the call request, for example, when the first application is a browser and the second application is a payment device, if a user browses a shopping website by using the browser and needs to pay by using the payment device, the call request can complete payment for a payment function for calling the payment device, when the payment device is started successfully, a payment page is started according to the call request, the user can pay the page again to perform payment operation, and after the payment is completed, the second application can feed back a successful call result of the payment to the first application.
For better understanding of the application state acquiring method provided in the embodiments of the present disclosure, please refer to fig. 2, which is an interaction schematic diagram of the application state acquiring method provided in the embodiments of the present disclosure, in fig. 2, the first application is a browser, the second application is a local application, and the local service is an application service provided by the second application. Firstly, a browser initiates a call request for a local application; then the browser inquires the intermediate service about a state inquiry request of the local application; if the called local application is started successfully, the local application can inform the intermediate service that the application is started successfully through the local service provided by the local application, and the intermediate service can mark the state of the local application and mark that the application is started successfully; the intermediate service feeds back the state of the local application to the browser; the browser responds based on the received state of the native application.
Further, in order to further determine whether the second application fails to call, in the embodiment of the present disclosure, after the first application receives the response result of the intermediate service feedback as the response failure, it is determined whether the second application is running in the foreground of the electronic device, and if the first application is running in the background of the electronic device, it is determined that the second application is successfully invoked.
In the implementation process, when a user uses a first application, the first application operates in the foreground of the electronic equipment, and after the user calls a local second application by clicking a link or a key on a page of the first application, if the second application is successfully called, the second application operates in the foreground of the electronic equipment, and the first application operates in the background of the electronic equipment. Thus, it can be determined whether the second application is invoked by the running conditions of the first application and the second application.
In summary, according to the application state acquisition method provided by the present disclosure, the first application and the second application are connected through the intermediate server, so that the first application acquires the start state of the second application, the operability is strong, the compatibility is high, and the first application is ensured to accurately acquire the start state of the second application.
In a second aspect, based on the same inventive concept, an embodiment of the present disclosure provides an application state obtaining apparatus, which is applied to an electronic device, where a first application and a second application are installed in the electronic device, please refer to fig. 3, and the apparatus includes:
the detecting module 31 is configured to control, during running of the first application, starting of the second application if a call request of the first application for the second application is detected;
an intermediate service starting module 32, configured to start an intermediate service corresponding to the second application, where the intermediate service can obtain a starting state of the second application, and the intermediate service can communicate with the first application;
and the obtaining module 33 is configured to communicate with the intermediate service through the first application, so that the first application obtains the start state of the second application.
In an alternative implementation, the apparatus further includes:
a determining module, configured to determine whether the electronic device is capable of triggering a start of a local service; if yes, starting a local service corresponding to the second application as the intermediate service; and if not, starting the remote service corresponding to the second application as the intermediate service.
In an alternative implementation, the obtaining module 33 is configured to:
sending a state query request to the intermediate service through the first application, wherein the state query request comprises identification information of the second application;
and receiving a response result of the intermediate service for the state query request by the first application, and determining the starting state of the second application based on the response result.
In an alternative implementation, the apparatus further includes:
the execution module is used for controlling the first application to execute a target control instruction corresponding to the starting state of the second application based on the starting state of the second application, wherein the target control instruction is an instruction for prompting a user that the second application is successfully invoked when the starting state of the second application is successful, and the target control instruction is an instruction for prompting the user that the second application is unsuccessfully invoked when the state of the second application is failed.
In an alternative implementation, the first application is a browser, and the obtaining module 33 is configured to:
and sending a state query request for the second application to the intermediate service through the browser so as to obtain the starting state of the second application.
In an alternative implementation, the apparatus further includes:
and the response module is used for controlling the second application to feed back the calling result of the calling request to the first application based on the calling request when the starting state of the second application is that the starting is successful.
With respect to the above apparatus, the specific functions of the respective modules have been described in detail in the embodiments of the application state acquisition method provided in the embodiments of the present specification, and will not be described in detail herein.
In a third aspect, based on the same inventive concept as the application state acquisition method in the foregoing embodiment, the present embodiment further provides an electronic device, as shown in fig. 4, including a memory 404, a processor 402, and a computer program stored on the memory 404 and executable on the processor 402, where the processor 402 implements steps of any one of the application state acquisition methods described above when executing the program.
Where in FIG. 4 a bus architecture (represented by bus 400), bus 400 may comprise any number of interconnected buses and bridges, with bus 400 linking together various circuits, including one or more processors, represented by processor 402, and memory, represented by memory 404. Bus 400 may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., as are well known in the art and, therefore, will not be described further herein. Bus interface 406 provides an interface between bus 400 and receiver 401 and transmitter 403. The receiver 401 and the transmitter 403 may be the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 402 is responsible for managing the bus 400 and general processing, while the memory 404 may be used to store data used by the processor 402 in performing operations.
In a fourth aspect, based on the inventive concept as the application state acquisition method in the foregoing embodiments, the present specification further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any one of the application state acquisition method described above.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present description have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the disclosure.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present specification without departing from the spirit or scope of the specification. Thus, if such modifications and variations of the present specification fall within the scope of the claims and the equivalents thereof, the present specification is also intended to include such modifications and variations.

Claims (14)

1. An application state acquisition method is applied to an electronic device, wherein a first application and a second application are installed in the electronic device, and the method comprises the following steps:
in the running process of the first application, if a call request of the first application for the second application is detected, controlling the second application to start;
starting an intermediate service corresponding to the second application, wherein the intermediate service can acquire the starting state of the second application, and can communicate with the first application, and if the electronic equipment cannot trigger the starting of the local service, starting a remote service corresponding to the second application as the intermediate service;
and communicating with the intermediate service through the first application to enable the first application to acquire the starting state of the second application.
2. The method of claim 1, prior to the launching of the intermediary service corresponding to the second application, the method further comprising:
and if the electronic equipment can trigger the starting of the local service, starting the local service corresponding to the second application as the intermediate service.
3. The method of claim 1, the communicating with the intermediary service by a first application, causing the first application to obtain a launch state of the second application, comprising:
sending a state query request to the intermediate service through the first application, wherein the state query request comprises identification information of the second application;
and receiving a response result of the intermediate service for the state query request by the first application, and determining the starting state of the second application based on the response result.
4. The method of claim 1, the communicating with the intermediary service via the first application, causing the first application to obtain the start-up state of the second application, the method further comprising:
and controlling the first application to execute a target control instruction corresponding to the starting state of the second application based on the starting state of the second application, wherein the target control instruction is an instruction for prompting a user that the second application is successfully invoked when the starting state of the second application is successful, and the target control instruction is an instruction for prompting the user that the second application is unsuccessfully invoked when the state of the second application is failed to start.
5. The method of claim 1, wherein the first application is a browser, and the communicating with the intermediate service through the first application causes the first application to obtain the start-up state of the second application, including:
and sending a state query request for the second application to the intermediate service through the browser so as to obtain the starting state of the second application.
6. The method of claim 5, the communicating with the intermediary service via the first application, causing the first application to obtain the start-up status of the second application, the method further comprising:
and when the starting state of the second application is that the starting is successful, controlling the second application to feed back the calling result of the calling request to the first application based on the calling request.
7. An application state obtaining device applied to an electronic device, wherein a first application and a second application are installed in the electronic device, the device comprising:
the detection module is used for controlling the second application to start if the calling request of the first application for the second application is detected in the running process of the first application;
an intermediate service starting module, configured to start an intermediate service corresponding to the second application, where the intermediate service is capable of obtaining a starting state of the second application, and the intermediate service is capable of communicating with the first application, and if the electronic device cannot trigger starting of a local service, start a remote service corresponding to the second application as the intermediate service;
and the acquisition module is used for communicating with the intermediate service through the first application so that the first application acquires the starting state of the second application.
8. The apparatus of claim 7, the apparatus further comprising:
and the determining module is used for starting the local service corresponding to the second application as the intermediate service when the electronic equipment can trigger the starting of the local service.
9. The apparatus of claim 7, the acquisition module to:
sending a state query request to the intermediate service through the first application, wherein the state query request comprises identification information of the second application;
and receiving a response result of the intermediate service for the state query request by the first application, and determining the starting state of the second application based on the response result.
10. The apparatus of claim 7, the apparatus further comprising:
the execution module is used for controlling the first application to execute a target control instruction corresponding to the starting state of the second application based on the starting state of the second application, wherein the target control instruction is an instruction for prompting a user that the second application is successfully invoked when the starting state of the second application is successful, and the target control instruction is an instruction for prompting the user that the second application is unsuccessfully invoked when the state of the second application is failed.
11. The apparatus of claim 7, the first application being a browser, the acquisition module to:
and sending a state query request for the second application to the intermediate service through the browser so as to obtain the starting state of the second application.
12. The apparatus of claim 7, the apparatus further comprising:
and the response module is used for controlling the second application to feed back the calling result of the calling request to the first application based on the calling request when the starting state of the second application is that the starting is successful.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1-6 when the program is executed.
14. A computer readable storage medium having stored thereon a computer program which when executed by a processor realizes the steps of the method of any of claims 1-6.
CN202310281969.XA 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium Pending CN116361113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310281969.XA CN116361113A (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310281969.XA CN116361113A (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium
CN202010113312.9A CN111338898B (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010113312.9A Division CN111338898B (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116361113A true CN116361113A (en) 2023-06-30

Family

ID=71185581

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010113312.9A Active CN111338898B (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium
CN202310281969.XA Pending CN116361113A (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010113312.9A Active CN111338898B (en) 2020-02-24 2020-02-24 Application state acquisition method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (2) CN111338898B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550416B (en) * 2022-03-16 2023-07-11 荣耀终端有限公司 Application server connection method, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360812B (en) * 2016-03-07 2024-02-06 创新先进技术有限公司 Service execution method and device
CN111835864B (en) * 2016-05-11 2023-04-25 创新先进技术有限公司 Method and system for starting application
CN106651522B (en) * 2016-12-26 2020-07-14 腾讯科技(深圳)有限公司 Information interaction method and device

Also Published As

Publication number Publication date
CN111338898B (en) 2023-04-07
CN111338898A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US11921996B2 (en) Information processing terminal and control method
EP3493057B1 (en) Method and apparatus for awakening application by means of mobile browser
EP3550788A1 (en) Data acquisition method and device
EP2603865B1 (en) Exposing resource capabilities to web applications
EP2806357A1 (en) Method and communication device for updating a web application
CN108319662A (en) Page processing method, device, electronic equipment and readable storage medium storing program for executing
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
EP2005322A1 (en) Estimation of initial dynamic rendering control data
CN110968331B (en) Method and device for running application program
CN106534280B (en) Data sharing method and device
CN111338829B (en) Calling method and device for remote procedure call service
CN105786476B (en) Data processing method and system between mobile client and server
US10193737B2 (en) Method for performing communication between browser and mobile terminal, and browser apparatus
CN114328097A (en) File monitoring method and device, electronic equipment and storage medium
CN111338898B (en) Application state acquisition method and device, electronic equipment and readable storage medium
CN106095886B (en) Data processing method and device
CN110069185B (en) Method and apparatus for co-running hosted applications
WO2021103644A1 (en) Data structure, communication method and apparatus, storage medium and device
CN107623704B (en) Data interaction method in terminal equipment, client and browser
US9525754B1 (en) Task-based approach to execution, monitoring and execution control of actions
CN113032167B (en) Page communication method, device and equipment
US20240152504A1 (en) Data interaction method, apparatus, and electronic device
CN113472752B (en) Authority processing method and device, electronic equipment and storage medium
CN105791568A (en) Information processing method and terminal
CN117806664A (en) Service installation method, device and system, electronic equipment and storage medium

Legal Events

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