WO2024087958A1 - Method for opening functional interface of application, apparatus, and terminal device - Google Patents

Method for opening functional interface of application, apparatus, and terminal device Download PDF

Info

Publication number
WO2024087958A1
WO2024087958A1 PCT/CN2023/120251 CN2023120251W WO2024087958A1 WO 2024087958 A1 WO2024087958 A1 WO 2024087958A1 CN 2023120251 W CN2023120251 W CN 2023120251W WO 2024087958 A1 WO2024087958 A1 WO 2024087958A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal device
application service
shortcut
identifier
Prior art date
Application number
PCT/CN2023/120251
Other languages
French (fr)
Chinese (zh)
Inventor
谭浴阳
吴凡
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024087958A1 publication Critical patent/WO2024087958A1/en

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

Definitions

  • the embodiments of the present application relate to the field of smart terminal technology, and in particular to a method, apparatus and terminal device for opening a functional interface of an application.
  • APP shortcut refers to the shortcut that appears after the APP icon in the main interface of a mobile terminal (e.g., a smartphone) is long-pressed.
  • Android also supports each application to deeply customize its own shortcuts. In this way, each application can add a faster entry for its key functions without repeating tedious steps, that is, you have to open the application first and then find the corresponding function controls layer by layer.
  • shortcut feature users can access the corresponding application function by clicking the shortcut.
  • the embodiments of the present application provide a method, apparatus and terminal device for opening the functional interface of an application.
  • the embodiments of the present application also provide a computer-readable storage medium to embed a shortcut of a mobile ecological application into the context menu of the application desktop shortcut of the terminal device, thereby simplifying operations and improving user experience.
  • an embodiment of the present application provides a method for opening a functional interface of an application, comprising: a terminal device detects that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, and the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system; when it is detected that the triggering method of the desktop icon conforms to a predetermined operation, the terminal device displays a context menu corresponding to the predetermined operation; after detecting that a target shortcut in the context menu is selected, a first application service in the terminal device 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; wherein the first An application service is an application service provided by a virtual machine installed in the terminal device in the host system; 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 terminal device detects that the desktop icon of the installed application is triggered.
  • a context menu corresponding to the predetermined operation is displayed.
  • the first application service in the terminal device 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 above-mentioned application.
  • 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, so that the second application service pulls up the activity instance 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 first application service creates the window to be displayed, and the second application service draws the above-mentioned activity
  • the content corresponding to the instance is used to display the function interface window corresponding to the above shortcut on the desktop of the above host system, so that the shortcut of the mobile ecological application can be embedded in the context menu of the application desktop shortcut of the terminal device, simplifying the operation and improving the user experience.
  • the second application service pulls up the activity instance corresponding to the identifier of the target shortcut, including: the second application service selects the activity instance corresponding to the identifier of the target shortcut; the second application service pulls up the activity instance on the to-be-displayed window through the content Intent.
  • the terminal device before the terminal device detects that the desktop icon of an application installed in the terminal device is triggered, it also includes: after the installation process of the application is triggered, the first application service obtains the 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, obtains the name and identifier of the shortcut of the application, and the activity instance corresponding to the identifier of the shortcut; the second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service; the first application service saves the identifier of the shortcut, and adds the name of the shortcut to the registry of the host system to add a menu item corresponding to the shortcut to the context menu.
  • the host system is a PC operating system
  • the client system is a mobile operating system
  • an embodiment of the present application provides a device for opening a functional interface of an application, the device being included in a terminal device, and the device having the function of implementing the behavior of the terminal device in the first aspect and the possible implementation of the first aspect.
  • the function can be implemented by hardware, or by hardware executing corresponding software implementation.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a detection module, a display module, an acquisition module, and a sending module.
  • an embodiment of the present application provides a terminal device, comprising: one or more processors; a memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the terminal device, cause the terminal device to perform the following steps: detecting that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system; when it is detected that the triggering method of the desktop icon conforms to a predetermined operation, a context menu corresponding to the predetermined operation is displayed; after detecting that a target shortcut in the context menu is selected, the first application service in the terminal device obtains the 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; wherein the first application service is an application service provided by the
  • the step of causing the terminal device to execute the second application service to pull up the activity instance corresponding to the identifier of the target shortcut includes: the second application service selects the activity instance corresponding to the identifier of the target shortcut; the second application service pulls up the activity instance on the window to be displayed through the content Intent.
  • the terminal device when the instruction is executed by the terminal device, before the terminal device executes the step in which the terminal device detects that the desktop icon of an application installed in the terminal device is triggered, the terminal device also executes the following steps: 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 second application service installs the application in the client system according to the application data, obtains the name and identifier of the shortcut of the application, and the activity instance corresponding to the identifier of the shortcut; the second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service; the first application service saves the identifier of the shortcut and adds the name of the shortcut to the registry of the host system to add a menu item corresponding to the shortcut to the context menu.
  • the host system is a PC operating system
  • the client system is a mobile operating system
  • an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored.
  • the computer-readable storage medium is run on a computer, the computer executes the method provided in the first aspect.
  • an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method provided in the first aspect.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.
  • FIG1 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application.
  • FIG2 is a schematic diagram of adding a shortcut of a mobile application to a context menu of a desktop shortcut of a Windows operating system according to an embodiment of the present application;
  • FIG. 3( a ) to FIG. 3( b ) are implementation architecture diagrams of a method for opening a functional interface of an application provided in one embodiment of the present application;
  • FIG4 is an ecological integration effect diagram of a method for opening a functional interface of an application provided by an embodiment of the present application
  • FIG5 is a flow chart of a method for opening a functional interface of an application provided by an embodiment of the present application.
  • FIG6 is a flow chart of a method for opening a functional interface of an application provided by another embodiment of the present application.
  • FIG7 is a schematic diagram of the structure of a terminal device provided in another embodiment of the present application.
  • FIG8 is a schematic diagram of the structure of a terminal device provided in yet another embodiment of the present application.
  • the embodiment of the present application provides a method for opening the functional interface of an application, which mainly solves the problem that the existing mobile operating system simulator does not support the shortcut feature of the application in the mobile operating system.
  • the shortcut of the application in the mobile operating system is integrated into the corresponding PC operating system desktop shortcut right-click menu bar, thereby providing a shortcut to the application in the mobile operating system in the PC operating system.
  • the embodiment of the present application uses a unified desktop window management technology to allow users to directly open the functions provided by the application through the desktop shortcut of the PC operating system (that is, each application has its own desktop shortcut), which is more in line with the habits of PC operating system users.
  • the embodiment of the present application can support the shortcut feature in a way that is more in line with the operating habits of the PC operating system.
  • the embodiment of the present application combines the convenience of the right-click menu of the PC operating system and utilizes the original multi-window capability of the mobile application engine to embed the shortcut information list obtained when installing the application into the right-click context menu of the desktop icon on the PC operating system side of the application.
  • the function interface of the selected shortcut is directly displayed on the specified multi-window. The user can open the shortcut of the application directly from the PC operating system desktop as conveniently as using a long press operation in a mobile terminal.
  • the embodiment of the present application is based on the ecological integration scenario of the mobile operating system simulator, and the shortcut of the application is embedded in the right-click menu bar of the desktop shortcut of the PC operating system.
  • the function interface corresponding to the selected shortcut can be directly pulled up.
  • the embodiment of the present application combines the convenience of the right-click menu of the PC operating system to provide support for the shortcut feature in the mobile operating system.
  • the above-mentioned PC operating system can be a Windows or Linux operating system, which is not limited to the embodiments of the present application;
  • the above-mentioned mobile operating system can be an Android operating system, an iOS operating system, or a Hongmeng operating system, etc., which is not limited to the embodiments of the present application; however, in the following description of the embodiments of the present application, the PC operating system is a Windows operating system and the mobile operating system is an Android operating system.
  • the method for opening the functional interface of the application provided in the embodiment of the present application can be applied to a terminal device, wherein the terminal device can be a PC, a laptop computer, or an ultra-mobile personal computer (UMPC) and the like; the embodiment of the present application does not impose any restriction on the specific type of the terminal device, and in the following description of the embodiment of the present application, the terminal device is taken as an example for explanation.
  • the terminal device can be a PC, a laptop computer, or an ultra-mobile personal computer (UMPC) and the like
  • UMPC ultra-mobile personal computer
  • FIG1 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application, as shown in FIG1, as shown in FIG1, the terminal
  • the terminal device 100 may include a processor 110, a communication interface 120, and a memory 130.
  • the processor 110, the communication interface 120, and the memory 130 may communicate with each other through an internal connection path to transmit control and/or data signals.
  • the memory 130 is used to store program codes, and the processor 110 is used to call and run the program codes from the memory 130.
  • the processor 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components, and the processor 110 is used to execute program codes stored in the memory 130.
  • the memory 130 may also be integrated into the processor 110, or may be independent of the processor 110.
  • the terminal device 100 may further include one or more of an input unit 140 and a display unit 150 .
  • the terminal device 100 may further include a power supply 160 for providing power to various devices or circuits in the terminal device 100 .
  • 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 (CPU), and may further include other types of processors, such as a graphics processing unit (GPU), etc.
  • SOC system on a chip
  • CPU central processing unit
  • GPU graphics processing unit
  • FIG. 1 For ease of understanding, the following embodiments of the present application will take a terminal device having the structure shown in FIG. 1 as an example, and combine the accompanying drawings and application scenarios to specifically explain the method for opening the functional interface of the application provided in the embodiments of the present application.
  • the embodiment of the present application can be applied to the Android simulator in the Windows operating system.
  • the user is provided with an interface for quickly pulling up the corresponding functional interface of the application, as shown in Figure 2, which is a schematic diagram of adding a shortcut of the mobile application to the context menu of the desktop shortcut of the Window operating system provided by an embodiment of the present application.
  • 21 is the desktop of the Window operating system
  • the "**Music" icon displayed on the desktop 21 is the icon of the mobile application.
  • a right-click context menu 22 is displayed on the desktop 21.
  • the items “Listen to the song and identify the song", "Search”, "Play local music” and "Private FM” are the shortcuts (APP shortcut) of the mobile application "**Music”.
  • the implementation of the method for opening the functional interface of the application provided in the embodiment of the present application relies on the Windows operating system, and requires the installation of Android emulator software on the PC, relying on the Android emulator to implement the method for opening the functional interface of the above-mentioned application.
  • the shortcut list of the above mobile applications is sent to the Windows operating system side and embedded in the right-click context menu of the application shortcut. After that, the corresponding menu item is selected to pull up the corresponding application and enter the function interface specified by the selected shortcut.
  • FIGS 3(a) to 3(b) are implementation architecture diagrams of a method for opening the functional interface of an application provided in an embodiment of the present application.
  • the Windows operating system on the PC side serves as a host system and provides the device drivers and operating environment required for the software to run.
  • a virtual machine namely Android simulator software, is installed in the PC.
  • the Android simulator software runs on the host system as a client system and provides a virtual environment for the operation of Android applications.
  • the Android operating system runs in the virtual machine as a carrier for the operation of Android applications.
  • the Android operating system running in the virtual machine here can be a mirror image of the Android operating system. Due to the unified desktop window management technology of the mobile application engine, each installed Android application has its own desktop shortcut.
  • the first application service (AppService) on the Android simulator side passes the application data to the second application service, where the second application service can be the application service provided by the above-mentioned virtual machine in the Android operating system.
  • the Android operating system installs the application and obtains various information of the shortcut through the unified desktop window management, then saves the activity instance (Activity) of the shortcut, and passes the icon, name and/or identifier (ID) of each shortcut to the first application service.
  • the first application service adds this information to the registry, so that the menu item corresponding to the shortcut of the application can be added to the right-click context menu of the application desktop icon.
  • the first application service sends the application package name to be launched, the shortcut identifier, and the window identifier (Display id) to be displayed to the Android operating system side, and the second application service on the Android operating system side selects the corresponding activity instance according to the shortcut identifier.
  • the second application service launches the specified activity instance on the specified window (Display) through the content (Intent), and then notifies the first application service of the event of launching the specified activity instance.
  • the first application service creates the window to be displayed, and the second application service draws the content corresponding to the above activity instance, so that the function interface window corresponding to the selected shortcut can be displayed on the desktop of the Windows operating system.
  • FIG4 is an ecological integration effect diagram of a method for opening a functional interface of an application provided by an embodiment of the present application.
  • the shortcut of the application will be embedded in the context menu of the right-click of the application desktop icon.
  • 41 is the right-click context menu of "**Music", in which "Listen to Songs and Identify Songs”, “Search”, “Play Local Music” and “Private FM” are the shortcuts of "**Music”.
  • an embodiment of the present application provides a method for opening a functional interface of an application.
  • the implementation of this method involves the terminal device 100 side.
  • the embodiment of the present application is described by taking the terminal device 100 as a PC as an example.
  • FIG5 is a flow chart of a method for opening a functional interface of an application provided by an embodiment of the present application. As shown in FIG5 , the method for opening a functional interface of the application may include:
  • Step 501 The terminal device 100 detects that a desktop icon of an application installed in the terminal device 100 is triggered.
  • the above application is installed in the client system of the terminal device 100, the above desktop icon is displayed on the desktop of the host system of the terminal device 100, and the above client system runs on the above host system.
  • the “**Music” in FIG. 2 is an application installed in the client system of the terminal device 100 , and the desktop icon 23 of the “**Music” is displayed on the desktop 21 of the host system of the terminal device 100 .
  • the host system may be a PC operating system
  • the client system may be a mobile operating system
  • the PC operating system may be a Windows operating system
  • the mobile operating system may be an Android operating system.
  • Step 502 When it is detected that the triggering mode of the desktop icon meets the predetermined operation, the terminal device 100 displays a context menu corresponding to the predetermined operation.
  • the above-mentioned predetermined operation can be: right-clicking the mouse.
  • this embodiment is not limited to this.
  • the above-mentioned predetermined operation can also be other operation forms, such as: "Shift+F10" is pressed on the keyboard, etc. This embodiment does not limit the above-mentioned predetermined operation.
  • the menu shown in 22 is the context menu corresponding to the above-mentioned predetermined operation.
  • 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 the virtual machine installed in the terminal device 100 in the host system.
  • 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 can launch the activity instance (Activity) corresponding to the identifier of the target shortcut, and notify the first application service of the event that the activity instance has been launched.
  • Activity activity instance
  • the second application service is an application service provided by the virtual machine installed in the terminal device 100 in the above-mentioned client system.
  • the second application service may launch the activity instance corresponding to the identifier of the target shortcut by: the second application service selects the activity instance corresponding to the identifier of the target shortcut, and launches the activity instance on the window to be displayed through the content Intent.
  • Step 505 the first application service creates a window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
  • the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered. When it is detected that the triggering method of the above-mentioned desktop icon meets the predetermined operation, the terminal device 100 displays the context menu corresponding to the above-mentioned predetermined operation. After detecting that the target shortcut in the above-mentioned context menu is selected, the first application service in the terminal device 100 obtains the application package name of the above-mentioned application, the identifier of the target shortcut and the identifier of the window to be displayed corresponding to the above-mentioned application.
  • the first application service sends the above-mentioned application package name, the identifier of the target shortcut and the identifier of the above-mentioned window to be displayed to the second application service in the terminal device 100, so that the second application service can pull up the activity instance (Activity) corresponding to the identifier of the target shortcut, and notify the first application service of the event that the above-mentioned activity instance has been pulled up.
  • Activity activity instance
  • the first application service creates a window to be displayed, and the second application service draws the content corresponding to the above-mentioned activity instance to display the functional interface window corresponding to the above-mentioned shortcut on the desktop of the above-mentioned host system, so that the shortcut of the mobile ecological application can be embedded in the context menu of the application desktop shortcut of the terminal device 100, simplifying the operation and improving the user experience.
  • FIG. 6 is a flow chart of a method for opening a function interface of an application provided by another embodiment of the present application. As shown in FIG. 6 , FIG. 5 of the present application In the illustrated embodiment, before step 501, the following may also be included:
  • Step 601 After the installation process of the application is triggered, the first application service obtains the application data of the application and sends the application data to the second application service.
  • the application data may include the package name of the installation package of the application, which is used to indicate the application to be installed.
  • Step 602 The second application service installs the application in the client system according to the application data, and obtains the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut.
  • Step 603 The second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service.
  • Step 604 The first application service saves the identifier of the shortcut and adds the name of the shortcut to the registry of the host system, so as to add a menu item corresponding to the shortcut to the context menu.
  • the terminal device 100 After the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered, if the triggering method conforms to the predetermined operation, the terminal device 100 can display the context menu corresponding to the above predetermined operation.
  • the method for opening the functional interface of the application solves the problem that the mobile operating system simulator does not support the shortcut feature of the application in the mobile operating system.
  • the embodiment of the present application embeds the shortcut list of the application in the mobile operating system into the right-click context menu of the desktop icon on the PC operating system side of the application.
  • the user only needs to right-click the desktop icon on the PC operating system side of the application and select the shortcut in the context menu to simulate the user's operation of long pressing the application icon and selecting the menu item on the mobile terminal, so that the application can be directly aroused and the functional interface corresponding to the selected shortcut can be entered.
  • the operation is simple and in line with the habits of Windows users, so that users cannot perceive the differences between systems in the ecological integration scenario, which improves the user experience.
  • the terminal device includes hardware and/or software modules corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
  • This embodiment can divide the terminal device into functional modules according to the above method embodiment.
  • each functional module can be divided according to each function, or two or more functions can be integrated into one module.
  • the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
  • FIG7 is a schematic diagram of the structure of a terminal device provided by another embodiment of the present application.
  • the terminal device 700 may include: a detection module 701, a display module 702, an acquisition module 703 and a sending module 704;
  • the detection module 701 is used to detect that a desktop icon of an application installed in a terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system;
  • the display module 702 is used to display a context menu corresponding to the predetermined operation when the detection module 701 detects that the triggering mode of the desktop icon meets the predetermined operation;
  • the acquisition module 703 is used to acquire 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 through the first application service in the terminal device after the detection module 701 detects that the target shortcut in the context menu is selected; wherein the first application service is an application service provided by the virtual machine installed in the terminal device in the host system;
  • the sending module 704 is used to send 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 through the first application service, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system; specifically, the activity instance corresponding to the identifier of the target shortcut pulled up by the second application service can be: The second application service selects the activity instance corresponding to the identifier of the target shortcut, and launches the activity instance on the to-be-displayed window through the content Intent.
  • the display module 702 is further used to create the above-mentioned window to be displayed through the first application service, and to draw the content corresponding to the above-mentioned activity instance through the second application service, so as to display the function interface window corresponding to the above-mentioned shortcut on the desktop of the above-mentioned host system.
  • 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, and thus can achieve the same effect as the above method.
  • FIG8 is a schematic diagram of the structure of a terminal device provided in another embodiment of the present application. Compared with the terminal device shown in FIG7 , the difference is that the terminal device 700 shown in FIG8 may further include: an installation module 705, a storage module 706 and an adding module 707;
  • the acquisition module 703 is further configured to acquire application data of the application through the first application service before the detection module 701 detects that the desktop icon of the application installed in the terminal device is triggered and after the installation process of the application is triggered;
  • the sending module 704 is further used to send the above application data to the second application service;
  • An installation module 705 is used to install the application in the client system according to the application data through a second application service, and obtain the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
  • a saving module 706, configured to save the activity instance corresponding to the identifier of the shortcut through a second application service
  • the sending module 704 is further used to send the name and identifier of the shortcut to the first application service
  • the saving module 706 is further used to save the identifier of the shortcut through the first application service
  • the adding module 707 is used 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 to the context menu.
  • the host system may be a PC operating system
  • the client system may be a mobile operating system
  • 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 Figures 5 and 6 of this application, and thus can achieve the same effect as the above method.
  • the terminal device 700 may correspond to the terminal device 100 shown in FIG1 .
  • the function of the sending module 704 may be implemented by the communication interface 120 in the terminal device 100 shown in FIG1 ; the functions of the detection module 701 , the display module 702 , the acquisition module 703 , the installation module 705 , the storage module 706 and the adding module 707 may be implemented by the processor 110 in the terminal device 100 shown in FIG1 .
  • the terminal device 700 may include a processing module, a storage module and a communication module.
  • the processing module can be used to control and manage the actions of the terminal device 700, for example, it can be used to support the terminal device 700 to execute the steps executed by the detection module 701, the display module 702, the acquisition module 703, the sending module 704, the installation module 705, the storage module 706 and the adding module 707.
  • the storage module can be used to support the terminal device 1500 to store program codes and data, etc.
  • the communication module can be used to support the communication between the terminal device 700 and other devices.
  • the processing module can be a processor or a controller, which can implement or execute various exemplary logic boxes, modules and circuits described in combination with the disclosure of this application.
  • the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc.
  • the storage module can be a memory.
  • the communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip and/or a Wi-Fi chip.
  • the terminal device 700 involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • the embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored.
  • the computer-readable storage medium is run on a computer, the computer executes the method provided in the embodiment shown in Figures 5 to 6 of the present application.
  • the embodiment of the present application also provides a computer program product, which includes a computer program.
  • a computer program product which includes a computer program.
  • the computer program When the computer program is run on a computer, it enables the computer to execute the method provided by the embodiments shown in Figures 5 and 6 of the present application.
  • "at least one” means one or more, and “more” means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are an “or” relationship.
  • “At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b and c can be single or multiple.
  • any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product.
  • the technical solution of the present application or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

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

Provided in embodiments of the present application are a method for opening a functional interface of an application, an apparatus, and a terminal device. The method comprises: a terminal device detecting that the desktop icon of an application is triggered; when detecting that the triggering mode satisfies a preset operation, displaying a context menu; after detecting that a target shortcut in the context menu is selected, a first application service acquiring the application package name, the identifier of the target shortcut and the identifier of a window to be displayed, and sending to a second application service the application package name, the identifier of the target shortcut and the identifier of said window, such that the second application service pulls up an activity instance corresponding to the identifier of the target shortcut; and the first application service creating said window and the second application service drawing the corresponding content, so as to display on the desktop of a host system a corresponding functional interface window. Therefore, the invention can embed the shortcut of a mobile ecological application into the context menu of an application desktop shortcut of a terminal device, thereby simplifying operations and improving the user experience.

Description

应用的功能界面的打开方法、装置和终端设备Method, device and terminal device for opening application function interface
本申请要求于2022年10月25日提交中国专利局、申请号为202211312330.5、申请名称为“应用的功能界面的打开方法、装置和终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on October 25, 2022, with application number 202211312330.5 and application name “Method, device and terminal device for opening the functional interface of an application”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及智能终端技术领域,特别涉及一种应用的功能界面的打开方法、装置和终端设备。The embodiments of the present application relate to the field of smart terminal technology, and in particular to a method, apparatus and terminal device for opening a functional interface of an application.
背景技术Background technique
从安卓(Android)7.0开始,应用都新增了一个名为应用快捷方式(application shortcut,APP shortcut)的功能,它指的是移动终端(例如:智能手机)的主界面中的APP图标被长按后出现的快捷方式。除了安卓操作系统默认提供的分享与卸载等功能外,安卓还支持各个应用深度定制自己的快捷方式(shortcut),这样,各个应用就可以为自身的关键功能添加更快速的入口而不用重复繁琐的步骤,即,得先打开应用再一层一层地去找相应的功能控件。有了快捷方式的特性,用户点击快捷方式即可访问相应的应用功能。Starting from Android 7.0, applications have added a feature called application shortcut (APP shortcut), which refers to the shortcut that appears after the APP icon in the main interface of a mobile terminal (e.g., a smartphone) is long-pressed. In addition to the sharing and uninstalling functions provided by the Android operating system by default, Android also supports each application to deeply customize its own shortcuts. In this way, each application can add a faster entry for its key functions without repeating tedious steps, that is, you have to open the application first and then find the corresponding function controls layer by layer. With the shortcut feature, users can access the corresponding application function by clicking the shortcut.
但在生态融合场景下,个人计算机(personal computer,PC)原生的应用是通过右键上下文菜单的方式来实现类似快捷方式的功能,PC中的移动生态应用却无法像移动终端那样向用户提供快捷方式。而且,在移动终端的原生生态环境中,移动应用首先需要启动或者返回到安卓侧的桌面端(launcher),再长按应用图标才可以打开快捷方式,现有的安卓模拟器均不支持在PC上实现移动端的快捷方式的特性。However, in the ecological integration scenario, native applications on personal computers (PCs) use the right-click context menu to implement functions similar to shortcuts, while mobile ecological applications in PCs cannot provide shortcuts to users like mobile terminals do. Moreover, in the native ecological environment of mobile terminals, mobile applications must first be started or returned to the Android desktop (launcher), and then long-press the application icon to open the shortcut. Existing Android emulators do not support the feature of implementing mobile terminal shortcuts on PCs.
发明内容Summary of the invention
本申请实施例提供了一种应用的功能界面的打开方法、装置和终端设备,本申请实施例还提供一种计算机可读存储介质,以实现将移动生态应用的快捷方式嵌入到终端设备的应用桌面快捷方式的上下文菜单中,简化操作,提高用户体验。The embodiments of the present application provide a method, apparatus and terminal device for opening the functional interface of an application. The embodiments of the present application also provide a computer-readable storage medium to embed a shortcut of a mobile ecological application into the context menu of the application desktop shortcut of the terminal device, thereby simplifying operations and improving user experience.
第一方面,本申请实施例提供了一种应用的功能界面的打开方法,包括:终端设备检测到所述终端设备中安装的应用的桌面图标被触发;其中,所述应用安装在所述终端设备的客户系统中,所述桌面图标显示在所述终端设备的宿主系统的桌面中,所述客户系统运行在所述宿主系统上;当检测到所述桌面图标的触发方式符合预定操作时,所述终端设备显示与所述预定操作对应的上下文菜单;检测到所述上下文菜单中的目标快捷方式被选中之后,所述终端设备中的第一应用服务获取所述应用的应用包名、所述目标快捷方式的标识和所述应用对应的待显示窗口的标识;其中,所述第一应用服务为所述终端设备中安装的虚拟机在所述宿主系统提供的应用服务;所述第一应用服务将所述应用包名、所述目标快捷方式的标识和所述待显示窗口的标识发送给所述终端设备中的第二应用服务,以供所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例,并将已拉起所述活动实例的事件通知给所述第一应用服务;其中,所述第二应用服务为所述终端设备中安装的虚拟机在所述客户系统提供的应用服务;所述第一应用服务创建所述待显示窗口,所述第二应用服务绘制所述活动实例对应的内容,以在所述宿主系统的桌面中显示所述快捷方式对应的功能界面窗口。In a first aspect, an embodiment of the present application provides a method for opening a functional interface of an application, comprising: a terminal device detects that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, and the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system; when it is detected that the triggering method of the desktop icon conforms to a predetermined operation, the terminal device displays a context menu corresponding to the predetermined operation; after detecting that a target shortcut in the context menu is selected, a first application service in the terminal device 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; wherein the first An application service is an application service provided by a virtual machine installed in the terminal device in the host system; 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, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system; the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
上述应用的功能界面的打开方法中,终端设备检测到安装的应用的桌面图标被触发,当检测到上述桌面图标的触发方式符合预定操作时,显示与预定操作对应的上下文菜单,检测到上下文菜单中的目标快捷方式被选中之后,终端设备中的第一应用服务获取应用的应用包名、目标快捷方式的标识和上述应用对应的待显示窗口的标识,第一应用服务将应用包名、目标快捷方式的标识和待显示窗口的标识发送给终端设备中的第二应用服务,以供第二应用服务拉起目标快捷方式的标识对应的活动实例,并将已拉起活动实例的事件通知给第一应用服务,由第一应用服务创建待显示窗口,第二应用服务绘制上述活动 实例对应的内容,以在上述宿主系统的桌面中显示上述快捷方式对应的功能界面窗口,从而可以实现将移动生态应用的快捷方式嵌入到终端设备的应用桌面快捷方式的上下文菜单中,简化操作,提高用户体验。In the method for opening the functional interface of the above-mentioned application, the terminal device detects that the desktop icon of the installed application is triggered. When it is detected that the triggering method of the above-mentioned desktop icon conforms to the predetermined operation, a context menu corresponding to the predetermined operation is displayed. After detecting that the target shortcut in the context menu is selected, the first application service in the terminal device 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 above-mentioned application. 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, so that the second application service pulls up the activity instance 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 first application service creates the window to be displayed, and the second application service draws the above-mentioned activity The content corresponding to the instance is used to display the function interface window corresponding to the above shortcut on the desktop of the above host system, so that the shortcut of the mobile ecological application can be embedded in the context menu of the application desktop shortcut of the terminal device, simplifying the operation and improving the user experience.
其中一种可能的实现方式中,所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例包括:所述第二应用服务选择所述目标快捷方式的标识对应的活动实例;所述第二应用服务通过内容Intent在所述待显示窗口上拉起所述活动实例。In one possible implementation, the second application service pulls up the activity instance corresponding to the identifier of the target shortcut, including: the second application service selects the activity instance corresponding to the identifier of the target shortcut; the second application service pulls up the activity instance on the to-be-displayed window through the content Intent.
其中一种可能的实现方式中,所述终端设备检测到所述终端设备中安装的应用的桌面图标被触发之前,还包括:在所述应用的安装进程被触发之后,所述第一应用服务获取所述应用的应用数据,并将所述应用数据发送给所述第二应用服务;所述第二应用服务根据所述应用数据在所述客户系统中安装所述应用,获取所述应用的快捷方式的名称、标识和所述快捷方式的标识对应的活动实例;所述第二应用服务保存所述快捷方式的标识对应的活动实例,将所述快捷方式的名称和标识发送给所述第一应用服务;所述第一应用服务保存所述快捷方式的标识,并将所述快捷方式的名称添加到所述宿主系统的注册表中,以在所述上下文菜单中添加所述快捷方式对应的菜单项。In one possible implementation, before the terminal device detects that the desktop icon of an application installed in the terminal device is triggered, it also includes: after the installation process of the application is triggered, the first application service obtains the 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, obtains the name and identifier of the shortcut of the application, and the activity instance corresponding to the identifier of the shortcut; the second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service; the first application service saves the identifier of the shortcut, and adds the name of the shortcut to the registry of the host system to add a menu item corresponding to the shortcut to the context menu.
其中一种可能的实现方式中,所述宿主系统为PC操作系统,所述客户系统为移动操作系统。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 a device for opening a functional interface of an application, the device being included in a terminal device, and the device having the function of implementing the behavior of the terminal device in the first aspect and the possible implementation of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a detection module, a display module, an acquisition module, and a sending module.
第三方面,本申请实施例提供一种终端设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述终端设备执行时,使得上述终端设备执行以下步骤:检测到所述终端设备中安装的应用的桌面图标被触发;其中,所述应用安装在所述终端设备的客户系统中,所述桌面图标显示在所述终端设备的宿主系统的桌面中,所述客户系统运行在所述宿主系统上;当检测到所述桌面图标的触发方式符合预定操作时,显示与所述预定操作对应的上下文菜单;检测到所述上下文菜单中的目标快捷方式被选中之后,所述终端设备中的第一应用服务获取所述应用的应用包名、所述目标快捷方式的标识和所述应用对应的待显示窗口的标识;其中,所述第一应用服务为所述终端设备中安装的虚拟机在所述宿主系统提供的应用服务;所述第一应用服务将所述应用包名、所述目标快捷方式的标识和所述待显示窗口的标识发送给所述终端设备中的第二应用服务,以供所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例,并将已拉起所述活动实例的事件通知给所述第一应用服务;其中,所述第二应用服务为所述终端设备中安装的虚拟机在所述客户系统提供的应用服务;所述第一应用服务创建所述待显示窗口,所述第二应用服务绘制所述活动实例对应的内容,以在所述宿主系统的桌面中显示所述快捷方式对应的功能界面窗口。In a third aspect, an embodiment of the present application provides a terminal device, comprising: one or more processors; a memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the terminal device, cause the terminal device to perform the following steps: detecting that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system; when it is detected that the triggering method of the desktop icon conforms to a predetermined operation, a context menu corresponding to the predetermined operation is displayed; after detecting that a target shortcut in the context menu is selected, the first application service in the terminal device obtains the 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; wherein the first application service is an application service provided by the virtual machine installed in the terminal device in the host system; 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, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system; the first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
其中一种可能的实现方式中,当所述指令被所述终端设备执行时,使得所述终端设备执行所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例的步骤包括:所述第二应用服务选择所述目标快捷方式的标识对应的活动实例;所述第二应用服务通过内容Intent在所述待显示窗口上拉起所述活动实例。In one possible implementation, when the instruction is executed by the terminal device, the step of causing the terminal device to execute the second application service to pull up the activity instance corresponding to the identifier of the target shortcut includes: the second application service selects the activity instance corresponding to the identifier of the target shortcut; the second application service pulls up the activity instance on the window to be displayed through the content Intent.
其中一种可能的实现方式中,当所述指令被所述终端设备执行时,使得所述终端设备执行所述终端设备检测到所述终端设备中安装的应用的桌面图标被触发的步骤之前,还执行以下步骤:在所述应用的安装进程被触发之后,所述第一应用服务获取所述应用的应用数据,并将所述应用数据发送给所述第二应用服务;所述第二应用服务根据所述应用数据在所述客户系统中安装所述应用,获取所述应用的快捷方式的名称、标识和所述快捷方式的标识对应的活动实例;所述第二应用服务保存所述快捷方式的标识对应的活动实例,将所述快捷方式的名称和标识发送给所述第一应用服务;所述第一应用服务保存所述快捷方式的标识,并将所述快捷方式的名称添加到所述宿主系统的注册表中,以在所述上下文菜单中添加所述快捷方式对应的菜单项。In one possible implementation, when the instruction is executed by the terminal device, before the terminal device executes the step in which the terminal device detects that the desktop icon of an application installed in the terminal device is triggered, the terminal device also executes the following steps: 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 second application service installs the application in the client system according to the application data, obtains the name and identifier of the shortcut of the application, and the activity instance corresponding to the identifier of the shortcut; the second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service; the first application service saves the identifier of the shortcut and adds the name of the shortcut to the registry of the host system to add a menu item corresponding to the shortcut to the context menu.
其中一种可能的实现方式中,所述宿主系统为PC操作系统,所述客户系统为移动操作系统。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 and third aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
第四方面,本申请实施例提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面提供的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the first aspect.
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面提供的方法。In a fifth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method provided in the first aspect.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请一个实施例提供的终端设备的结构示意图;FIG1 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application;
图2为本申请一个实施例提供的在Window操作系统的桌面快捷方式的上下文菜单中,增加移动应用的快捷方式后的示意图;FIG2 is a schematic diagram of adding a shortcut of a mobile application to a context menu of a desktop shortcut of a Windows operating system according to an embodiment of the present application;
图3(a)~图3(b)为本申请一个实施例提供的应用的功能界面的打开方法的实现架构图;FIG. 3( a ) to FIG. 3( b ) are implementation architecture diagrams of a method for opening a functional interface of an application provided in one embodiment of the present application;
图4为本申请一个实施例提供的应用的功能界面的打开方法的生态融合效果图;FIG4 is an ecological integration effect diagram of a method for opening a functional interface of an application provided by an embodiment of the present application;
图5为本申请一个实施例提供的应用的功能界面的打开方法的流程图;FIG5 is a flow chart of a method for opening a functional interface of an application provided by an embodiment of the present application;
图6为本申请另一个实施例提供的应用的功能界面的打开方法的流程图;FIG6 is a flow chart of a method for opening a functional interface of an application provided by another embodiment of the present application;
图7为本申请另一个实施例提供的终端设备的结构示意图;FIG7 is a schematic diagram of the structure of a terminal device provided in another embodiment of the present application;
图8为本申请再一个实施例提供的终端设备的结构示意图。FIG8 is a schematic diagram of the structure of a terminal device provided in yet another embodiment of the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
现有相关技术中,在生态融合场景下,现有相关技术中提供的几种安卓模拟器均没有使用安卓的桌面(launcher),取而代之的是安卓模拟器自己实现的电脑侧的桌面端,因此,长按应用图标的效果由安卓模拟器自己实现。经过测试,这些模拟器长按图标时都只是让图标能够拖动,以此移动图标的位置、卸载应用或者查看应用信息。没有任何一款模拟器提供了应用的快捷方式(shortcut)。In the existing related technologies, in the ecological integration scenario, several Android simulators provided in the existing related technologies do not use the Android desktop (launcher), but instead use the desktop on the computer side implemented by the Android simulator itself. Therefore, the effect of long pressing the application icon is implemented by the Android simulator itself. After testing, these simulators only allow the icon to be dragged when long pressing the icon, so as to move the icon position, uninstall the application or view the application information. No simulator provides a shortcut to the application.
基于以上问题,本申请实施例提供一种应用的功能界面的打开方法,主要解决现有的移动操作系统模拟器中不支持移动操作系统中应用的快捷方式特性的问题。结合PC操作系统功能强大且便捷的右键菜单,将移动操作系统中应用的快捷方式集成到对应的PC操作系统桌面快捷方式右键菜单栏中,从而在PC操作系统中提供移动操作系统中应用的快捷方式。Based on the above problems, the embodiment of the present application provides a method for opening the functional interface of an application, which mainly solves the problem that the existing mobile operating system simulator does not support the shortcut feature of the application in the mobile operating system. Combined with the powerful and convenient right-click menu of the PC operating system, the shortcut of the application in the mobile operating system is integrated into the corresponding PC operating system desktop shortcut right-click menu bar, thereby providing a shortcut to the application in the mobile operating system in the PC operating system.
本申请实施例通过统一桌面窗口管理技术,让用户得以直接通过PC操作系统的桌面快捷方式来打开应用提供的功能(即每个应用都有自己的桌面快捷方式),更加符合PC操作系统用户的习惯。在此基础上,本申请实施例能够通过更符合PC操作系统操作习惯的方式来支持快捷方式特性。The embodiment of the present application uses a unified desktop window management technology to allow users to directly open the functions provided by the application through the desktop shortcut of the PC operating system (that is, each application has its own desktop shortcut), which is more in line with the habits of PC operating system users. On this basis, the embodiment of the present application can support the shortcut feature in a way that is more in line with the operating habits of the PC operating system.
本申请实施例结合PC操作系统右键菜单的便捷性,利用移动应用引擎原有的多窗口能力,将在安装应用时获取的快捷方式信息列表,嵌入到该应用PC操作系统侧桌面图标的右键上下文菜单中。当用户选中快捷方式对应的菜单项时,直接将被选中的快捷方式的功能界面显示在指定的多窗口上。用户能够像在移动终端中使用长按操作一般便利,直接从PC操作系统桌面就能打开应用的快捷方式。The embodiment of the present application combines the convenience of the right-click menu of the PC operating system and utilizes the original multi-window capability of the mobile application engine to embed the shortcut information list obtained when installing the application into the right-click context menu of the desktop icon on the PC operating system side 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 specified multi-window. The user can open the shortcut of the application directly from the PC operating system desktop as conveniently as using a long press operation in a mobile terminal.
本申请实施例基于移动操作系统模拟器的生态融合场景,将应用的快捷方式嵌入到PC操作系统桌面快捷方式的右键菜单栏中,用户选择对应的菜单项时,能够直接拉起被选择的快捷方式对应的功能界面。本申请实施例结合PC操作系统右键菜单的便捷性,提供对移动操作系统中快捷方式特性的支持。The embodiment of the present application is based on the ecological integration scenario of the mobile operating system simulator, and the shortcut of the application is embedded in the right-click menu bar of the desktop shortcut of the PC operating system. When the user selects the corresponding menu item, the function interface corresponding to the selected shortcut can be directly pulled up. The embodiment of the present application combines the convenience of the right-click menu of the PC operating system to provide support for the shortcut feature in the mobile operating system.
需要说明的是,上述PC操作系统可以为Windows或Linux操作系统,本申请实施例对此不作限定;上述移动操作系统可以为安卓操作系统、iOS操作系统或鸿蒙操作系统等,本申请实施例对此不作限定;但本申请实施例的以下描述中,以PC操作系统为Windows操作系统,移动操作系统为安卓操作系统为例进行说明。It should be noted that the above-mentioned PC operating system can be a Windows or Linux operating system, which is not limited to the embodiments of the present application; the above-mentioned mobile operating system can be an Android operating system, an iOS operating system, or a Hongmeng operating system, etc., which is not limited to the embodiments of the present application; however, in the following description of the embodiments of the present application, the PC operating system is a Windows operating system and the mobile operating system is an Android operating system.
本申请实施例提供的应用的功能界面的打开方法可以应用于终端设备,其中,上述终端设备可以为PC、笔记本电脑或超级移动个人计算机(ultra-mobile personal computer,UMPC)等设备;本申请实施例对终端设备的具体类型不作任何限制,在本申请实施例的以下描述中,以终端设备为PC为例进行说明。The method for opening the functional interface of the application provided in the embodiment of the present application can be applied to a terminal device, wherein the terminal device can be a PC, a laptop computer, or an ultra-mobile personal computer (UMPC) and the like; the embodiment of the present application does not impose any restriction on the specific type of the terminal device, and in the following description of the embodiment of the present application, the terminal device is taken as an example for explanation.
示例性的,图1为本申请一个实施例提供的终端设备的结构示意图,如图1所示,如图1所示,终 端设备100可以包括处理器110、通信接口120和存储器130。其中,处理器110、通信接口120和存储器130之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器130用于存储程序代码,该处理器110用于从该存储器130中调用并运行该程序代码。For example, FIG1 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application, as shown in FIG1, as shown in FIG1, the terminal The terminal device 100 may include a processor 110, a communication interface 120, and a memory 130. The processor 110, the communication interface 120, and the memory 130 may communicate with each other through an internal connection path to transmit control and/or data signals. The memory 130 is used to store program codes, and the processor 110 is used to call and run the program codes from the memory 130.
上述处理器110可以和存储器130可以合成一个处理装置,更常见的是彼此独立的部件,处理器110用于执行存储器130中存储的程序代码。具体实现时,该存储器130也可以集成在处理器110中,或者,独立于处理器110。The processor 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components, and the processor 110 is used to execute program codes stored in the memory 130. In specific implementation, the memory 130 may also be integrated into the processor 110, or may be independent of the processor 110.
除此之外,为了使得终端设备100的功能更加完善,该终端设备100还可以包括输入单元140和显示单元150等中的一个或多个。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 .
可选地,上述终端设备100还可以包括电源160,用于给终端设备100中的各种器件或电路提供电源。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 .
应理解,图1所示的终端设备100中的处理器110可以是片上系统SOC,该处理器110中可以包括中央处理器(central processing unit,CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(graphics processing unit,GPU)等。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 (CPU), and may further include other types of processors, such as a graphics processing unit (GPU), etc.
为了便于理解,本申请以下实施例将以具有图1所示结构的终端设备为例,结合附图和应用场景,对本申请实施例提供的应用的功能界面的打开方法进行具体阐述。For ease of understanding, the following embodiments of the present application will take a terminal device having the structure shown in FIG. 1 as an example, and combine the accompanying drawings and application scenarios to specifically explain the method for opening the functional interface of the application provided in the embodiments of the present application.
本申请实施例可以应用到Windows操作系统中的安卓模拟器上,通过将移动应用的快捷方式嵌入到Windows操作系统的桌面快捷方式的上下文菜单中,为用户提供快捷拉起应用对应功能界面的接口,如图2所示,图2为本申请一个实施例提供的在Window操作系统的桌面快捷方式的上下文菜单中,增加移动应用的快捷方式后的示意图。图2中,21为Window操作系统的桌面,桌面21中显示的“**音乐”图标为移动应用的图标,在右键单击“**音乐”图标之后,桌面21上显示右键上下文菜单22,在上下文菜单22中“听歌识曲”、“搜索”、“播放本地音乐”和“私人FM”这几项即为移动应用“**音乐”的快捷方式(APP shortcut)。The embodiment of the present application can be applied to the Android simulator in the Windows operating system. By embedding the shortcut of the mobile application into the context menu of the desktop shortcut of the Windows operating system, the user is provided with an interface for quickly pulling up the corresponding functional interface of the application, as shown in Figure 2, which is a schematic diagram of adding a shortcut of the mobile application to the context menu of the desktop shortcut of the Window operating system provided by an embodiment of the present application. In Figure 2, 21 is the desktop of the Window operating system, and the "**Music" icon displayed on the desktop 21 is the icon of the mobile application. After right-clicking the "**Music" icon, a right-click context menu 22 is displayed on the desktop 21. In the context menu 22, the items "Listen to the song and identify the song", "Search", "Play local music" and "Private FM" are the shortcuts (APP shortcut) of the mobile application "**Music".
本申请实施例提供的应用的功能界面的打开方法的实现依赖Windows操作系统,并且需要在PC上安装安卓模拟器软件,依托该安卓模拟器实现上述应用的功能界面的打开方法。The implementation of the method for opening the functional interface of the application provided in the embodiment of the present application relies on the Windows operating system, and requires the installation of Android emulator software on the PC, relying on the Android emulator to implement the method for opening the functional interface of the above-mentioned application.
概括来说,首先,在利用安卓模拟器软件在Windows操作系统中安装移动应用的过程中,将上述移动应用的快捷方式列表发送到Windows操作系统侧并嵌入到应用快捷方式的右键上下文菜单中,之后对应的菜单项被选择即可拉起对应的应用并进入被选择的快捷方式所指定的功能界面。In summary, first, in the process of installing mobile applications in the Windows operating system using the Android emulator software, the shortcut list of the above mobile applications is sent to the Windows operating system side and embedded in the right-click context menu of the application shortcut. After that, the corresponding menu item is selected to pull up the corresponding application and enter the function interface specified by the selected shortcut.
图3(a)~图3(b)为本申请一个实施例提供的应用的功能界面的打开方法的实现架构图。如图3(a)~图3(b)所示,PC端的Windows操作系统作为宿主系统,提供软件运行所需的设备驱动和运行环境。PC中安装有虚拟机即安卓模拟器软件,安卓模拟器软件作为客户系统运行在宿主系统上,提供安卓应用运行的虚拟环境。安卓操作系统运行在虚拟机中,作为安卓应用运行的载体,需要说明的是,此处运行在虚拟机中的安卓操作系统可以为安卓操作系统的镜像。由于移动应用引擎的统一桌面窗口管理技术,每个安装的安卓应用都有自己的桌面快捷方式。Figures 3(a) to 3(b) are implementation architecture diagrams of a method for opening the functional interface of an application provided in an embodiment of the present application. As shown in Figures 3(a) to 3(b), the Windows operating system on the PC side serves as a host system and provides the device drivers and operating environment required for the software to run. A virtual machine, namely Android simulator software, is installed in the PC. The Android simulator software runs on the host system as a client system and provides a virtual environment for the operation of Android applications. The Android operating system runs in the virtual machine as a carrier for the operation of Android applications. It should be noted that the Android operating system running in the virtual machine here can be a mirror image of the Android operating system. Due to the unified desktop window management technology of the mobile application engine, each installed Android application has its own desktop shortcut.
用户在PC中安装安卓应用时,安卓模拟器侧第一应用服务(AppService)将应用数据传递第二应用服务,其中,第二应用服务可以为上述虚拟机在安卓操作系统中提供的应用服务。安卓操作系统安装应用,并通过统一桌面窗口管理结束获取快捷方式的各项信息,随后保存快捷方式的活动实例(Activity),并将各快捷方式的图标、名称和/或标识(identifier,ID)等信息传递给第一应用服务。第一应用服务将这些信息添加到注册表,从而可以在应用桌面图标的右键上下文菜单中添加该应用的快捷方式对应的菜单项。When a user installs an Android application in a PC, the first application service (AppService) on the Android simulator side passes the application data to the second application service, where the second application service can be the application service provided by the above-mentioned virtual machine in the Android operating system. The Android operating system installs the application and obtains various information of the shortcut through the unified desktop window management, then saves the activity instance (Activity) of the shortcut, and passes the icon, name and/or identifier (ID) of each shortcut to the first application service. The first application service adds this information to the registry, so that the menu item corresponding to the shortcut of the application can be added to the right-click context menu of the application desktop icon.
当用户用鼠标右键单击应用桌面图标并在弹出的上下文菜单中选中快捷方式对应的菜单项时,第一应用服务会将待拉起的应用包名、快捷方式的标识以及要显示的窗口的标识(Display id)发送给安卓操作系统侧,安卓操作系统侧的第二应用服务则根据快捷方式的标识来选择对应的活动实例。第二应用服务通过内容(Intent)在指定窗口(Display)上拉起指定活动实例,然后将拉起指定活动实例的事件通知第一应用服务,之后,由第一应用服务创建待显示的窗口,第二应用服务则绘制出上述活动实例对应的内容,从而可以在Windows操作系统的桌面中显示被选中的快捷方式对应的功能界面窗口。When the user right-clicks the application desktop icon and selects the menu item corresponding to the shortcut in the pop-up context menu, the first application service sends the application package name to be launched, the shortcut identifier, and the window identifier (Display id) to be displayed to the Android operating system side, and the second application service on the Android operating system side selects the corresponding activity instance according to the shortcut identifier. The second application service launches the specified activity instance on the specified window (Display) through the content (Intent), and then notifies the first application service of the event of launching the specified activity instance. After that, the first application service creates the window to be displayed, and the second application service draws the content corresponding to the above activity instance, so that the function interface window corresponding to the selected shortcut can be displayed on the desktop of the Windows operating system.
图4为本申请一个实施例提供的应用的功能界面的打开方法的生态融合效果图,如图4所示,随着 应用成功安装,应用的快捷方式会嵌入到应用桌面图标右键的上下文菜单中。图4中,41即为“**音乐”的右键上下文菜单,其中的“听歌识曲”、“搜索”、“播放本地音乐”和“私人FM”这几项即为“**音乐”的快捷方式。当快捷方式对应的菜单项被选中时,例如:图4中,“听歌识曲”这个快捷方式对应的菜单项被选中,则“**音乐”这个应用被拉起,并且PC的桌面上会显示“听歌识曲”这个快捷方式对应的功能界面窗口,图4中,42即为快捷方式“听歌识曲”对应的功能界面窗口。FIG4 is an ecological integration effect diagram of a method for opening a functional interface of an application provided by an embodiment of the present application. As shown in FIG4, as When the application is successfully installed, the shortcut of the application will be embedded in the context menu of the right-click of the application desktop icon. In Figure 4, 41 is the right-click context menu of "**Music", in which "Listen to Songs and Identify Songs", "Search", "Play Local Music" and "Private FM" are the shortcuts of "**Music". When the menu item corresponding to the shortcut is selected, for example: in Figure 4, the menu item corresponding to the shortcut "Listen to Songs and Identify Songs" is selected, then the "**Music" application is pulled up, and the function interface window corresponding to the shortcut "Listen to Songs and Identify Songs" will be displayed on the PC desktop. In Figure 4, 42 is the function interface window corresponding to the shortcut "Listen to Songs and Identify Songs".
结合上述实施例及相关附图,本申请实施例提供了一种应用的功能界面的打开方法,该方法的实现涉及终端设备100侧,本申请实施例以终端设备100为PC为例进行说明。In combination with the above embodiments and related drawings, an embodiment of the present application provides a method for opening a functional interface of an application. The implementation of this method involves the terminal device 100 side. The embodiment of the present application is described by taking the terminal device 100 as a PC as an example.
图5为本申请一个实施例提供的应用的功能界面的打开方法的流程图,如图5所示,上述应用的功能界面的打开方法可以包括:FIG5 is a flow chart of a method for opening a functional interface of an application provided by an embodiment of the present application. As shown in FIG5 , the method for opening a functional interface of the application may include:
步骤501,终端设备100检测到终端设备100中安装的应用的桌面图标被触发。Step 501: The terminal device 100 detects that a desktop icon of an application installed in the terminal device 100 is triggered.
其中,上述应用安装在终端设备100的客户系统中,上述桌面图标显示在终端设备100的宿主系统的桌面中,上述客户系统运行在上述宿主系统上。The above application is installed in the client system of the terminal device 100, the above desktop icon is displayed on the desktop of the host system of the terminal device 100, and the above client system runs on the above host system.
参见图2,图2中的“**音乐”即为安装在终端设备100的客户系统中的应用,“**音乐”的桌面图标23显示在终端设备100的宿主系统的桌面21中。Referring to FIG. 2 , the “**Music” in FIG. 2 is an application installed in the client system of the terminal device 100 , and the desktop icon 23 of the “**Music” is displayed on the desktop 21 of the host system of the terminal device 100 .
本实施例中,上述宿主系统可以为PC操作系统,上述客户系统可以为移动操作系统;举例来说,上述PC操作系统可以为Windows操作系统,上述移动操作系统可以为安卓操作系统。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.
步骤502,当检测到上述桌面图标的触发方式符合预定操作时,终端设备100显示与上述预定操作对应的上下文菜单。Step 502: When it is detected that the triggering mode of the desktop icon meets the predetermined operation, the terminal device 100 displays a context menu corresponding to the predetermined operation.
其中,上述预定操作可以为:鼠标右键单击,当然本实施例并不仅限于此,上述预定操作也可以为其他操作形式,例如:键盘中“Shift+F10”被按下等,本实施例对上述预定操作不作限定。Among them, the above-mentioned predetermined operation can be: right-clicking the mouse. Of course, this embodiment is not limited to this. The above-mentioned predetermined operation can also be other operation forms, such as: "Shift+F10" is pressed on the keyboard, etc. This embodiment does not limit the above-mentioned predetermined operation.
继续参见图2,22所示的菜单即为上述预定操作对应的上下文菜单。Continuing to refer to FIG. 2 , the menu shown in 22 is the context menu corresponding to the above-mentioned predetermined operation.
步骤503,检测到上述上下文菜单中的目标快捷方式被选中之后,终端设备100中的第一应用服务获取上述应用的应用包名、目标快捷方式的标识和上述应用对应的待显示窗口的标识。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.
其中,第一应用服务为终端设备100中安装的虚拟机在宿主系统提供的应用服务。Among them, the first application service is an application service provided by the virtual machine installed in the terminal device 100 in the host system.
具体地,参见图2,图2中,上下文菜单22中的快捷方式“听歌识曲”被选中,终端设备100中的第一应用服务获取“**音乐”的应用包名、快捷方式“听歌识曲”的标识和“**音乐”这个应用对应的待显示窗口的标识。Specifically, referring to Figure 2, in Figure 2, the shortcut "Listen to Songs and Identify Songs" 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 Songs and Identify Songs", and the identifier of the window to be displayed corresponding to the "**Music" application.
步骤504,第一应用服务将上述应用包名、目标快捷方式的标识和上述待显示窗口的标识发送给终端设备100中的第二应用服务,以供第二应用服务拉起目标快捷方式的标识对应的活动实例(Activity),并将已拉起上述活动实例的事件通知给第一应用服务。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 can launch the activity instance (Activity) corresponding to the identifier of the target shortcut, and notify the first application service of the event that the activity instance has been launched.
其中,第二应用服务为终端设备100中安装的虚拟机在上述客户系统提供的应用服务。Among them, the second application service is an application service provided by the virtual machine installed in the terminal device 100 in the above-mentioned client system.
具体地,第二应用服务拉起上述目标快捷方式的标识对应的活动实例可以为:第二应用服务选择上述目标快捷方式的标识对应的活动实例,通过内容Intent在待显示窗口上拉起上述活动实例。Specifically, the second application service may launch the activity instance corresponding to the identifier of the target shortcut by: the second application service selects the activity instance corresponding to the identifier of the target shortcut, and launches the activity instance on the window to be displayed through the content Intent.
步骤505,第一应用服务创建待显示窗口,第二应用服务绘制上述活动实例对应的内容,以在上述宿主系统的桌面中显示上述快捷方式对应的功能界面窗口。Step 505: the first application service creates a window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
上述应用的功能界面的打开方法中,终端设备100检测到终端设备100中安装的应用的桌面图标被触发,当检测到上述桌面图标的触发方式符合预定操作时,终端设备100显示与上述预定操作对应的上下文菜单,检测到上述上下文菜单中的目标快捷方式被选中之后,终端设备100中的第一应用服务获取上述应用的应用包名、目标快捷方式的标识和上述应用对应的待显示窗口的标识,第一应用服务将上述应用包名、目标快捷方式的标识和上述待显示窗口的标识发送给终端设备100中的第二应用服务,以供第二应用服务拉起目标快捷方式的标识对应的活动实例(Activity),并将已拉起上述活动实例的事件通知给第一应用服务,由第一应用服务创建待显示窗口,第二应用服务绘制上述活动实例对应的内容,以在上述宿主系统的桌面中显示上述快捷方式对应的功能界面窗口,从而可以实现将移动生态应用的快捷方式嵌入到终端设备100的应用桌面快捷方式的上下文菜单中,简化操作,提高用户体验。In the method for opening the functional interface of the above-mentioned application, the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered. When it is detected that the triggering method of the above-mentioned desktop icon meets the predetermined operation, the terminal device 100 displays the context menu corresponding to the above-mentioned predetermined operation. After detecting that the target shortcut in the above-mentioned context menu is selected, the first application service in the terminal device 100 obtains the application package name of the above-mentioned application, the identifier of the target shortcut and the identifier of the window to be displayed corresponding to the above-mentioned application. The first application service sends the above-mentioned application package name, the identifier of the target shortcut and the identifier of the above-mentioned window to be displayed to the second application service in the terminal device 100, so that the second application service can pull up the activity instance (Activity) corresponding to the identifier of the target shortcut, and notify the first application service of the event that the above-mentioned activity instance has been pulled up. The first application service creates a window to be displayed, and the second application service draws the content corresponding to the above-mentioned activity instance to display the functional interface window corresponding to the above-mentioned shortcut on the desktop of the above-mentioned host system, so that the shortcut of the mobile ecological application can be embedded in the context menu of the application desktop shortcut of the terminal device 100, simplifying the operation and improving the user experience.
图6为本申请另一个实施例提供的应用的功能界面的打开方法的流程图,如图6所示,本申请图5 所示实施例中,步骤501之前,还可以包括:FIG. 6 is a flow chart of a method for opening a function interface of an application provided by another embodiment of the present application. As shown in FIG. 6 , FIG. 5 of the present application In the illustrated embodiment, before step 501, the following may also be included:
步骤601,在上述应用的安装进程被触发之后,第一应用服务获取上述应用的应用数据,并将上述应用数据发送给第二应用服务。其中,上述应用数据可以包括应用的安装包的包名,用于指示待安装的应用。Step 601: After the installation process of the application is triggered, the first application service obtains the application data of the application and sends the application data to the second application service. The application data may include the package name of the installation package of the application, which is used to indicate the application to be installed.
步骤602,第二应用服务根据上述应用数据在上述客户系统中安装上述应用,获取上述应用的快捷方式的名称、标识和上述快捷方式的标识对应的活动实例。Step 602: The second application service installs the application in the client system according to the application data, and obtains the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut.
步骤603,第二应用服务保存上述快捷方式的标识对应的活动实例,将上述快捷方式的名称和标识发送给第一应用服务。Step 603: The second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service.
步骤604,第一应用服务保存上述快捷方式的标识,并将上述快捷方式的名称添加到宿主系统的注册表中,以在上述上下文菜单中添加上述快捷方式对应的菜单项。Step 604: The first application service saves the identifier of the shortcut and adds the name of the shortcut to the registry of the host system, so as to add a menu item corresponding to the shortcut to the context menu.
这样,终端设备100检测到终端设备100中安装的应用的桌面图标被触发之后,如果触发方式符合预定操作,终端设备100即可显示与上述预定操作对应的上下文菜单。In this way, after the terminal device 100 detects that the desktop icon of the application installed in the terminal device 100 is triggered, if the triggering method conforms to the predetermined operation, the terminal device 100 can display the context menu corresponding to the above predetermined operation.
本申请实施例提供的应用的功能界面的打开方法解决了移动操作系统模拟器中不支持移动操作系统中应用的快捷方式特性的问题。并且,得益于移动应用引擎的统一桌面窗口管理技术,本申请实施例将移动操作系统中应用的快捷方式列表嵌入到了该应用PC操作系统侧桌面图标的右键上下文菜单中,用户只需要右键单击该应用PC操作系统侧的桌面图标,并选中上下文菜单中的快捷方式,即可模拟用户在移动端长按应用图标并选中菜单项的操作,从而可以直接唤起应用并进入被选中的快捷方式对应的功能界面,操作简便且符合Windows用户习惯,让用户感知不到生态融合场景下系统之间的差异,提高了用户体验。The method for opening the functional interface of the application provided in the embodiment of the present application solves the problem that the mobile operating system simulator does not support the shortcut feature of the application in the mobile operating system. In addition, thanks to the unified desktop window management technology of the mobile application engine, the embodiment of the present application embeds the shortcut list of the application in the mobile operating system into the right-click context menu of the desktop icon on the PC operating system side of the application. The user only needs to right-click the desktop icon on the PC operating system side of the application and select the shortcut in the context menu to simulate the user's operation of long pressing the application icon and selecting the menu item on the mobile terminal, so that the application can be directly aroused and the functional interface corresponding to the selected shortcut can be entered. The operation is simple and in line with the habits of Windows users, so that users cannot perceive the differences between systems in the ecological integration scenario, which improves the user experience.
可以理解的是,上述实施例中的部分或全部步骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.
可以理解的是,终端设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本申请所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to implement the above functions, the terminal device includes hardware and/or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
本实施例可以根据上述方法实施例对终端设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。This embodiment can divide the terminal device into functional modules according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
图7为本申请另一个实施例提供的终端设备的结构示意图,在采用对应各个功能划分各个功能模块的情况下,图7示出了上述实施例中涉及的终端设备700的一种可能的组成示意图,如图7所示,该终端设备700可以包括:检测模块701、显示模块702、获取模块703和发送模块704;FIG7 is a schematic diagram of the structure of a terminal device provided by another embodiment of the present application. In the case where each functional module is divided according to each function, FIG7 shows a possible schematic diagram of the composition of a terminal device 700 involved in the above embodiment. As shown in FIG7 , the terminal device 700 may include: a detection module 701, a display module 702, an acquisition module 703 and a sending module 704;
其中,检测模块701,用于检测到终端设备中安装的应用的桌面图标被触发;其中,上述应用安装在终端设备的客户系统中,上述桌面图标显示在上述终端设备的宿主系统的桌面中,上述客户系统运行在宿主系统上;The detection module 701 is used to detect that a desktop icon of an application installed in a terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system;
显示模块702,用于当检测模块701检测到上述桌面图标的触发方式符合预定操作时,显示与上述预定操作对应的上下文菜单;The display module 702 is used to display a context menu corresponding to the predetermined operation when the detection module 701 detects that the triggering mode of the desktop icon meets the predetermined operation;
获取模块703,用于在检测模块701检测到上述上下文菜单中的目标快捷方式被选中之后,通过终端设备中的第一应用服务获取上述应用的应用包名、上述目标快捷方式的标识和上述应用对应的待显示窗口的标识;其中,第一应用服务为终端设备中安装的虚拟机在宿主系统提供的应用服务;The acquisition module 703 is used to acquire 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 through the first application service in the terminal device after the detection module 701 detects that the target shortcut in the context menu is selected; wherein the first application service is an application service provided by the virtual machine installed in the terminal device in the host system;
发送模块704,用于通过第一应用服务将上述应用包名、上述目标快捷方式的标识和待显示窗口的标识发送给终端设备中的第二应用服务,以供第二应用服务拉起目标快捷方式的标识对应的活动实例,并将已拉起上述活动实例的事件通知给第一应用服务;其中,第二应用服务为终端设备中安装的虚拟机在客户系统提供的应用服务;具体地,第二应用服务拉起目标快捷方式的标识对应的活动实例可以为: 第二应用服务选择目标快捷方式的标识对应的活动实例,通过内容Intent在上述待显示窗口上拉起上述活动实例。The sending module 704 is used to send 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 through the first application service, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system; specifically, the activity instance corresponding to the identifier of the target shortcut pulled up by the second application service can be: The second application service selects the activity instance corresponding to the identifier of the target shortcut, and launches the activity instance on the to-be-displayed window through the content Intent.
显示模块702,还用于通过第一应用服务创建上述待显示窗口,通过第二应用服务绘制上述活动实例对应的内容,以在上述宿主系统的桌面中显示上述快捷方式对应的功能界面窗口。The display module 702 is further used to create the above-mentioned window to be displayed through the first application service, and to draw the content corresponding to the above-mentioned activity instance through the second application service, so as to display the function interface window corresponding to the above-mentioned shortcut on the desktop of the above-mentioned host system.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
本实施例提供的终端设备700,用于执行本申请图5所示实施例提供的应用的功能界面的打开方法,因此可以达到与上述方法相同的效果。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, and thus can achieve the same effect as the above method.
图8为本申请再一个实施例提供的终端设备的结构示意图,与图7所示的终端设备相比,不同之处在于,图8所示的终端设备700还可以包括:安装模块705、保存模块706和添加模块707;FIG8 is a schematic diagram of the structure of a terminal device provided in another embodiment of the present application. Compared with the terminal device shown in FIG7 , the difference is that the terminal device 700 shown in FIG8 may further include: an installation module 705, a storage module 706 and an adding module 707;
其中,获取模块703,还用于在检测模块701检测到终端设备中安装的应用的桌面图标被触发之前,在上述应用的安装进程被触发之后,通过第一应用服务获取上述应用的应用数据;The acquisition module 703 is further configured to acquire application data of the application through the first application service before the detection module 701 detects that the desktop icon of the application installed in the terminal device is triggered and after the installation process of the application is triggered;
发送模块704,还用于将上述应用数据发送给第二应用服务;The sending module 704 is further used to send the above application data to the second application service;
安装模块705,用于通过第二应用服务根据上述应用数据在客户系统中安装上述应用,获取上述应用的快捷方式的名称、标识和上述快捷方式的标识对应的活动实例;An installation module 705 is used to install the application in the client system according to the application data through a second application service, and obtain the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
保存模块706,用于通过第二应用服务保存上述快捷方式的标识对应的活动实例;A saving module 706, configured to save the activity instance corresponding to the identifier of the shortcut through a second application service;
发送模块704,还用于将上述快捷方式的名称和标识发送给第一应用服务;The sending module 704 is further used to send the name and identifier of the shortcut to the first application service;
保存模块706,还用于通过第一应用服务保存上述快捷方式的标识;The saving module 706 is further used to save the identifier of the shortcut through the first application service;
添加模块707,用于将上述快捷方式的名称添加到上述宿主系统的注册表中,以在上述上下文菜单中添加上述快捷方式对应的菜单项。The adding module 707 is used 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 to the context menu.
本实施例中,上述宿主系统可以为PC操作系统,上述客户系统可以为移动操作系统。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 involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
本实施例提供的终端设备700,用于执行本申请图5和图6所示实施例提供的应用的功能界面的打开方法,因此可以达到与上述方法相同的效果。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 Figures 5 and 6 of this application, and thus can achieve the same effect as the above method.
应当理解的是,终端设备700可以对应于图1所示的终端设备100。其中,发送模块704的功能可以由图1所示的终端设备100中通信接口120实现;检测模块701、显示模块702、获取模块703、安装模块705、保存模块706和添加模块707的功能可以由图1所示的终端设备100中的处理器110实现。It should be understood that the terminal device 700 may correspond to the terminal device 100 shown in FIG1 . The function of the sending module 704 may be implemented by the communication interface 120 in the terminal device 100 shown in FIG1 ; the functions of the detection module 701 , the display module 702 , the acquisition module 703 , the installation module 705 , the storage module 706 and the adding module 707 may be implemented by the processor 110 in the terminal device 100 shown in FIG1 .
在采用集成的单元的情况下,终端设备700可以包括处理模块、存储模块和通信模块。In the case of adopting an integrated unit, the terminal device 700 may include a processing module, a storage module and a communication module.
其中,处理模块可以用于对终端设备700的动作进行控制管理,例如,可以用于支持终端设备700执行上述检测模块701、显示模块702、获取模块703、发送模块704、安装模块705、保存模块706和添加模块707执行的步骤。存储模块可以用于支持终端设备1500存储程序代码和数据等。通信模块,可以用于支持终端设备700与其他设备的通信。The processing module can be used to control and manage the actions of the terminal device 700, for example, it can be used to support the terminal device 700 to execute the steps executed by the detection module 701, the display module 702, the acquisition module 703, the sending module 704, the installation module 705, the storage module 706 and the adding module 707. The storage module can be used to support the terminal device 1500 to store program codes and data, etc. The communication module can be used to support the communication between the terminal device 700 and other devices.
其中,处理模块可以是处理器或控制器,其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框、模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片和/或Wi-Fi芯片等与其他电子设备交互的设备。Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logic boxes, modules and circuits described in combination with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip and/or a Wi-Fi chip.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的终端设备700可以为具有图1所示结构的设备。In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device 700 involved in this embodiment may be a device having the structure shown in FIG. 1 .
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图6所示实施例提供的方法。The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the embodiment shown in Figures 5 to 6 of the present application.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图6所示实施例提供的方法。The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method provided by the embodiments shown in Figures 5 and 6 of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或” 的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "more" means two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and/or B can mean that A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. The character "/" generally indicates that the associated objects before and after are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b and c can be single or multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。 The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

  1. 一种应用的功能界面的打开方法,其特征在于,包括:A method for opening a function interface of an application, characterized by comprising:
    终端设备检测到所述终端设备中安装的应用的桌面图标被触发;其中,所述应用安装在所述终端设备的客户系统中,所述桌面图标显示在所述终端设备的宿主系统的桌面中,所述客户系统运行在所述宿主系统上;The terminal device detects that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system;
    当检测到所述桌面图标的触发方式符合预定操作时,所述终端设备显示与所述预定操作对应的上下文菜单;When it is detected that the triggering mode of the desktop icon conforms to a predetermined operation, the terminal device displays a context menu corresponding to the predetermined operation;
    检测到所述上下文菜单中的目标快捷方式被选中之后,所述终端设备中的第一应用服务获取所述应用的应用包名、所述目标快捷方式的标识和所述应用对应的待显示窗口的标识;其中,所述第一应用服务为所述终端设备中安装的虚拟机在所述宿主系统提供的应用服务;After detecting that the target shortcut in the context menu is selected, the first application service in the terminal device 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; wherein the first application service is an application service provided by the virtual machine installed in the terminal device in the host system;
    所述第一应用服务将所述应用包名、所述目标快捷方式的标识和所述待显示窗口的标识发送给所述终端设备中的第二应用服务,以供所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例,并将已拉起所述活动实例的事件通知给所述第一应用服务;其中,所述第二应用服务为所述终端设备中安装的虚拟机在所述客户系统提供的应用服务;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, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system;
    所述第一应用服务创建所述待显示窗口,所述第二应用服务绘制所述活动实例对应的内容,以在所述宿主系统的桌面中显示所述快捷方式对应的功能界面窗口。The first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
  2. 根据权利要求1所述的方法,其特征在于,所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例包括:The method according to claim 1 is characterized in that the activity instance corresponding to the identifier of the target shortcut pulled up by the second application service comprises:
    所述第二应用服务选择所述目标快捷方式的标识对应的活动实例;The second application service selects an activity instance corresponding to the identifier of the target shortcut;
    所述第二应用服务通过内容Intent在所述待显示窗口上拉起所述活动实例。The second application service launches the activity instance on the to-be-displayed window through the content Intent.
  3. 根据权利要求1所述的方法,其特征在于,所述终端设备检测到所述终端设备中安装的应用的桌面图标被触发之前,还包括:The method according to claim 1, characterized in that before the terminal device detects that the desktop icon of the application installed in the terminal device is triggered, it also includes:
    在所述应用的安装进程被触发之后,所述第一应用服务获取所述应用的应用数据,并将所述应用数据发送给所述第二应用服务;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 second application service installs the application in the client system according to the application data, and obtains the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
    所述第二应用服务保存所述快捷方式的标识对应的活动实例,将所述快捷方式的名称和标识发送给所述第一应用服务;The second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service;
    所述第一应用服务保存所述快捷方式的标识,并将所述快捷方式的名称添加到所述宿主系统的注册表中,以在所述上下文菜单中添加所述快捷方式对应的菜单项。The first application service saves the identifier of the shortcut and adds 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.
  4. 根据权利要求1-3任意一项所述的方法,其特征在于,所述宿主系统为PC操作系统,所述客户系统为移动操作系统。The method according to any one of claims 1-3 is characterized in that the host system is a PC operating system and the client system is a mobile operating system.
  5. 一种应用的功能界面的打开装置,其特征在于,所述装置设置在终端设备中,所述装置包括:A device for opening a functional interface of an application, characterized in that the device is arranged in a terminal device, and comprises:
    检测模块,用于检测到所述终端设备中安装的应用的桌面图标被触发;其中,所述应用安装在所述终端设备的客户系统中,所述桌面图标显示在所述终端设备的宿主系统的桌面中,所述客户系统运行在所述宿主系统上;A detection module, configured to detect that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on a desktop of a host system of the terminal device, and the client system runs on the host system;
    显示模块,用于当所述检测模块检测到所述桌面图标的触发方式符合预定操作时,显示与所述预定操作对应的上下文菜单;A display module, configured to display a context menu corresponding to a predetermined operation when the detection module detects that the triggering mode of the desktop icon conforms to the predetermined operation;
    获取模块,用于在所述检测模块检测到所述上下文菜单中的目标快捷方式被选中之后,通过所述终端设备中的第一应用服务获取所述应用的应用包名、所述目标快捷方式的标识和所述应用对应的待显示窗口的标识;其中,所述第一应用服务为所述终端设备中安装的虚拟机在所述宿主系统提供的应用服务;an acquisition module, configured to acquire, after the detection module detects that the target shortcut in the context menu is selected, 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 through a first application service in the terminal device; wherein the first application service is an application service provided by a virtual machine installed in the terminal device in the host system;
    发送模块,用于通过所述第一应用服务将所述应用包名、所述目标快捷方式的标识和所述待显示窗口的标识发送给所述终端设备中的第二应用服务,以供所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例,并将已拉起所述活动实例的事件通知给所述第一应用服务;其中,所述第二应用服务为所述终端设备中安装的虚拟机在所述客户系统提供的应用服务;a sending module, configured to send 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 through the first application service, so that the second application service can pull up the activity instance corresponding to the identifier of the target shortcut, and notify the first application service of the event that the activity instance has been pulled up; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system;
    所述显示模块,还用于通过所述第一应用服务创建所述待显示窗口,通过所述第二应用服务绘制所 述活动实例对应的内容,以在所述宿主系统的桌面中显示所述快捷方式对应的功能界面窗口。The display module is further configured to create the window to be displayed through the first application service and draw the window through the second application service. The content corresponding to the activity instance is displayed to display the function interface window corresponding to the shortcut on the 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, and the one or more computer programs include instructions, and when the instructions are executed by the terminal device, the terminal device performs the following steps:
    检测到所述终端设备中安装的应用的桌面图标被触发;其中,所述应用安装在所述终端设备的客户系统中,所述桌面图标显示在所述终端设备的宿主系统的桌面中,所述客户系统运行在所述宿主系统上;Detecting that a desktop icon of an application installed in the terminal device is triggered; wherein the application is installed in a client system of the terminal device, the desktop icon is displayed on the desktop of a host system of the terminal device, and the client system runs on the host system;
    当检测到所述桌面图标的触发方式符合预定操作时,显示与所述预定操作对应的上下文菜单;When it is detected that the triggering mode of the desktop icon conforms to a predetermined operation, a context menu corresponding to the predetermined operation is displayed;
    检测到所述上下文菜单中的目标快捷方式被选中之后,所述终端设备中的第一应用服务获取所述应用的应用包名、所述目标快捷方式的标识和所述应用对应的待显示窗口的标识;其中,所述第一应用服务为所述终端设备中安装的虚拟机在所述宿主系统提供的应用服务;After detecting that the target shortcut in the context menu is selected, the first application service in the terminal device 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; wherein the first application service is an application service provided by the virtual machine installed in the terminal device in the host system;
    所述第一应用服务将所述应用包名、所述目标快捷方式的标识和所述待显示窗口的标识发送给所述终端设备中的第二应用服务,以供所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例,并将已拉起所述活动实例的事件通知给所述第一应用服务;其中,所述第二应用服务为所述终端设备中安装的虚拟机在所述客户系统提供的应用服务;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, so that the second application service pulls up the activity instance 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; wherein the second application service is an application service provided by the virtual machine installed in the terminal device in the client system;
    所述第一应用服务创建所述待显示窗口,所述第二应用服务绘制所述活动实例对应的内容,以在所述宿主系统的桌面中显示所述快捷方式对应的功能界面窗口。The first application service creates the window to be displayed, and the second application service draws the content corresponding to the activity instance to display the function interface window corresponding to the shortcut on the desktop of the host system.
  7. 根据权利要求6所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述第二应用服务拉起所述目标快捷方式的标识对应的活动实例的步骤包括:The terminal device according to claim 6, characterized in that when the instruction is executed by the terminal device, the step of causing the terminal device to execute the second application service to pull up the activity instance corresponding to the identifier of the target shortcut comprises:
    所述第二应用服务选择所述目标快捷方式的标识对应的活动实例;The second application service selects an activity instance corresponding to the identifier of the target shortcut;
    所述第二应用服务通过内容Intent在所述待显示窗口上拉起所述活动实例。The second application service launches the activity instance on the to-be-displayed window through the content Intent.
  8. 根据权利要求6所述的终端设备,其特征在于,当所述指令被所述终端设备执行时,使得所述终端设备执行所述终端设备检测到所述终端设备中安装的应用的桌面图标被触发的步骤之前,还执行以下步骤:The terminal device according to claim 6, characterized in that when the instruction is executed by the terminal device, before the terminal device executes the step of detecting that the desktop icon of the application installed in the terminal device is triggered, the terminal device further executes the following steps:
    在所述应用的安装进程被触发之后,所述第一应用服务获取所述应用的应用数据,并将所述应用数据发送给所述第二应用服务;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 second application service installs the application in the client system according to the application data, and obtains the name and identifier of the shortcut of the application and the activity instance corresponding to the identifier of the shortcut;
    所述第二应用服务保存所述快捷方式的标识对应的活动实例,将所述快捷方式的名称和标识发送给所述第一应用服务;The second application service saves the activity instance corresponding to the identifier of the shortcut, and sends the name and identifier of the shortcut to the first application service;
    所述第一应用服务保存所述快捷方式的标识,并将所述快捷方式的名称添加到所述宿主系统的注册表中,以在所述上下文菜单中添加所述快捷方式对应的菜单项。The first application service saves the identifier of the shortcut and adds 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.
  9. 根据权利要求6-8任意一项所述的终端设备,其特征在于,所述宿主系统为PC操作系统,所述客户系统为移动操作系统。The terminal device according to any one of claims 6 to 8 is characterized in that the host system is a PC operating system and the client system is a mobile operating system.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-4任一项所述的方法。 A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.
PCT/CN2023/120251 2022-10-25 2023-09-21 Method for opening functional interface of application, apparatus, and terminal device WO2024087958A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211312330.5 2022-10-25
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
WO2024087958A1 true WO2024087958A1 (en) 2024-05-02

Family

ID=90829952

Family Applications (1)

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

Country Status (2)

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

Citations (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
CN113934464A (en) * 2021-12-14 2022-01-14 北京鲸鲮信息系统技术有限公司 Method and device for starting android application in Linux system and electronic equipment
CN114077367A (en) * 2021-11-29 2022-02-22 北京鲸鲮信息系统技术有限公司 Method and device for realizing shortcut of android application in Linux system
CN114090172A (en) * 2021-11-10 2022-02-25 北京鲸鲮信息系统技术有限公司 Cross-system widget multiplexing method and device

Patent Citations (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
CN114090172A (en) * 2021-11-10 2022-02-25 北京鲸鲮信息系统技术有限公司 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
CN117971334A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN106293880B (en) method and device for running Android application program on Windows system
US8694981B2 (en) Shared resource dependencies
US8745619B2 (en) Computer system and recording medium
WO2016095383A1 (en) Method for implementing application call and virtual machine
US20120266100A1 (en) Dynamic Tile Billboard User Interface
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
WO2008073618A2 (en) Instant on platform
US8893084B2 (en) Methods and apparatuses for deferred object customization
EP3614250A1 (en) Data processing method and electronic device
US20140075451A1 (en) Inter-process communication channel
MX2013003427A (en) Cross-environment redirection.
WO2012163221A1 (en) Display processing method, apparatus and computer system
US9535666B2 (en) Dynamic agent delivery
WO2015117539A1 (en) Method and apparatus for invoking application installed on electronic device
US10908948B2 (en) Multiple application instances in operating systems that utilize a single process for application execution
WO2018209843A1 (en) Method, device and terminal for executing hotpatch
EP3173906B1 (en) Remote-session keyboard and mouse input via generic device redirection
JP2008204239A (en) Electronic computer and implementation method of user interface by software
US11886924B2 (en) Methods and apparatus to handle dependencies associated with resource deployment requests
CN108780400B (en) Data processing method and electronic equipment
CN113420268A (en) Watermark adding method, device, equipment and storage medium
US20160124757A1 (en) Monitoring a mobile device application
US8719704B2 (en) Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same
CN111045789B (en) Virtual machine starting method and device, electronic equipment and storage medium
WO2024087958A1 (en) Method for opening functional interface of application, apparatus, and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23881538

Country of ref document: EP

Kind code of ref document: A1