CN117971334A - Method and device for opening function interface of application and terminal equipment - Google Patents

Method and device for opening function interface of application and terminal equipment Download PDF

Info

Publication number
CN117971334A
CN117971334A CN202211312330.5A CN202211312330A CN117971334A CN 117971334 A CN117971334 A CN 117971334A CN 202211312330 A CN202211312330 A CN 202211312330A CN 117971334 A CN117971334 A CN 117971334A
Authority
CN
China
Prior art keywords
application
application service
shortcut
identification
terminal device
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
CN202211312330.5A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211312330.5A priority Critical patent/CN117971334A/en
Priority to PCT/CN2023/120251 priority patent/WO2024087958A1/en
Publication of CN117971334A publication Critical patent/CN117971334A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/445Program loading or initiating
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a method, a device and a terminal device for opening a functional interface of an application, wherein in the method, the terminal device detects that a desktop icon of the application is triggered, when the triggering mode is detected to accord with a preset operation, a context menu is displayed, after the fact that a target shortcut in the context menu is selected is detected, a first application service acquires an application package name, an identification of the target shortcut and an identification of a window to be displayed, the application package name, the identification of the target shortcut and the identification of the window to be displayed are sent to a second application service, so that the second application service pulls up an active instance corresponding to the identification of the target shortcut, the first application service creates the window to be displayed, and the second application service draws corresponding content to display the corresponding functional interface window in a desktop of a host system, so that the shortcut of a mobile ecological application can be embedded into the context menu of the application desktop shortcut of the terminal device, the operation is simplified, and user experience is improved.

Description

Method and device for opening function interface of application and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of intelligent terminals, in particular to a method and a device for opening a functional interface of an application and terminal equipment.
Background
Starting from Android 7.0, the application has a new function named application shortcut (application shortcut, APP shortcut), which refers to a shortcut that appears after an APP icon in the main interface of a mobile terminal (e.g., a smart phone) is pressed for a long time. Besides the functions of sharing, unloading and the like provided by the android operating system by default, the android also supports each application to deeply customize own shortcuts (shortcuts), so that each application can add a faster entry for its own key function without repeating complicated steps, namely, the application is opened first and the corresponding functional control is found layer by layer. With the characteristic of the shortcut, the user can access the corresponding application function by clicking the shortcut.
However, in the ecological fusion scenario, the native application of the personal computer (personal computer, PC) is to implement a shortcut-like function by means of a right-click context menu, but the mobile ecological application in the PC cannot provide a shortcut to the user like a mobile terminal. In addition, in the native ecological environment of the mobile terminal, the mobile application needs to be started or returned to the desktop end (desktop) on the android side, and then the shortcut can be opened only by long-time pressing of the application icon, and the existing android simulator does not support the characteristic of realizing the shortcut of the mobile end on the PC.
Disclosure of Invention
The embodiment of the application provides a method, a device and a terminal device for opening a functional interface of an application, and also provides a computer readable storage medium to realize embedding a shortcut of a mobile ecological application into a context menu of an application desktop shortcut of the terminal device, thereby simplifying the operation and improving the user experience.
In a first aspect, an embodiment of the present application provides a method for opening a functional interface of an application, including: the method comprises the steps that a terminal device detects that a desktop icon of an application installed in the terminal device is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system; when the triggering mode of the desktop icon is detected to accord with the preset operation, the terminal equipment displays a context menu corresponding to the preset operation; after detecting that a target shortcut in the context menu is selected, a first application service in the terminal equipment acquires an application package name of the application, an identification of the target shortcut and an identification of a window to be displayed corresponding to the application; the first application service is an application service provided by a virtual machine installed in the terminal equipment in the host system; the first application service sends the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment, so that the second application service pulls up an active instance corresponding to the identification of the target shortcut, and notifies the first application service of an event of which the active instance is pulled up; the second application service is an application service provided by the virtual machine installed in the terminal equipment in the client system; and the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance so as to display the functional interface window corresponding to the shortcut in the desktop of the host system.
In the method for opening the function interface of the application, when the terminal equipment detects that the desktop icon of the installed application is triggered, and when the triggering mode of the desktop icon is detected to be in accordance with the preset operation, a context menu corresponding to the preset operation is displayed, after the first application service in the terminal equipment detects that the target shortcut in the context menu is selected, the first application service acquires the application package name of the application, the identification of the target shortcut and the identification of a window to be displayed corresponding to the application, and sends the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment, so that the second application service can pull up an active instance corresponding to the identification of the target shortcut, notify the first application service of an event of which the active instance is pulled up, the first application service creates the window to be displayed, and the second application service draws contents corresponding to the active instance, so that the function interface window corresponding to the shortcut is displayed in the desktop of the host system, thereby simplifying the application shortcut of the ecological application can be embedded into the desktop of the terminal equipment, and improving the user experience.
In one possible implementation manner, the second application service pulling up the activity instance corresponding to the identifier of the target shortcut includes: the second application service selects an activity instance corresponding to the identification of the target shortcut; and the second application service pulls up the activity instance on the window to be displayed through content Intent.
In one possible implementation manner, before the terminal device detects that a desktop icon of an application installed in the terminal device is triggered, the method further includes: after the installation process of the application is triggered, the first application service acquires application data of the application and sends the application data to the second application service; the second application service installs the application in the client system according to the application data, and obtains the name and the identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut; the second application service stores an activity instance corresponding to the identification of the shortcut and sends the name and the identification of the shortcut to the first application service; the first application service stores the identification of the shortcut and adds the name of the shortcut to a registry of the host system to add the menu item corresponding to the shortcut in the context menu.
In one possible implementation, the host system is a PC operating system, and the client system is a mobile operating system.
In a second aspect, an embodiment of the present application provides an opening device for a functional interface of an application, where the device is included in a terminal device, and the device has a function of implementing the behavior of the terminal device in the first aspect and possible implementations of the first aspect. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above. For example, a detection module, a display module, an acquisition module, and a transmission module.
In a third aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the terminal device, cause the terminal device to perform the steps of: detecting that a desktop icon of an application installed in the terminal equipment is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system; when the triggering mode of the desktop icon is detected to be in accordance with a preset operation, displaying a context menu corresponding to the preset operation; after detecting that a target shortcut in the context menu is selected, a first application service in the terminal equipment acquires an application package name of the application, an identification of the target shortcut and an identification of a window to be displayed corresponding to the application; the first application service is an application service provided by a virtual machine installed in the terminal equipment in the host system; the first application service sends the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment, so that the second application service pulls up an active instance corresponding to the identification of the target shortcut, and notifies the first application service of an event of which the active instance is pulled up; the second application service is an application service provided by the virtual machine installed in the terminal equipment in the client system; and the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance so as to display the functional interface window corresponding to the shortcut in the desktop of the host system.
In one possible implementation manner, the step of enabling the terminal device to execute the activity instance corresponding to the identifier of the target shortcut and pulled by the second application service when the instruction is executed by the terminal device includes: the second application service selects an activity instance corresponding to the identification of the target shortcut; and the second application service pulls up the activity instance on the window to be displayed through content Intent.
In one possible implementation manner, before the step of enabling the terminal device to perform the step of detecting that the desktop icon of the application installed in the terminal device is triggered, the following steps are further performed, when the instruction is executed by the terminal device: after the installation process of the application is triggered, the first application service acquires application data of the application and sends the application data to the second application service; the second application service installs the application in the client system according to the application data, and obtains the name and the identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut; the second application service stores an activity instance corresponding to the identification of the shortcut and sends the name and the identification of the shortcut to the first application service; the first application service stores the identification of the shortcut and adds the name of the shortcut to a registry of the host system to add the menu item corresponding to the shortcut in the context menu.
In one possible implementation, the host system is a PC operating system, and the client system is a mobile operating system.
It should be understood that, the second aspect and the third aspect of the embodiment of the present application are consistent with the technical solutions of the first aspect of the embodiment of the present application, and the beneficial effects obtained by each aspect and the corresponding possible implementation manner are similar, and are not repeated.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the method provided in the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program for performing the method provided in the first aspect, when the computer program is executed by a computer.
In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a shortcut of a mobile application added to a context menu of a desktop shortcut of a Window operating system according to an embodiment of the present application;
Fig. 3 (a) -3 (b) are implementation architecture diagrams of a method for opening a functional interface of an application according to an embodiment of the present application;
FIG. 4 is an ecological fusion effect diagram of a method for opening a functional interface of an application according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for opening a functional interface of an application according to one embodiment of the present application;
FIG. 6 is a flowchart of a method for opening a functional interface of an application according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present application;
Fig. 8 is a schematic structural diagram of a terminal device according to still another embodiment of the present application.
Detailed Description
The terminology used in the description of the embodiments of the application herein is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application.
In the prior art, in a ecological fusion scene, several android simulators provided in the prior art do not use an android desktop (desktop), but instead use a desktop end of a computer side realized by the android simulator, so that the effect of long-time pressing of application icons is realized by the android simulator. Through testing, when the simulators press the icons for a long time, the icons can be dragged, so that the positions of the icons are moved, the application is unloaded or application information is checked. None of the simulators provides shortcuts (shortcuts) to the application.
Based on the above problems, the embodiment of the application provides a method for opening a functional interface of an application, which mainly solves the problem that the existing mobile operating system simulator does not support the shortcut characteristic of the application in the mobile operating system. And integrating the shortcuts applied in the mobile operating system into the corresponding right-key menu bar of the desktop shortcuts of the PC operating system by combining with the powerful and convenient right-key menu of the PC operating system, thereby providing the shortcuts applied in the mobile operating system in the PC operating system.
According to the embodiment of the application, through the unified desktop window management technology, a user can directly open functions provided by applications (namely, each application has own desktop shortcut) through the desktop shortcut of the PC operating system, so that the habit of the user of the PC operating system is more met. On the basis, the embodiment of the application can support the shortcut characteristic in a mode which is more in line with the operation habit of the PC operation system.
The embodiment of the application combines the convenience of the right key menu of the PC operating system, and utilizes the original multi-window capability of the mobile application engine to embed the shortcut information list acquired during the installation of the application into the right key context menu of the desktop icon at the side of the PC operating system of the application. When the user selects the menu item corresponding to the shortcut, the function interface of the selected shortcut is directly displayed on the designated multi-window. The user can use the long press operation as a mobile terminal, and can open the shortcut of the application directly from the desktop of the PC operating system.
According to the embodiment of the application, based on the ecological fusion scene of the mobile operating system simulator, the shortcut of the application is embedded into the right key menu bar of the desktop shortcut of the PC operating system, and when a user selects a corresponding menu item, the function interface corresponding to the selected shortcut can be directly pulled up. The embodiment of the application combines the convenience of the right key menu of the PC operating system and provides support for the shortcut characteristic in the mobile operating system.
It should be noted that, the PC operating system may be a Windows or Linux operating system, which is not limited in the embodiment of the present application; the mobile operating system may be an android operating system, an iOS operating system, or a hong-mo operating system, which is not limited in the embodiment of the present application; however, in the following description of the embodiments of the present application, a PC operating system is taken as a Windows operating system, and a mobile operating system is taken as an android operating system for illustration.
The method for opening the functional interface of the application provided by the embodiment of the application can be applied to terminal equipment, wherein the terminal equipment can be PC (personal computer), notebook (notebook) or Ultra Mobile Personal Computer (UMPC) and other equipment; the embodiment of the present application does not limit the specific type of the terminal device, and in the following description of the embodiment of the present application, the terminal device is exemplified as a PC.
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application, as shown in fig. 1, and as shown in fig. 1, a terminal device 100 may include a processor 110, a communication interface 120, and a memory 130. Wherein the processor 110, the communication interface 120 and the memory 130 can communicate with each other via an internal connection path for transferring control and/or data signals, the memory 130 is used for storing program codes, and the processor 110 is used for calling and running the program codes from the memory 130.
The processor 110 and the memory 130 may be combined into a single processing device, more commonly a separate component, and the processor 110 is configured to execute the program code stored in the memory 130. In particular implementations, the memory 130 may also be integrated into the processor 110 or may be separate from the processor 110.
In addition, in order to make the functions of the terminal device 100 more complete, the terminal device 100 may further include one or more of an input unit 140 and a display unit 150, etc.
Optionally, the terminal device 100 may further include a power supply 160 for providing power to various devices or circuits in the terminal device 100.
It should be understood that the processor 110 in the terminal device 100 shown in fig. 1 may be a system on a chip SOC, and the processor 110 may include a central processing unit (central processing unit, CPU) and may further include other types of processors, such as: an image processor (graphics processing unit, GPU), etc.
For easy understanding, the following embodiments of the present application will take a terminal device having a structure shown in fig. 1 as an example, and specifically describe a method for opening a functional interface of an application provided by the embodiments of the present application with reference to the accompanying drawings and application scenarios.
The embodiment of the application can be applied to an android simulator in a Windows operating system, and an interface of a corresponding function interface of a shortcut pull-up application is provided for a user by embedding a shortcut of a mobile application into a context menu of a desktop shortcut of the Windows operating system, as shown in FIG. 2, and FIG. 2 is a schematic diagram after adding the shortcut of the mobile application in the context menu of the desktop shortcut of the Window operating system provided by one embodiment of the application. In fig. 2, 21 is a desktop of a Window operating system, a "music" icon displayed in the desktop 21 is an icon of a mobile application, and after a right click of the "music" icon, a right-click context menu 22 is displayed on the desktop 21, where the "listen to songs, identify songs", "search", "play local music" and "private FM" items in the context menu 22 are shortcuts (APP shortcuts) of the mobile application ".
The implementation of the method for opening the functional interface of the application provided by the embodiment of the application depends on a Windows operating system, and android simulator software is required to be installed on a PC, and the method for opening the functional interface of the application is realized by means of the android simulator.
In summary, first, in the process of installing a mobile application in a Windows operating system by using android simulator software, a shortcut list of the mobile application is sent to the Windows operating system side and embedded into a right-key context menu of an application shortcut, and then a corresponding menu item is selected to pull up the corresponding application and enter a function interface specified by the selected shortcut.
Fig. 3 (a) to 3 (b) are implementation architecture diagrams of a method for opening a functional interface of an application according to an embodiment of the present application. As shown in fig. 3 (a) to 3 (b), the Windows operating system at the PC side is used as a host system to provide a device driver and an operating environment required for software operation. And the PC is provided with a virtual machine, namely android simulator software, which is used as a client system to run on a host system to provide a virtual environment for the android application to run. The android operating system runs in the virtual machine as a carrier for running the android application, and it should be noted that the android operating system running in the virtual machine may be a mirror image of the android operating system. Because of the unified desktop window management technology of the mobile application engine, each installed android application has its own desktop shortcut.
When the user installs the android application in the PC, the first application service (APPSERVICE) at the android simulator side transmits the application data to the second application service, wherein the second application service can be the application service provided by the virtual machine in the android operating system. The android operating system installs the application, acquires various information of the shortcuts through unified desktop window management, then stores Activity examples (activities) of the shortcuts, and transmits information such as icons, names and/or Identifiers (IDs) of the shortcuts to the first application service. The first application service adds this information to the registry so that menu items corresponding to shortcuts for the application can be added in the right-key context menu for the application desktop icon.
When the user clicks an application desktop icon with a right button of a mouse and selects a menu item corresponding to the shortcut in the popped context menu, the first application service sends an application package name to be pulled up, an identification of the shortcut and an identification (DISPLAY ID) of a window to be displayed to the android operating system side, and a second application service of the android operating system side selects a corresponding activity instance according to the identification of the shortcut. The second application service pulls up the appointed activity instance on the appointed window (Display) through the content (Intent), then notifies the first application service of the event of pulling up the appointed activity instance, then the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance, so that the functional interface window corresponding to the selected shortcut can be displayed on the desktop of the Windows operating system.
Fig. 4 is an ecological fusion effect diagram of a method for opening a functional interface of an application according to an embodiment of the present application, as shown in fig. 4, with the application installed successfully, a shortcut of the application is embedded into a context menu of a right key of an icon of an application desktop. In fig. 4, 41 is a right-hand context menu of "music", where the terms "listen to music", "search", "play local music" and "private FM" are shortcuts of "music". When a menu item corresponding to a shortcut is selected, for example: in fig. 4, when the menu item corresponding to the shortcut "listen to songs and identify songs" is selected, the application "music" is pulled up, and the function interface window corresponding to the shortcut "listen to songs and identify songs" is displayed on the desktop of the PC, and in fig. 4, 42 is the function interface window corresponding to the shortcut "listen to songs and identify songs".
With reference to the foregoing embodiments and related drawings, the embodiments of the present application provide a method for opening a functional interface of an application, where implementation of the method involves a terminal device 100 side, and the embodiments of the present application are described by taking the terminal device 100 as a PC.
Fig. 5 is a flowchart of a method for opening a functional interface of an application according to an embodiment of the present application, where, as shown in fig. 5, the method for opening a functional interface of an application may include:
In step 501, the terminal device 100 detects that a desktop icon of an application installed in the terminal device 100 is triggered.
Wherein the application is installed in a client system of the terminal device 100, the desktop icon is displayed in a desktop of a host system of the terminal device 100, and the client system is operated on the host system.
Referring to fig. 2, a "music" in fig. 2 is an application installed in the client system of the terminal device 100, and a desktop icon 23 of the "music" is displayed in the desktop 21 of the host system of the terminal device 100.
In this embodiment, the host system may be a PC operating system, and the client system may be a mobile operating system; for example, the PC operating system may be a Windows operating system, and the mobile operating system may be an android operating system.
In step 502, when it is detected that the triggering manner of the desktop icon accords with a predetermined operation, the terminal device 100 displays a context menu corresponding to the predetermined operation.
Wherein, the predetermined operation may be: the right click of the mouse is, of course, not limited to this, and the predetermined operation may be other operation modes, for example: the predetermined operation is not limited to this embodiment, for example, when "shift+f10" is pressed in the keyboard.
With continued reference to fig. 2, the menu shown at 22 is a context menu corresponding to the predetermined operation described above.
In step 503, after detecting that the target shortcut in the context menu is selected, the first application service in the terminal device 100 obtains the application package name of the application, the identifier of the target shortcut, and the identifier of the window to be displayed corresponding to the application.
The first application service is an application service provided by a virtual machine installed in the terminal device 100 in the host system.
Specifically, referring to fig. 2, in fig. 2, the shortcut "listen to song and identify song" in the context menu 22 is selected, and the first application service in the terminal device 100 obtains the application package name of "× music", the identifier of the shortcut "listen to song and identify the window to be displayed corresponding to the application of" × music ".
In step 504, the first application service sends the application package name, the identifier of the target shortcut, and the identifier of the window to be displayed to the second application service in the terminal device 100, so that the second application service pulls up an Activity instance (Activity) corresponding to the identifier of the target shortcut, and notifies the first application service of the event that the Activity instance has been pulled up.
The second application service is an application service provided by the virtual machine installed in the terminal device 100 in the client system.
Specifically, the activity instance corresponding to the identifier of the second application service to pull up the target shortcut may be: and the second application service selects an activity instance corresponding to the identification of the target shortcut, and pulls up the activity instance on the window to be displayed through the content Intent.
In step 505, the first application service creates a window to be displayed, and the second application service draws the content corresponding to the active instance, so as to display a functional interface window corresponding to the shortcut in the desktop of the host system.
In the method for opening the function interface of the application, when the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered, and when the triggering mode of the desktop icon is detected to be in accordance with the predetermined operation, the terminal device 100 displays a context menu corresponding to the predetermined operation, after detecting that the target shortcut in the context menu is selected, a first application service in the terminal device 100 obtains an application package name of the application, an identifier of the target shortcut and an identifier of a window to be displayed corresponding to the application, and the first application service sends the application package name, the identifier of the target shortcut and the identifier of the window to be displayed to a second application service in the terminal device 100, so that the second application service pulls up an Activity instance (Activity) corresponding to the identifier of the target shortcut, and notifies the first application service of an event that has pulled up the Activity instance, and creates a window to be displayed by the first application service, and the second application service draws content corresponding to the Activity instance, so that the application package name, the identifier and the identifier of the target shortcut and the window to be displayed are displayed in the desktop of the host system, thereby the function of the application is displayed in the desktop of the host system, and the application shortcut is simplified, and the user experience of the application can be improved, and the user can be realized.
Fig. 6 is a flowchart of a method for opening a functional interface of an application according to another embodiment of the present application, as shown in fig. 6, in the embodiment of fig. 5 of the present application, before step 501, the method may further include:
in step 601, after the installation process of the application is triggered, the first application service obtains application data of the application, and sends the application data to the second application service. The application data may include a package name of an installation package of the application, and the package name is used for indicating the application to be installed.
In step 602, the second application service installs the application in the client system according to the application data, and obtains the name, the identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut.
In step 603, the second application service stores the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service.
In step 604, the first application service stores the identifier of the shortcut, and adds the name of the shortcut to the registry of the host system, so as to add the menu item corresponding to the shortcut to the context menu.
Thus, after the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered, if the triggering manner conforms to the predetermined operation, the terminal device 100 can display the context menu corresponding to the predetermined operation.
The method for opening the functional interface of the application solves the problem that the shortcut characteristic of the application in the mobile operation system is not supported in the mobile operation system simulator. In addition, due to the unified desktop window management technology of the mobile application engine, the embodiment of the application embeds the shortcut list of the application in the mobile operation system into the right-key context menu of the desktop icon at the side of the application PC operation system, and the user only needs to click the desktop icon at the side of the application PC operation system by right-key and select the shortcut in the context menu, so that the operation of long-time pressing of the application icon and selecting the menu item by the user at the mobile terminal can be simulated, the application can be directly evoked and enter the function interface corresponding to the selected shortcut, the operation is simple and convenient, the habit of Windows users is met, the user cannot perceive the difference between the systems under the ecological fusion scene, and the user experience is improved.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and that embodiments of the present application may also perform other operations or variations of the various operations. Furthermore, the various steps may be performed in a different order presented in the above embodiments, and it is possible that not all of the operations in the above embodiments are performed.
It will be appreciated that the terminal device, in order to achieve the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The various exemplary algorithm steps described in connection with the disclosed embodiments of the application may be embodied in hardware or in a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the terminal device may be divided into functional modules according to the above embodiment of the method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Fig. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present application, where, in a case where respective functional modules are divided by corresponding respective functions, fig. 7 shows a possible schematic structural diagram of a terminal device 700 related to the above embodiment, as shown in fig. 7, the terminal device 700 may include: a detection module 701, a display module 702, an acquisition module 703 and a transmission module 704;
The detecting module 701 is configured to detect that a desktop icon of an application installed in a terminal device is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system;
a display module 702, configured to display a context menu corresponding to a predetermined operation when the detection module 701 detects that a triggering manner of the desktop icon meets the predetermined operation;
An obtaining module 703, configured to obtain, by using a first application service in a terminal device, an application package name of the application, an identifier of the target shortcut, and an identifier of a window to be displayed corresponding to the application after the detecting module 701 detects that the target shortcut in the context menu is selected; the first application service is an application service provided by a virtual machine installed in the terminal equipment in a host system;
A sending module 704, configured to send, through a first application service, the application package name, the identifier of the target shortcut, and the identifier of the window to be displayed to a second application service in the terminal device, so that the second application service pulls up an active instance corresponding to the identifier of the target shortcut, and notify the first application service of an event that the active instance has been pulled up; the second application service is an application service provided by a virtual machine installed in the terminal equipment in a client system; specifically, the activity instance corresponding to the identifier of the second application service pull-up target shortcut may be: and the second application service selects an active instance corresponding to the identification of the target shortcut, and pulls up the active instance on the window to be displayed through the content Intent.
The display module 702 is further configured to create the window to be displayed through a first application service, and draw content corresponding to the activity instance through a second application service, so as to display a functional interface window corresponding to the shortcut in a desktop of the host system.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The terminal device 700 provided in this embodiment is used to execute the method for opening the functional interface of the application provided in the embodiment shown in fig. 5 of the present application, so that the same effects as those of the above method can be achieved.
Fig. 8 is a schematic structural diagram of a terminal device according to still another embodiment of the present application, and compared with the terminal device shown in fig. 7, the terminal device 700 shown in fig. 8 may further include: an installation module 705, a save module 706, and an add module 707;
the acquiring module 703 is further configured to acquire, by using a first application service, application data of an application installed in the terminal device after an installation process of the application is triggered before the detecting module 701 detects that a desktop icon of the application is triggered;
The sending module 704 is further configured to send the application data to a second application service;
an installation module 705, configured to install, by using a second application service, the application in the client system according to the application data, and obtain a name and an identifier of a shortcut of the application, and an activity instance corresponding to the identifier of the shortcut;
a saving module 706, configured to save, by using a second application service, an activity instance corresponding to the identifier of the shortcut;
the sending module 704 is further configured to send the name and the identifier of the shortcut to a first application service;
A saving module 706, configured to save, by using a first application service, an identifier of the shortcut;
An adding module 707, configured to add the name of the shortcut to the registry of the host system, so as to add a menu item corresponding to the shortcut in the context menu.
In this embodiment, the host system may be a PC operating system, and the client system may be a mobile operating system.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The terminal device 700 provided in this embodiment is used to execute the method for opening the functional interface of the application provided in the embodiments shown in fig. 5 and fig. 6 of the present application, so that the same effects as those of the above method can be achieved.
It should be understood that the terminal device 700 may correspond to the terminal device 100 shown in fig. 1. The function of the transmitting module 704 may be implemented by the communication interface 120 in the terminal device 100 shown in fig. 1; the functions of the detection module 701, the display module 702, the acquisition module 703, the installation module 705, the saving module 706, and the adding module 707 may be implemented by the processor 110 in the terminal device 100 shown in fig. 1.
In case of employing an integrated unit, the terminal device 700 may include a processing module, a storage module, and a communication module.
The processing module may be configured to control and manage the actions of the terminal device 700, for example, may be configured to support the terminal device 700 to perform the steps performed by the detection module 701, the display module 702, the acquisition module 703, the transmission module 704, the installation module 705, the storage module 706, and the addition module 707. The memory module may be used to support the terminal device 1500 in storing program codes and data, etc. And a communication module, which may be used to support communication between the terminal device 700 and other devices.
Wherein the processing module may be a processor or controller that may implement or execute the various exemplary logic blocks, modules and circuits described in connection with the present disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital Signal Processing (DSP) and a combination of microprocessors, and the like. The memory module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device 700 according to this embodiment may be a device having the structure shown in fig. 1.
Embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the methods provided by the embodiments of the present application shown in fig. 5 to 6.
Embodiments of the present application also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method provided by the embodiments of the present application shown in fig. 5-6.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided by the present application, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for opening a functional interface of an application, comprising:
the method comprises the steps that a terminal device detects that a desktop icon of an application installed in the terminal device is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system;
when the triggering mode of the desktop icon is detected to accord with the preset operation, the terminal equipment displays a context menu corresponding to the preset operation;
after detecting that a target shortcut in the context menu is selected, a first application service in the terminal equipment acquires an application package name of the application, an identification of the target shortcut and an identification of a window to be displayed corresponding to the application; the first application service is an application service provided by a virtual machine installed in the terminal equipment in the host system;
The first application service sends the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment, so that the second application service pulls up an active instance corresponding to the identification of the target shortcut, and notifies the first application service of an event of which the active instance is pulled up; the second application service is an application service provided by the virtual machine installed in the terminal equipment in the client system;
and the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance so as to display the functional interface window corresponding to the shortcut in the desktop of the host system.
2. The method of claim 1, wherein the second application service pulling up the active instance corresponding to the identification of the target shortcut comprises:
the second application service selects an activity instance corresponding to the identification of the target shortcut;
and the second application service pulls up the activity instance on the window to be displayed through content Intent.
3. The method of claim 1, wherein before the terminal device detects that a desktop icon of an application installed in the terminal device is triggered, further comprising:
after the installation process of the application is triggered, the first application service acquires application data of the application and sends the application data to the second application service;
The second application service installs the application in the client system according to the application data, and obtains the name and the identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
The second application service stores an activity instance corresponding to the identification of the shortcut and sends the name and the identification of the shortcut to the first application service;
The first application service stores the identification of the shortcut and adds the name of the shortcut to a registry of the host system to add the menu item corresponding to the shortcut in the context menu.
4. A method according to any one of claims 1-3, wherein the host system is a PC operating system and the client system is a mobile operating system.
5. An opening device of a functional interface of an application, characterized in that the device is provided in a terminal device, the device comprising:
the detection module is used for detecting that a desktop icon of an application installed in the terminal equipment is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system;
the display module is used for displaying a context menu corresponding to a preset operation when the detection module detects that the triggering mode of the desktop icon accords with the preset operation;
The acquisition module is used for acquiring the application package name of the application, the identification of the target shortcut and the identification of a window to be displayed corresponding to the application through a first application service in the terminal equipment after the detection module detects that the target shortcut in the context menu is selected; the first application service is an application service provided by a virtual machine installed in the terminal equipment in the host system;
The sending module is used for sending the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment through the first application service so that the second application service pulls up an activity instance corresponding to the identification of the target shortcut and notifies the first application service of an event of which the activity instance is pulled up; the second application service is an application service provided by the virtual machine installed in the terminal equipment in the client system;
The display module is further configured to create the window to be displayed through the first application service, and draw content corresponding to the activity instance through the second application service, so as to display a functional interface window corresponding to the shortcut in a desktop of the host system.
6. A terminal device, comprising:
One or more processors; a memory; a plurality of applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the terminal device, cause the terminal device to perform the steps of:
Detecting that a desktop icon of an application installed in the terminal equipment is triggered; the application is installed in a client system of the terminal equipment, the desktop icon is displayed in a desktop of a host system of the terminal equipment, and the client system runs on the host system;
when the triggering mode of the desktop icon is detected to be in accordance with a preset operation, displaying a context menu corresponding to the preset operation;
after detecting that a target shortcut in the context menu is selected, a first application service in the terminal equipment acquires an application package name of the application, an identification of the target shortcut and an identification of a window to be displayed corresponding to the application; the first application service is an application service provided by a virtual machine installed in the terminal equipment in the host system;
The first application service sends the application package name, the identification of the target shortcut and the identification of the window to be displayed to a second application service in the terminal equipment, so that the second application service pulls up an active instance corresponding to the identification of the target shortcut, and notifies the first application service of an event of which the active instance is pulled up; the second application service is an application service provided by the virtual machine installed in the terminal equipment in the client system;
and the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance so as to display the functional interface window corresponding to the shortcut in the desktop of the host system.
7. The terminal device of claim 6, wherein the instructions, when executed by the terminal device, cause the terminal device to execute the second application service to pull up the active instance corresponding to the identification of the target shortcut comprise:
the second application service selects an activity instance corresponding to the identification of the target shortcut;
and the second application service pulls up the activity instance on the window to be displayed through content Intent.
8. The terminal device of claim 6, wherein the instructions, when executed by the terminal device, cause the terminal device to perform the following steps further before the terminal device detects that a desktop icon of an application installed in the terminal device is triggered:
after the installation process of the application is triggered, the first application service acquires application data of the application and sends the application data to the second application service;
The second application service installs the application in the client system according to the application data, and obtains the name and the identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
The second application service stores an activity instance corresponding to the identification of the shortcut and sends the name and the identification of the shortcut to the first application service;
The first application service stores the identification of the shortcut and adds the name of the shortcut to a registry of the host system to add the menu item corresponding to the shortcut in the context menu.
9. A terminal device according to any of claims 6-8, wherein the host system is a PC operating system and the client system is a mobile operating system.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-4.
CN202211312330.5A 2022-10-25 2022-10-25 Method and device for opening function interface of application and terminal equipment Pending CN117971334A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211312330.5A CN117971334A (en) 2022-10-25 2022-10-25 Method and device for opening function interface of application and terminal equipment
PCT/CN2023/120251 WO2024087958A1 (en) 2022-10-25 2023-09-21 Method for opening functional interface of application, apparatus, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211312330.5A CN117971334A (en) 2022-10-25 2022-10-25 Method and device for opening function interface of application and terminal equipment

Publications (1)

Publication Number Publication Date
CN117971334A true CN117971334A (en) 2024-05-03

Family

ID=90829952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211312330.5A Pending CN117971334A (en) 2022-10-25 2022-10-25 Method and device for opening function interface of application and terminal equipment

Country Status (2)

Country Link
CN (1) CN117971334A (en)
WO (1) WO2024087958A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117554B1 (en) * 2006-04-25 2012-02-14 Parallels Holdings, Ltd. Seamless integration of non-native widgets and windows with dynamically scalable resolution into native operating system
CN112925570A (en) * 2021-02-24 2021-06-08 深圳市皓丽智能科技有限公司 Application operation method and device based on dual systems, electronic equipment and storage medium
CN114090172B (en) * 2021-11-10 2024-06-18 北京字节跳动网络技术有限公司 Cross-system widget multiplexing method and device
CN114077367A (en) * 2021-11-29 2022-02-22 北京鲸鲮信息系统技术有限公司 Method and device for realizing shortcut of android application in Linux system
CN113934464A (en) * 2021-12-14 2022-01-14 北京鲸鲮信息系统技术有限公司 Method and device for starting android application in Linux system and electronic equipment

Also Published As

Publication number Publication date
WO2024087958A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
US11778430B2 (en) Layers in messaging applications
CN113938456B (en) Session message overhead processing method and device
US11144195B2 (en) Fast data copying method and electronic device
WO2018077041A1 (en) Method and apparatus for running application
AU2014288039A1 (en) Remote operation of applications using received data
CN106027631B (en) Data transmission method and device
CN105376719A (en) Information pushing method and device
CN111656347B (en) Project display method and terminal
US20230259250A1 (en) Control method and apparatus, and electronic device
CN108780400B (en) Data processing method and electronic equipment
CN111766987B (en) Application program management method and device and electronic equipment
CN113672290A (en) File opening method and equipment
CN113176954A (en) Application calling method and device, storage medium and electronic equipment
CN110069186B (en) Method and equipment for displaying operation interface of application
US8719704B2 (en) Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same
CN117971334A (en) Method and device for opening function interface of application and terminal equipment
US12032820B2 (en) Fast data copying method and electronic device
CN113268300B (en) Information display method and device
CN113672289B (en) File opening method and equipment
CN115309415B (en) Application software installation method, device and system and electronic equipment
CN112929858B (en) Method and terminal for simulating access control card
CN115344160A (en) Terminal device, desktop display method and storage medium
CN113536387A (en) Terminal and method for detecting integrity of kernel data
CN117323659A (en) Virtual resource acquisition method, device, equipment and storage medium under development environment
CN117880412A (en) Method for displaying banner notification message and electronic equipment

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