CN107357643B - Application calling method and device and computer readable storage medium - Google Patents
Application calling method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN107357643B CN107357643B CN201710522552.2A CN201710522552A CN107357643B CN 107357643 B CN107357643 B CN 107357643B CN 201710522552 A CN201710522552 A CN 201710522552A CN 107357643 B CN107357643 B CN 107357643B
- Authority
- CN
- China
- Prior art keywords
- instance
- selection instruction
- application
- dual
- calling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The disclosure provides an application calling method, an application calling device and a computer readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: receiving a call request for a target application; when the target application comprises at least two instances corresponding to different user accounts, receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application; based on the call request, the instance indicated by the instance selection instruction is called. According to the method and the device, after the terminal receives the call request for the double-open application, the instance selection instruction triggered by the user is received, and the instance of the double-open application indicated by the instance selection instruction is called, so that the user can select the instance which the user wants to call by triggering the instance selection instruction, the situation that the terminal calls the double-open application instance for the user wants to call other applications is ensured, and the flexibility of calling the double-open application is improved.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an application calling method and apparatus, and a computer-readable storage medium.
Background
At present, double-open application is more and more common in daily life of people, so-called double-open application refers to application that can open two instances corresponding to different user accounts simultaneously, and in practical application, the two instances can run in two independent user spaces and respectively have own storage space, process, authority and the like, and the double-open application can meet the requirement that a user logs in two accounts of the same application program simultaneously.
In the related art, when other applications installed in the terminal call the dual-open application, the terminal may default to open one instance of the dual-open application in response to the call of the other applications to the dual-open application.
However, in the related art, the default open instance of the terminal is probably not the instance that the user wants other applications to call, at this time, the user cannot perform subsequent operations according to the terminal open instance, for example, when one application in the terminal calls the payment-type dual-open application, the balance in the user account corresponding to the default open instance of the terminal is probably smaller than the amount of money to be paid, and at this time, the user cannot perform subsequent payment operations, so the flexibility of calling the dual-open application in the related art is poor.
Disclosure of Invention
In order to overcome the problem of poor flexibility of dual-open application calling in the related art, the present disclosure provides an application calling method, an application calling device and a computer-readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an application calling method, including:
receiving a call request for a target application;
when the target application comprises at least two instances corresponding to different user accounts, receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application;
based on the call request, calling the instance indicated by the instance selection instruction.
Therefore, after receiving the call request for the double-open application, the terminal can receive the instance selection instruction triggered by the user and call the instance of the double-open application indicated by the instance selection instruction, so that the user can select the instance which the user wants to call by triggering the instance selection instruction, the double-open application instance called by the terminal is ensured to be the instance which the user wants to call other applications, and then the flexibility of calling the double-open application is improved
Optionally, the invoking the instance indicated by the instance selection instruction based on the invocation request includes:
caching the received call request;
changing the cached calling request according to the identification of the example indicated by the example selection instruction;
based on the changed call request, calling the instance indicated by the instance selection instruction.
Optionally, the identifier of the instance indicated by the instance selection instruction includes a user account corresponding to the instance.
Optionally, the method further includes:
adding a pass-through identifier for the changed call request, wherein the pass-through identifier is used for indicating that the call request is changed according to the identifier of the example indicated by the example selection instruction;
the receiving of the user-triggered instance selection instruction includes:
and when the received call instruction does not contain the pass-through identification, receiving the instance selection instruction triggered by a user.
The direct connection identification is added, so that the technical process that the terminal calls the double-open application can be prevented from entering a dead loop.
Optionally, the receiving an example selection instruction triggered by a user includes:
overlaying a display example selection dialog box on a currently displayed page, wherein the example selection dialog box comprises at least two example options, and the at least two example options correspond to the examples included by the target application one by one;
and after the triggering operation of any instance option is detected, receiving the instance selection instruction, wherein the instance indicated by the instance selection instruction corresponds to the triggered instance option.
Optionally, the receiving an example selection instruction triggered by a user includes:
receiving the instance selection instruction triggered by a user through an operating system of the terminal;
the invoking the instance indicated by the instance selection instruction based on the invocation request comprises:
and calling the instance indicated by the instance selection instruction based on the calling request through an operating system of the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided an application calling apparatus, including:
the first receiving module is used for receiving a calling request of a target application;
a second receiving module, configured to receive an instance selection instruction triggered by a user when the target application includes at least two instances corresponding to different user accounts, where the instance selection instruction is used to indicate one instance of the target application;
and the calling module is used for calling the example indicated by the example selection instruction based on the calling request.
Optionally, the invoking module is configured to:
caching the received call request;
changing the cached calling request according to the identification of the example indicated by the example selection instruction;
based on the changed call request, calling the instance indicated by the instance selection instruction.
Optionally, the identifier of the instance indicated by the instance selection instruction includes a user account corresponding to the instance.
Optionally, the apparatus further comprises:
the identification adding module is used for adding a pass-through identification for the changed calling request, and the pass-through identification is used for indicating that the calling request is changed according to the identification of the example indicated by the example selecting instruction;
the second receiving module is configured to receive the instance selection instruction triggered by the user when the received call instruction does not include the pass-through identifier.
Optionally, the second receiving module is configured to:
overlaying a display example selection dialog box on a currently displayed page, wherein the example selection dialog box comprises at least two example options, and the at least two example options correspond to the examples included by the target application one by one;
and after the triggering operation of any instance option is detected, receiving the instance selection instruction, wherein the instance indicated by the instance selection instruction corresponds to the triggered instance option.
Optionally, the second receiving module is configured to receive, through an operating system of the terminal, the instance selection instruction triggered by the user;
and the calling module is used for calling the instance indicated by the instance selection instruction based on the calling request through the operating system of the terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided an application calling apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a call request for a target application;
when the target application comprises at least two instances corresponding to different user accounts, receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application;
based on the call request, calling the instance indicated by the instance selection instruction.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, in which a computer program is stored, and the stored computer program, when executed by a processor, can implement the application calling method according to the first aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the terminal receives the instance selection instruction triggered by the user after receiving the call request for the dual-open application, and calls the instance of the dual-open application indicated by the instance selection instruction, so that the user can select the instance which the user wants to call by triggering the instance selection instruction, the dual-open application instance called by the terminal is ensured to be the instance which the user wants to call by other applications, and the flexibility of calling the dual-open application is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating an application invocation method in accordance with an exemplary embodiment.
FIG. 2-1 is a flow diagram illustrating a method of application invocation in accordance with an exemplary embodiment.
FIG. 2-2 is an illustration of an exemplary embodiment
Fig. 3 is a block diagram illustrating an application invocation device according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating an application invocation device according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an application invocation device according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In practical application, a terminal can be provided with a dual-open application, and the dual-open application can simultaneously open at least two different instances to support a user to simultaneously log in at least two different user accounts of the dual-open application. For example, a social-class double-open application a may be installed in the terminal, and the user may simultaneously log in two different social accounts b and c based on the double-open application a, thereby communicating with business partners through the social account b, and communicating with friends through the social account c.
In practical application, the terminal may be installed with other applications besides the dual-open application, and in some cases, the other applications may call the dual-open application, for example, a camera application installed in the terminal may call a social-class dual-open application installed in the terminal, so that a picture taken by the camera application is shared with a social account. In the related art, when other applications installed in the terminal call the dual-open application, the terminal may default to open one instance of the dual-open application to respond to the call of the other applications to the dual-open application, for example, when a camera application in the terminal calls a social-class dual-open application a, the terminal may default to open an instance corresponding to the social account b, so that a picture taken by the camera application is shared to the social account b.
However, in practical applications, the instance of default opening of the terminal is probably not the instance that the user wants to invoke, and as described in the above example, in general, the user does not want to share the photo taken by the camera application to the social account performing the business communication, that is, the instance corresponding to the social account b of default opening of the terminal is not the instance that the user wants to invoke, and in this case, the user cannot perform subsequent photo sharing operations according to the instance of default opening of the terminal. Therefore, the call flexibility of the dual-open application in the related art is poor, and in order to solve the problem, the embodiment of the present disclosure provides an application call method, and a technical process of the application call method is as follows.
Fig. 1 is a flowchart illustrating an application calling method according to an exemplary embodiment, where the application calling method is used in a terminal, as shown in fig. 1, and includes the following steps:
And 103, calling the instance indicated by the instance selection instruction by the terminal based on the calling request.
To sum up, according to the application calling method provided by the embodiment of the present disclosure, after receiving a call request for a dual-open application, a terminal receives an instance selection instruction triggered by a user, and calls an instance of the dual-open application indicated by the instance selection instruction, so that the user can select an instance desired to be called by himself by triggering the instance selection instruction, thereby ensuring that the dual-open application instance called by the terminal is an instance desired by the user to be called by other applications, and further improving flexibility of calling the dual-open application.
Fig. 2-1 is a flowchart illustrating an application calling method according to an exemplary embodiment, where the application calling method is used in a terminal, as shown in fig. 2-1, and includes the following steps:
In practical application, a plurality of different applications can be installed in the terminal, and the different applications can be mutually called to realize various functions. When other applications installed in the terminal need to call the target application, the terminal may receive a call request for the target application, where the call request may include information such as an application package name, a storage path, a user account, or a user interface of the target application to be displayed of the target application.
After receiving the call request, the terminal may obtain information (hereinafter referred to as identification information) that can identify the target application, such as an application package name of the target application and a user account, included in the call request, and determine whether the target application is a dual-open application according to the identification information, that is, determine whether the target application includes at least two instances corresponding to different user accounts.
In practical applications, there are many ways for the terminal to determine whether the target application is a dual-open application, and the following embodiments of the present disclosure are only exemplary in two ways, and it should be noted that the two ways of determining are not used to limit the scope of the embodiments of the present disclosure.
In the first mode, a terminal may be configured with a dual-open application database, where the dual-open application database may include information that can identify dual-open applications, such as application package names and user accounts of all the dual-open applications installed in the terminal. The terminal can inquire the double-open application database based on the acquired identification information after acquiring the identification information from the calling request, and can determine that the target application is double-open application when the identification information acquired by the terminal is stored in the double-open application database, and determine that the target application is not double-open application when the identification information acquired by the terminal is not stored in the double-open application database.
In a second manner, the terminal may determine whether the target application is a dual-open application by determining whether the identification information obtained from the call request includes a dual-open application identifier, where the dual-open application identifier is used to indicate that the target application is a dual-open application. When the identification information acquired by the terminal contains the double-opening application identification, the terminal can determine that the target application is double-opening application, and when the identification information acquired by the terminal does not contain the double-opening application identification, the terminal can determine that the target application is not double-opening application.
In practical application, when the terminal determines that the target application is not a dual-open application, the terminal may open the target application based on information, such as an application package name, a storage path, a user account, or a user interface of the target application to be displayed, of the target application included in the call request.
When the terminal determines that the target application is a dual-open application, that is, when the target application is determined to include at least two instances corresponding to different user accounts, the terminal may receive an instance selection instruction triggered by a user, where the instance selection instruction is used to indicate one instance of the target application. Therefore, when the double-open application is called, a user can autonomously select the instance of the double-open application which the user wants to call by triggering the instance selection instruction. In the following, the embodiment of the present disclosure will explain a technical process of a user triggering an instance selection instruction:
as shown in fig. 2-2, after determining that the target application is a dual-open application, the terminal may superimpose and display an instance selection dialog box K on the currently displayed page, where the instance selection dialog box K includes at least two instance options X (only two instance options X are shown in fig. 2-2), and the at least two instance options X are in one-to-one correspondence with the instances included in the target application. The user can trigger any one instance option X according to own needs, the terminal can receive an instance selection instruction after detecting the trigger operation on the instance option X, wherein an instance indicated by the instance selection instruction received by the terminal corresponds to the instance option X triggered by the user.
For example, as shown in fig. 2-2, the valet football application may support the user to log in with a social account, so that when the user performs a login operation, the valet football application may call a social application "wechat" to perform validity verification and login authorization on the social account to be logged in with through the wechat application, and after the terminal receives a call request of the valet football application to the wechat application, the terminal may determine that the wechat application is a double-open application, at this time, the terminal may superimpose a display example selection dialog box K on a currently displayed page, where two example options X included in the example selection dialog box K respectively correspond to one example of the wechat application, where a user account of the example of the wechat application corresponding to the example option X on the left side is u, a user account of the example of the wechat application corresponding to the example option X on the right side is v, and when the user wishes to log in the valet football application using the user account u, the user can trigger the left instance option X, the terminal can receive an instance selection instruction after detecting the trigger operation on the left instance option X, and the user account of the instance of the WeChat application indicated by the instance selection instruction is u.
It should be noted that, in some embodiments of the present disclosure, the terminal may display an instance selection dialog box through its own operating system, and receive the instance selection instruction through its own operating system, which is not specifically limited in this embodiment of the present disclosure.
In practical applications, the call request for the dual-open application usually contains default call information of one of the instances of the dual-open application, such as a user account corresponding to the instance, a storage path of the instance, and the like, so that if the terminal calls the dual-open application directly based on the call request, the one of the instances of the dual-open application is opened by default, and thus the call flexibility of the dual-open application is poor.
In order to avoid the foregoing situation, in an embodiment of the present disclosure, after the terminal determines that the target application is a dual-open application, the terminal does not directly invoke the dual-open application based on the received invocation request, but caches the received invocation request in a predetermined storage space such as a memory. Then, the terminal may change the cached invoking request according to the identifier of the instance indicated by the instance selection instruction triggered by the user in step 202, for example, the identifier of the instance indicated by the instance selection instruction may be the user account corresponding to the instance, in this case, the terminal may replace the user account in the cached invoking request with the user account corresponding to the instance indicated by the instance selection instruction, or the identifier of the instance indicated by the instance selection instruction may be the storage path of the instance, in this case, the terminal may replace the storage path in the cached invoking request with the storage path of the instance indicated by the instance selection instruction. After the call request is changed, the terminal can call the dual-open application based on the changed call request, so that the terminal opens the instance of the dual-open application which the user wants to call.
It should be noted that, after determining that the target application is a dual-open application, the terminal may first execute a technical process of receiving an instance selection instruction triggered by a user, may also first execute a technical process of caching a call request, and may also simultaneously execute a technical process of receiving an instance selection instruction triggered by a user and a technical process of caching a call request, which is not specifically limited in this embodiment of the present disclosure.
In addition, in an embodiment of the present disclosure, the terminal may further add a pass-through identifier to the changed invocation request, where the pass-through identifier is used to indicate that the invocation request has been changed according to the identifier of the instance indicated by the instance selection instruction, so that the terminal may determine that the invocation request has been changed after detecting the pass-through identifier in the invocation request, and thus, the technical process of receiving the instance selection instruction is not executed any more, and the terminal may determine that the invocation request has not been modified when detecting the pass-through identifier, and in this case, the terminal may execute the technical process of receiving the instance selection instruction triggered by the user. Therefore, the technical process of receiving the instance selection instruction can be prevented from being repeatedly executed by the terminal by adding the direct connection identifier, and the terminal is prevented from entering a dead loop when the double-open application is called.
And step 204, the terminal calls the example indicated by the example selection instruction based on the changed calling request.
Because the calling request is changed according to the example selection instruction triggered by the user, the terminal can start the example which the user wants to call by calling the dual-open application based on the changed calling request, thereby improving the flexibility of calling the dual-open application.
It should be noted that the terminal may invoke the example indicated by the example selection instruction through its own operating system, which is not described in detail in the embodiments of the present disclosure.
To sum up, according to the application calling method provided by the embodiment of the present disclosure, after receiving a call request for a dual-open application, a terminal receives an instance selection instruction triggered by a user, and calls an instance of the dual-open application indicated by the instance selection instruction, so that the user can select an instance desired to be called by himself by triggering the instance selection instruction, thereby ensuring that the dual-open application instance called by the terminal is an instance desired by the user to be called by other applications, and further improving flexibility of calling the dual-open application.
Fig. 3 is a block diagram illustrating an application invocation apparatus 300 according to an exemplary embodiment. Referring to fig. 3, the application calling apparatus 300 includes a first receiving module 301, a second receiving module 302, and a calling module 303.
The first receiving module 301 is configured to receive a call request for a target application.
The second receiving module 302 is configured to receive an instance selection instruction triggered by a user when the target application includes at least two instances corresponding to different user accounts, where the instance selection instruction is used to indicate an instance of the target application.
The invoking module 303 is configured to invoke the instance indicated by the instance selection instruction based on the invocation request.
The calling module 303 is configured to: caching the received call request; modifying the cached calling request according to the identification of the example indicated by the example selection instruction; based on the changed call request, calling the instance indicated by the instance selection instruction.
In one embodiment of the disclosure, the identifier of the instance indicated by the instance selection instruction includes a user account corresponding to the instance.
In an embodiment of the present disclosure, the second receiving module 302 is configured to: overlaying a display example selection dialog box on a currently displayed page, wherein the example selection dialog box comprises at least two example options, and the at least two example options correspond to the examples included by the target application one by one; and after the triggering operation of any instance option is detected, receiving an instance selection instruction, wherein the instance indicated by the instance selection instruction corresponds to the triggered instance option.
In an embodiment of the present disclosure, the second receiving module 302 is configured to receive the instance selection instruction triggered by the user through an operating system of the terminal. The invoking module 303 is configured to invoke, by the operating system of the terminal, the instance indicated by the instance selecting instruction based on the invoking request.
Fig. 4 is a block diagram of another application calling apparatus 400 provided in the embodiment of the present disclosure, where the application calling apparatus 400 further includes an identifier adding module 304 in addition to the modules included in the application calling apparatus 300.
The identifier adding module 304 is configured to add a pass-through identifier to the changed call request, where the pass-through identifier is used to indicate that the call request has been changed according to the identifier of the instance indicated by the instance selecting instruction.
Correspondingly, the second receiving module 302 is configured to receive the instance selection instruction triggered by the user when the received call instruction does not include the pass-through identifier.
In summary, the application invoking device provided in the embodiment of the present disclosure receives the instance selection instruction triggered by the user after receiving the invocation request for the dual-open application, and invokes the instance of the dual-open application indicated by the instance selection instruction, so that the user can select the instance that the user wants to invoke by triggering the instance selection instruction, thereby ensuring that the dual-open application instance invoked by the terminal is the instance that the user wants to invoke by other applications, and further improving the flexibility of invoking the dual-open application.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an application invocation apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium having a computer program stored therein, the computer program in the computer readable storage medium, when executed by a processor, being capable of performing an application invocation method, which may be, for example: receiving a call request for a target application; when the target application comprises at least two instances corresponding to different user accounts, receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application; based on the call request, the instance indicated by the instance selection instruction is called.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. An application calling method, comprising:
receiving a call request for a target application;
acquiring identification information in the calling request, wherein the identification information comprises an application package name and a user account of the target application;
when the identification information is stored in a dual-open application database or the identification information contains a dual-open application identifier, determining that the target application is a dual-open application, wherein the dual-open application database comprises application package names and user accounts of all dual-open applications installed in a terminal, and the dual-open application identifier is used for indicating that the target application is the dual-open application; the target application comprises at least two instances corresponding to different user accounts, and the calling request does not contain a direct identification;
receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application;
caching the received call request;
modifying the cached call request according to the identification of the instance indicated by the instance selection instruction, wherein the modifying the cached call request comprises: replacing the user account in the cached calling request with the user account corresponding to the instance indicated by the instance selection instruction, or replacing the storage path in the cached calling request with the storage path of the instance indicated by the instance selection instruction;
based on the changed call request, calling the instance indicated by the instance selection instruction;
the method further comprises the following steps:
and adding a pass-through identifier for the changed call request, wherein the pass-through identifier is used for indicating that the call request is changed according to the identifier of the example indicated by the example selection instruction.
2. The method according to claim 1, wherein the identity of the instance indicated by the instance selection instruction comprises a user account corresponding to the instance.
3. The method of claim 1, wherein receiving a user-triggered instance selection instruction comprises:
overlaying a display example selection dialog box on a currently displayed page, wherein the example selection dialog box comprises at least two example options, and the at least two example options correspond to the examples included by the target application one by one;
and after the triggering operation of any instance option is detected, receiving the instance selection instruction, wherein the instance indicated by the instance selection instruction corresponds to the triggered instance option.
4. The method of claim 1, wherein receiving a user-triggered instance selection instruction comprises:
receiving the instance selection instruction triggered by a user through an operating system of the terminal;
the invoking the instance indicated by the instance selection instruction based on the invocation request comprises:
and calling the instance indicated by the instance selection instruction based on the calling request through an operating system of the terminal.
5. An application invocation apparatus, characterized in that said apparatus comprises:
the first receiving module is used for receiving a calling request of a target application;
a second receiving module, configured to receive an instance selection instruction triggered by a user when the target application includes at least two instances corresponding to different user accounts, where the instance selection instruction is used to indicate one instance of the target application;
the calling module is used for caching the received calling request; modifying the cached call request according to the identification of the instance indicated by the instance selection instruction, wherein the modifying the cached call request comprises: replacing the user account in the cached calling request with the user account corresponding to the instance indicated by the instance selection instruction, or replacing the storage path in the cached calling request with the storage path of the instance indicated by the instance selection instruction; based on the changed call request, calling the instance indicated by the instance selection instruction;
the device further comprises:
the identification adding module is used for adding a pass-through identification for the changed calling request, and the pass-through identification is used for indicating that the calling request is changed according to the identification of the example indicated by the example selecting instruction;
the second receiving module is configured to receive the instance selection instruction triggered by the user when the received invocation request does not include the pass-through identifier;
the apparatus is further configured to:
acquiring identification information in the calling request, wherein the identification information comprises an application package name and a user account of the target application;
when the identification information is stored in a dual-open application database or the identification information contains dual-open application identifiers, the target application is determined to be dual-open application, the dual-open application database comprises application package names and user accounts of all dual-open applications installed in the terminal, and the dual-open application identifiers are used for indicating that the target application is dual-open application.
6. The apparatus according to claim 5, wherein the identification of the instance indicated by the instance selection instruction includes a user account corresponding to the instance.
7. The apparatus of claim 5, wherein the second receiving module is configured to:
overlaying a display example selection dialog box on a currently displayed page, wherein the example selection dialog box comprises at least two example options, and the at least two example options correspond to the examples included by the target application one by one;
and after the triggering operation of any instance option is detected, receiving the instance selection instruction, wherein the instance indicated by the instance selection instruction corresponds to the triggered instance option.
8. The apparatus according to claim 5, wherein the second receiving module is configured to receive the instance selection instruction triggered by a user through an operating system of the terminal;
and the calling module is used for calling the instance indicated by the instance selection instruction based on the calling request through the operating system of the terminal.
9. An application invocation apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a call request for a target application;
acquiring identification information in the calling request, wherein the identification information comprises an application package name and a user account of the target application;
when the identification information is stored in a dual-open application database or the identification information contains a dual-open application identifier, determining that the target application is a dual-open application, wherein the dual-open application database comprises application package names and user accounts of all dual-open applications installed in a terminal, and the dual-open application identifier is used for indicating that the target application is the dual-open application; the target application comprises at least two instances corresponding to different user accounts, and the calling request does not contain a direct identification;
receiving an instance selection instruction triggered by a user, wherein the instance selection instruction is used for indicating one instance of the target application;
based on the call request, calling the instance indicated by the instance selection instruction;
caching the received call request;
modifying the cached call request according to the identification of the instance indicated by the instance selection instruction, wherein the modifying the cached call request comprises: replacing the user account in the cached calling request with the user account corresponding to the instance indicated by the instance selection instruction, or replacing the storage path in the cached calling request with the storage path of the instance indicated by the instance selection instruction;
based on the changed call request, calling the instance indicated by the instance selection instruction;
the processor is further configured to:
and adding a pass-through identifier for the changed call request, wherein the pass-through identifier is used for indicating that the call request is changed according to the identifier of the example indicated by the example selection instruction.
10. A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, is capable of implementing the application invocation method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522552.2A CN107357643B (en) | 2017-06-30 | 2017-06-30 | Application calling method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522552.2A CN107357643B (en) | 2017-06-30 | 2017-06-30 | Application calling method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107357643A CN107357643A (en) | 2017-11-17 |
CN107357643B true CN107357643B (en) | 2021-01-29 |
Family
ID=60272578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710522552.2A Active CN107357643B (en) | 2017-06-30 | 2017-06-30 | Application calling method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357643B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804324A (en) * | 2018-06-07 | 2018-11-13 | 广州金山安全管理系统技术有限公司 | The detection method and device of application program, storage medium, electronic device |
CN109636504B (en) * | 2018-11-07 | 2021-11-05 | 北京慧流科技有限公司 | Information processing method and device, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208015A (en) * | 2015-08-31 | 2015-12-30 | 小米科技有限责任公司 | Application multi-account login processing method and device and terminal device |
CN106020943A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Application program dual-opening method and device |
CN106201748A (en) * | 2016-07-21 | 2016-12-07 | 北京奇虎科技有限公司 | Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal |
CN106406659A (en) * | 2016-08-31 | 2017-02-15 | 北京小米移动软件有限公司 | Double-open application establishing method and device |
-
2017
- 2017-06-30 CN CN201710522552.2A patent/CN107357643B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208015A (en) * | 2015-08-31 | 2015-12-30 | 小米科技有限责任公司 | Application multi-account login processing method and device and terminal device |
CN106020943A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Application program dual-opening method and device |
CN106201748A (en) * | 2016-07-21 | 2016-12-07 | 北京奇虎科技有限公司 | Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal |
CN106406659A (en) * | 2016-08-31 | 2017-02-15 | 北京小米移动软件有限公司 | Double-open application establishing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107357643A (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106020943B (en) | Application program double-opening method and device | |
EP3151117B1 (en) | Method and device for delaying information broadcasting | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
CN106453052B (en) | Message interaction method and device | |
CN107798231B (en) | Display method and device of operation interface, terminal and storage medium | |
US20170171321A1 (en) | Methods and devices for managing accounts | |
CN106528081B (en) | Operation execution method and device | |
CN106790043B (en) | Method and device for sending message in live broadcast application | |
CN105956486B (en) | Long-range control method and device | |
CN106033397B (en) | Memory buffer area adjusting method, device and terminal | |
CN110061904B (en) | Method, device and system for acquiring social information, electronic equipment and storage medium | |
CN105898573B (en) | Multimedia file playing method and device | |
CN105100074A (en) | Data operation processing method, device and terminal equipment | |
CN107885418B (en) | Terminal, split screen display method and device | |
CN105511739A (en) | Message prompting method and device | |
CN104360875B (en) | Privacy mode starts method and apparatus | |
CN107171938B (en) | Method and device for shielding social friends | |
CN107656616B (en) | Input interface display method and device and electronic equipment | |
CN107357643B (en) | Application calling method and device and computer readable storage medium | |
CN106506808B (en) | Method and device for prompting communication message | |
CN106445122B (en) | Equipment state control method and device | |
CN107885464B (en) | Data storage method, device and computer readable storage medium | |
CN107894909B (en) | Method, device and storage medium for limiting Activity starting | |
CN109992937B (en) | Identity authentication method and identity authentication device | |
CN109743441B (en) | Read-write permission setting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |