Movatterモバイル変換


[0]ホーム

URL:


CN115904078A - Control method, control device, head-mounted display equipment and medium - Google Patents

Control method, control device, head-mounted display equipment and medium
Download PDF

Info

Publication number
CN115904078A
CN115904078ACN202211508645.7ACN202211508645ACN115904078ACN 115904078 ACN115904078 ACN 115904078ACN 202211508645 ACN202211508645 ACN 202211508645ACN 115904078 ACN115904078 ACN 115904078A
Authority
CN
China
Prior art keywords
activity
identification information
virtual screen
application
package name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211508645.7A
Other languages
Chinese (zh)
Inventor
杨明明
陈永富
张同全
陈曰清
王文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co LtdfiledCriticalGoertek Techology Co Ltd
Priority to CN202211508645.7ApriorityCriticalpatent/CN115904078A/en
Publication of CN115904078ApublicationCriticalpatent/CN115904078A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the disclosure discloses a control method, a control device, a head-mounted display device and a medium, wherein the method comprises the following steps: in the running process of the desktop environment, responding to a trigger event for starting a second Activity in the first Activity, and detecting whether identification information of a virtual screen is appointed for the second Activity; under the condition that identification information of a virtual screen is not specified for the second Activity, querying a first hash table according to the package name information of the application to which the first Activity belongs, and obtaining the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs as target identification information; the key word of the first hash table is package name information of any application installed in the head-mounted display device, and the hash value corresponding to the key word is identification information of a virtual screen running the any application; and running the second Activity in the target virtual screen indicated by the target identification information.

Description

Control method, control device, head-mounted display equipment and medium
Technical Field
The disclosed embodiments relate to the technical field of wearable devices, and more particularly, to a control method, a control device, a head-mounted display device, and a computer-readable storage medium.
Background
With the continuous development of the augmented reality technology, a lot of AR products and AR applications appear, taking an AR product as AR glasses as an example, a plurality of virtual screens may be added to the AR glasses, and one AR application is run on each virtual screen, that is, a plurality of AR applications may be run at the front end simultaneously through the virtual screens of the AR glasses.
In the related art, after the AR glasses are turned on, the AR Launcher is started, the virtual screen 1 is started in the AR Launcher, the Activity1 of the application 1 is started, and the running virtual screen is designated as the virtual screen 1 when the Activity1 is started, at this time, the Activity1 of the application 1 can be normally displayed on the virtual screen 1. However, in one case, when Activity2 of App 1 is launched through Activity1, since the launching of Activity2 is a behavior inside App 1, a virtual screen is not specified when Activity2 is launched, resulting in Activity2 not running on virtual screen 1 as desired. In another case, when the Activity1 of the app 2 is started through the Activity1, the Activity1 of the app 2 does not run on the virtual screen 1 because the launch of the app 2 does not specify the virtual screen, that is, both cases cannot achieve normal display of the Activity2 within the virtual screen 1, so that normal display of Activity interaction within the virtual screen cannot be achieved.
Disclosure of Invention
An object of the disclosed embodiments is to provide a control method, a control device, a head-mounted display device, and a medium.
According to a first aspect of embodiments of the present disclosure, there is provided a control method including:
in the running process of the desktop environment, responding to a trigger event for starting a second Activity in the first Activity, and detecting whether identification information of a virtual screen is appointed for the second Activity;
under the condition that identification information of a virtual screen is not specified for the second Activity, inquiring a first hash table according to the package name information of the application to which the first Activity belongs, and obtaining identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs as target identification information; the key word of the first hash table is package name information of any application installed in the head-mounted display device, and the hash value corresponding to the key word is identification information of a virtual screen running the any application;
and running the second Activity in the target virtual screen indicated by the target identification information.
Optionally, under the condition that the identification information of the virtual screen is not specified for the second Activity, querying a first hash table according to the package name information of the application to which the first Activity belongs, obtaining the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, and after the identification information is used as target identification information, the method further includes:
and under the condition that the package name information of the application to which the second Activity belongs is different from the package name information of the application to which the first Activity belongs, recording the target identification information and the package name information of the application to which the second Activity belongs into the first hash table and the second hash table.
Optionally, the method further comprises:
and under the condition that the identification information of the virtual screen is specified for the second Activity, running the second Activity in the virtual screen indicated by the identification information.
Optionally, the method further comprises:
under the condition that identification information of a virtual screen is specified for the second Activity, if the package name information of the application to which the second Activity belongs is not located in a first hash table and a second hash table, recording the identification information of the virtual screen specified for the second Activity and the package name information of the application to which the second Activity belongs into the first hash table and the second hash table;
the keyword of the second hash table is identification information of any virtual screen created in the head-mounted display device, and the hash value corresponding to the keyword is package name information of an application run by the any virtual screen.
Optionally, the detecting, in response to a trigger event that a second Activity is started in the first Activity, whether to designate identification information of a virtual screen for the second Activity includes:
responding to a trigger event for starting a second Activity at the first Activity, and acquiring a starting parameter when the second Activity is started; the starting parameters comprise a first parameter, and the first parameter is used for specifying identification information of a virtual screen running the second Activity;
under the condition that identification information of a virtual screen for running the second Activity is specified in the first parameter, determining that the identification information of the virtual screen specified for the second Activity is detected;
and under the condition that the identification information of the virtual screen running the second Activity is not specified in the first parameter, determining that the identification information of the virtual screen not specified for the second Activity is detected.
Optionally, the start parameter further includes a second parameter and a third parameter, the second parameter is used to record package name information of an application to which a first Activity invoking the second Activity belongs, and the third parameter is used to record package name information of an application to which the second Activity belongs.
Optionally, the method further comprises:
responding to a trigger event for closing a first virtual screen, and acquiring identification information of the first virtual screen;
inquiring the second hash table according to the identification information of the first virtual screen to obtain the packet name information of the application corresponding to the identification information of the first virtual screen;
deleting at least one first hash data in the first hash table and the target hash data in the second hash table; the keyword of the first hash data is the packet name information of the application corresponding to the identification information of the first virtual screen, the hash value corresponding to the keyword is the identification information of the first virtual screen, the keyword of the second hash data is the identification information of the first virtual screen, and the hash value corresponding to the keyword is the packet name information of the application corresponding to the identification information of the first virtual screen; and the number of the first and second groups,
and killing the applications indicated by the packet name information of the application corresponding to the identification information of the first virtual screen in sequence.
According to a second aspect of an embodiment of the present disclosure, there is provided a control apparatus including:
the detection module is used for responding to a trigger event for starting a second Activity in the first Activity in the running process of the desktop environment and detecting whether the identification information of the virtual screen is appointed to the second Activity or not;
the obtaining module is used for querying a first hash table according to the package name information of the application to which the first Activity belongs under the condition that the identification information of the virtual screen is not specified for the second Activity, and obtaining the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs as target identification information; the key word of the first hash table is package name information of any application installed in the head-mounted display device, and the hash value corresponding to the key word is identification information of a virtual screen running the any application;
and the running module is used for running the second Activity in the target virtual screen indicated by the target identification information.
According to a third aspect of embodiments of the present disclosure, there is provided a head-mounted display device including:
a memory for storing executable computer instructions;
a processor for executing the control method according to the first aspect above, under control of the executable computer instructions.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, perform the control method of the first aspect described above.
One advantageous effect of the embodiment of the present disclosure is that, if a trigger event that the second Activity is started in the first Activity is received, the trigger event may be responded, and in a case that it is detected that the identification information of the virtual screen is not specified for the second Activity, the first hash table may be queried according to the package name information of the application to which the first Activity belongs, so as to obtain the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, to obtain the target identification information, and then the second Activity is run in the target virtual screen indicated by the target identification information. Therefore, even if the identification information of the virtual screen is not specified for the second Activity when the second Activity is started by the first Activity, the identification information of the virtual screen running the first Activity can be inquired from the first hash table to obtain the target identification information, so that the second Activity can be directly run on the target virtual screen indicated by the target identification information, the normal running of the second Activity is realized in the target virtual screen, and the normal display of Activity interaction in the target virtual screen is realized.
Other features of the present description and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a hardware configuration schematic diagram of a head-mounted display device according to an embodiment of the present disclosure;
FIG. 2 is a flow chart schematic of a control method according to an embodiment of the present disclosure;
FIG. 3 is a functional block diagram of a control device according to an embodiment of the present disclosure;
FIG. 4 is a functional block diagram of a head mounted display device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
< hardware configuration >
Fig. 1 is a block diagram of a hardware configuration of a head mounted display apparatus 1000 according to an embodiment of the present disclosure.
As shown in fig. 1, the head-mounted display device 1000 may be smart glasses, which may be AR glasses, but may also be other devices, which is not limited in this disclosure.
In one embodiment, as shown in fig. 1, the head mounted display apparatus 1000 may include a processor 1100, a memory 1200, aninterface device 1300, a communication device 1400, a display device 1500, aninput device 1600, a speaker 1700, amicrophone 1800, and the like.
The processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, and the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. Theinterface device 1300 includes, for example, various bus interfaces such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display, an LED display, an OLED (Organic Light-Emitting Diode) display, or the like. Theinput device 1600 includes, for example, a touch screen, a keyboard, a handle, and the like. The head mounted display device 1000 may output audio information through the speaker 1700 and may collect audio information through themicrophone 1800.
It should be understood by those skilled in the art that although a plurality of apparatuses of the head mounted display apparatus 1000 are illustrated in fig. 1, the head mounted display apparatus 1000 of the embodiments of the present specification may only refer to some of the apparatuses, and may also include other apparatuses, which are not limited herein.
In this embodiment, the memory 1200 of the head mounted display device 1000 is used to store instructions for controlling the processor 1100 to operate to implement or support the implementation of a control method according to any of the embodiments. The skilled person can design the instructions according to the solution disclosed in the present specification. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The head mounted display device shown in fig. 1 is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.
Various embodiments and examples according to the present disclosure are described below with reference to the drawings.
< method example >
Fig. 2 illustrates a control method according to an embodiment of the present disclosure, where the control method may be implemented by a head-mounted display device, or may be implemented by a control device independent of the head-mounted display device and the head-mounted display device, or may be implemented by a cloud server and the head-mounted display device, where the head-mounted display device may be AR glasses.
As shown in fig. 2, the control method of this embodiment may include steps S2100 to S2300 of:
in step S2100, in the running process of the desktop environment, in response to a trigger event that a second Activity is started in the first Activity, it is detected whether to designate identification information of a virtual screen for the second Activity.
In this embodiment, a desktop Launcher of the head-mounted display device is referred to as an AR Launcher, the AR Launcher is automatically started when the head-mounted display device is turned on, a desktop environment of the head-mounted display device starts to run, and after a user wears the head-mounted display device, the head-mounted display device displays the desktop environment within a sight range of the user. It will be appreciated that the desktop environment is typically a 3D desktop environment.
In this embodiment, during the running process of the 3D desktop environment, the 3D desktop environment may create a plurality of virtual screens, and after the virtual screens are created, the head-mounted display device may specify an application running on each virtual screen, for example, may specify an Activity of the application running on each virtual screen, that is, the Activity of the application is run on the virtual screen. Other Activities of the application and activities of other applications that are interactively launched on the virtual screen need to be displayed on the virtual screen.
The first Activity may be an Activity in the first application, and the second Activity may be an Activity in the first application or an Activity in the second application. For example, the first application may be a chat application and the second application may be a browser application.
Example 1, taking an application to which a first Activity belongs as a chat application and an application to which a second Activity belongs as a browser application as an example, the first Activity is normally displayed on the virtual screen 1, where link information is displayed on the first Activity, where a user clicks link information (the link information indicates the second Activity in the browser application), and the head-mounted display device may receive a trigger event for starting the second Activity at the first Activity, and detect whether identification information of the virtual screen is specified for the second Activity in response to the trigger event.
Example 2, taking the example that the first Activity and the second Activity both belong to chat applications, the first Activity is normally displayed on the virtual screen 1, where a toggle control is displayed on the first Activity, where a user clicks the toggle control (the toggle control indicates the second Activity in the chat applications), and the head-mounted display device may receive a trigger event for starting the second Activity at the first Activity, and detect whether identification information of the virtual screen is specified for the second Activity in response to the trigger event.
In a specific embodiment, in response to a triggering event that the second Activity is started in the first Activity in step S2100, detecting whether to specify the identification information of the virtual screen for the second Activity may further include steps S2110 to S2130:
step S2110, responding to a trigger event for starting the second Activity at the first Activity, and acquiring a starting parameter when the second Activity is started.
Wherein the startup parameters include a first parameter. The first parameter is used to specify identification information of the virtual screen running the second Activity, where the identification information may be a virtual screen id, and it may be null, indicating that identification information of the virtual screen is not specified for the second Activity. The starting parameters further include a second parameter and a third parameter, the second parameter is used for recording package name information of an application to which the first Activity invoking the second Activity belongs, and the second parameter may also be referred to as package name information of a source application invoking the second Activity, namely, a callingPackage, which cannot be empty normally. The third parameter is used for recording package name information of the application to which the second Activity belongs, and the package name information cannot be empty normally.
Continuing with example 1 above, the head-mounted display device, in response to a trigger event that a second Activity is started at the first Activity, acquires a first parameter, a second parameter, and a third parameter, where the first parameter may be null or may be identification information of the virtual screen 1, the second parameter records package name information of the chat application, and the third parameter records package name information of the browser application.
Continuing with example 2 above, the head-mounted display device obtains a first parameter, a second parameter and a third parameter in response to a trigger event that a second Activity is initiated at the first Activity, where the first parameter may be null or may be identification information of the virtual screen 1 (e.g., virtual screen 1 id), the second parameter records packet name information of the chat application, and the third parameter records packet name information of the chat application.
Step S2120, determining that the identification information of the virtual screen specified for the second Activity is detected under the condition that the identification information of the virtual screen running the second Activity is specified in the first parameter.
Continuing with examples 1 and 2 above, where the first parameter is identification information of the virtual screen 1 (e.g., id of the virtual screen 1), indicating that the identification information of the virtual screen is specified for the second Activity, it is determined that the identification information of the virtual screen specified for the second Activity is detected.
Step S2130, in a case that the identification information of the virtual screen running the second Activity is not specified in the first parameter, determining that the identification information of the virtual screen not specified for the second Activity is detected.
Continuing with examples 1 and 2 above, in the case where the first parameter is null, indicating that the identification information of the virtual screen is not specified for the second Activity, it is determined that the identification information of the virtual screen specified for the second Activity is not detected.
In the process of executing step S2100 during the running of the desktop environment, in response to a trigger event that the second Activity is started in the first Activity, after detecting whether the identification information of the virtual screen is specified for the second Activity, the following steps are performed:
step S2200, under the condition that the identification information of the virtual screen is not specified for the second Activity, querying a first hash table according to the package name information of the application to which the first Activity belongs, and obtaining the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs as target identification information.
The keyword key of the first hash table is package name information of any application installed in the head-mounted display device, and the hash value corresponding to the keyword is identification information (for example, a virtual screen id) of a virtual screen on which the any application is running. As can be understood, the key and its corresponding hash value in the first hash table are in a one-to-one relationship.
In this embodiment, if the identification information of the virtual screen is not specified for the second Activity, the identification information of the virtual screen corresponding to the application to which the first Activity belongs may be searched in the first hash table as the target identification information according to the package name information (containment package) of the source application calling the second Activity, that is, the package name information of the application to which the first Activity belongs.
Continuing with examples 1 and 2 above, if the identification information designating the virtual screen for the second Activity is not detected, the virtual screen id corresponding to the package name information of the chat application, that is, the id of the virtual screen 1, can be searched from the first hash table.
In step S2200, when the identification information of the virtual screen is not specified for the second Activity, querying a first hash table according to the package name information of the application to which the first Activity belongs, obtaining the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, and entering, after the identification information is used as target identification information:
step S2300, operating the second Activity in the target virtual screen indicated by the target identification information.
In this embodiment, the head-mounted display device may operate the second Activity in the virtual screen according to the virtual screen indicated by the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, so as to implement normal operation of the second Activity in the virtual screen, thereby achieving normal display of Activity interaction in the virtual screen.
According to the embodiment of the disclosure, if a trigger event that the second Activity is started in the first Activity is received, the trigger event can be responded, and under the condition that the identification information of the virtual screen is not specified for the second Activity, the first hash table can be queried according to the package name information of the application to which the first Activity belongs, so that the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs is obtained to obtain the target identification information, and then the second Activity is operated in the target virtual screen indicated by the target identification information. Therefore, even if the identification information of the virtual screen is not specified for the second Activity when the second Activity is started by the first Activity, the identification information of the virtual screen running the first Activity can be inquired from the first hash table to obtain the target identification information, so that the second Activity can be directly run on the target virtual screen indicated by the target identification information, the normal running of the second Activity is realized in the target virtual screen, and the normal display of Activity interaction in the target virtual screen is realized.
In one embodiment, after executing step S2200 above, in a case that identification information of a virtual screen is not specified for the second Activity, querying a first hash table according to package name information of an application to which the first Activity belongs, and obtaining identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, as target identification information, the control method of the embodiment of the present disclosure further includes:
under the condition that the package name information of the application to which the second Activity belongs is different from the package name information of the application to which the first Activity belongs, recording the target identification information and the package name information of the application to which the second Activity belongs into the first hash table and the second hash table; or,
and under the condition that the package name information of the application to which the second Activity belongs is the same as the package name information of the application to which the first Activity belongs, performing no operation on the first hash table and the second hash table.
The keyword key of the second hash table is identification information (for example, a virtual screen id) of any virtual screen created in the head-mounted display device, and the hash value corresponding to the keyword is packet name information of an application supported and run by the any virtual screen. It can be understood that the key and its corresponding hash value in the second hash table are in a one-to-many relationship.
In this embodiment, after detecting that identification information of a virtual screen is not specified for the second Activity and after querying identification information of a virtual screen corresponding to package name information of an application to which the first Activity belongs from the first hash table, it needs to further determine whether the application to which the first Activity belongs and the application to which the second Activity belongs are the same application, if the application is the same application, no processing is performed on the first hash table and the second hash table, and if the application is different, the target identification information and the package name information of the application to which the second Activity belongs are recorded in the first hash table and the second hash table.
In one embodiment, the control method according to the embodiment of the present disclosure further includes: and under the condition that the identification information of the virtual screen is specified for the second Activity, running the second Activity in the virtual screen indicated by the identification information.
Continuing with examples 1 and 2, when the first parameter is id of the virtual screen 1, indicating that the identification information of the virtual screen is specified for the second Activity, and determining that the identification information of the virtual screen specified for the second Activity is detected, the second Activity can be directly run on the virtual screen 1.
According to the embodiment of the application, if the starting parameters of the second Activity include the identification information for specifying the virtual screen for the second Activity, the second Activity can be directly operated on the corresponding virtual screen.
In one embodiment, the control method according to the embodiment of the present disclosure further includes: under the condition that the identification information of the virtual screen is appointed for the second Activity, if the package name information of the application to which the second Activity belongs is not located in a first hash table and a second hash table, recording the identification information of the virtual screen appointed for the second Activity and the package name information of the application to which the second Activity belongs to the first hash table and the second hash table.
The keyword of the second hash table is identification information of any virtual screen created in the head-mounted display device, and the hash value corresponding to the keyword is package name information of an application run by the any virtual screen.
In this embodiment, if it is detected that the identification information of the virtual screen is specified for the second Activity, it is further determined whether the package name information of the application to which the second Activity belongs is recorded in the first hash table and the second hash table, if no record is found, the identification information of the virtual screen specified for the second Activity and the package name information of the application to which the second Activity belongs are recorded in the first hash table and the second hash table, and if a record is found, no processing is performed on the first hash table and the second hash table.
In one embodiment, the control method according to the embodiment of the present disclosure further includes the following steps S3100 to S3400:
step S3100, in response to a trigger event for closing a first virtual screen, acquiring identification information of the first virtual screen.
The first virtual screen may be any one of virtual screens created and running in a 3D desktop environment of the head-mounted display device.
Step S3200, querying the second hash table according to the identification information of the first virtual screen, and obtaining package name information of the application corresponding to the identification information of the first virtual screen.
Step S3300, deleting at least one first hash data in the first hash table and a second hash data in the second hash table; the keyword of the first hash data is the packet name information of the application corresponding to the identification information of the first virtual screen, the hash value corresponding to the keyword is the identification information of the first virtual screen, the keyword of the second hash data is the identification information of the first virtual screen, and the hash value corresponding to the keyword is the packet name information of the application corresponding to the identification information of the first virtual screen.
Step S3400, sequentially killing the applications indicated by the packet name information of the application corresponding to the identification information of the first virtual screen.
According to the embodiment, the normal exit of the application running on the virtual screen can be realized when the virtual screen is closed.
< apparatus embodiment >
Fig. 3 is a schematic diagram of a control device according to an embodiment, and referring to fig. 3, thecontrol device 300 includes adetection module 310, anacquisition module 320, and anoperation module 330.
Adetection module 310, configured to, in a running process of a desktop environment, respond to a trigger event that a second Activity is started in a first Activity, and detect whether to specify identification information of a virtual screen for the second Activity;
an obtainingmodule 320, configured to, when identification information of a virtual screen is not specified for the second Activity, query a first hash table according to the package name information of the application to which the first Activity belongs, and obtain identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs, as target identification information; the key word of the first hash table is package name information of any application installed in the head-mounted display device, and the hash value corresponding to the key word is identification information of a virtual screen running the any application;
an executingmodule 330, configured to execute the second Activity in the target virtual screen indicated by the target identification information.
In one embodiment, theapparatus 300 further comprises a first recording module (not shown).
The first recording module is configured to record the target identification information and the package name information of the application to which the second Activity belongs into the first hash table and the second hash table, when the package name information of the application to which the second Activity belongs is different from the package name information of the application to which the first Activity belongs.
In an embodiment, the runningmodule 330 is further configured to, in a case that identification information of a virtual screen is specified for the second Activity, run the second Activity in the virtual screen indicated by the identification information.
In one embodiment, theapparatus 300 further comprises a second recording module (not shown).
The second recording module is used for recording the identification information of the virtual screen specified for the second Activity and the package name information of the application to which the second Activity belongs into the first hash table and the second hash table if the package name information of the application to which the second Activity belongs is not located in the first hash table and the second hash table under the condition that the identification information of the virtual screen is specified for the second Activity;
the keyword of the second hash table is identification information of any virtual screen created in the head-mounted display device, and the hash value corresponding to the keyword is package name information of an application run by the any virtual screen.
In an embodiment, the detectingmodule 310 is specifically configured to, in response to a trigger event that a second Activity is started at a first Activity, obtain a start parameter when the second Activity is started; the starting parameters comprise a first parameter, and the first parameter is used for specifying identification information of a virtual screen running the second Activity; under the condition that identification information of a virtual screen for operating the second Activity is specified in the first parameter, the identification information of the virtual screen specified for the second Activity is determined to be detected; and under the condition that the identification information of the virtual screen running the second Activity is not specified in the first parameter, determining that the identification information of the virtual screen not specified for the second Activity is detected.
In one embodiment, the startup parameters further include a second parameter and a third parameter, the second parameter is used for recording package name information of an application to which the first Activity invoking the second Activity belongs, and the third parameter is used for recording package name information of an application to which the second Activity belongs.
In one embodiment, theapparatus 300 further comprises a delete module and a shutdown module (neither shown).
The obtainingmodule 310 is further configured to obtain, in response to a trigger event for closing a first virtual screen, identification information of the first virtual screen;
the obtainingmodule 310 is further configured to query the second hash table according to the identification information of the first virtual screen, and obtain packet name information of an application corresponding to the identification information of the first virtual screen;
a deleting module, configured to delete at least one of the first hash data in the first hash table and the second hash data in the second hash table; the keyword of the first hash data is the packet name information of the application corresponding to the identification information of the first virtual screen, the hash value corresponding to the keyword is the identification information of the first virtual screen, the keyword of the second hash data is the identification information of the first virtual screen, and the hash value corresponding to the keyword is the packet name information of the application corresponding to the identification information of the first virtual screen; and the number of the first and second groups,
and the closing module is used for killing the applications indicated by the packet name information of the applications corresponding to the identification information of the first virtual screen in sequence.
According to the embodiment, if a trigger event for starting the second Activity in the first Activity is received, the trigger event can be responded, and under the condition that the identification information of the virtual screen is not specified for the second Activity, the first hash table can be inquired according to the package name information of the application to which the first Activity belongs, so that the identification information of the virtual screen corresponding to the package name information of the application to which the first Activity belongs can be obtained, the target identification information can be obtained, and the second Activity can be operated in the target virtual screen indicated by the target identification information. Therefore, even if the identification information of the virtual screen is not specified for the second Activity when the second Activity is started through the first Activity, the identification information of the virtual screen running the first Activity can be inquired from the first hash table to obtain the target identification information, the second Activity can be directly run on the target virtual screen indicated by the target identification information, the normal running of the second Activity in the target virtual screen is further realized, and the normal display of Activity interaction in the target virtual screen is achieved.
< apparatus embodiment >
Fig. 4 is a hardware configuration diagram of a head-mounted display device according to an embodiment. As shown in FIG. 4, the head mounteddisplay device 400 includes aprocessor 410 and amemory 420.
Thememory 420 may be used to store executable computer instructions.
Theprocessor 410 may be configured to execute the control method according to the method embodiments of the present disclosure, according to the control of the executable computer instructions.
The head-mounteddisplay device 400 may be the head-mounted display device 1000 shown in fig. 1, or may be a device having another hardware structure, which is not limited herein.
In further embodiments, the head mounteddisplay apparatus 400 may include theabove control device 300.
In one embodiment, the above modules of thecontrol apparatus 300 may be implemented by theprocessor 410 executing computer instructions stored in thememory 420.
< computer-readable storage Medium >
The embodiment of the present disclosure also provides a computer readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the control method provided by the embodiment of the present disclosure is executed.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be interpreted as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (10)

CN202211508645.7A2022-11-282022-11-28Control method, control device, head-mounted display equipment and mediumPendingCN115904078A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211508645.7ACN115904078A (en)2022-11-282022-11-28Control method, control device, head-mounted display equipment and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211508645.7ACN115904078A (en)2022-11-282022-11-28Control method, control device, head-mounted display equipment and medium

Publications (1)

Publication NumberPublication Date
CN115904078Atrue CN115904078A (en)2023-04-04

Family

ID=86485213

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211508645.7APendingCN115904078A (en)2022-11-282022-11-28Control method, control device, head-mounted display equipment and medium

Country Status (1)

CountryLink
CN (1)CN115904078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2025025870A1 (en)*2023-08-012025-02-06歌尔股份有限公司Control method and apparatus, head-mounted display device, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2025025870A1 (en)*2023-08-012025-02-06歌尔股份有限公司Control method and apparatus, head-mounted display device, and medium

Similar Documents

PublicationPublication DateTitle
US10554805B2 (en)Information processing method, terminal, and computer-readable storage medium
CN107729475B (en)Webpage element acquisition method, device, terminal and computer-readable storage medium
CN111190718A (en)Method, device and system for realizing task scheduling
CN108153848B (en)Method and device for searching light application data and electronic device
US10897512B2 (en)Generating push notifications
CN111708557B (en)Method, device and storage medium for updating configuration file
WO2018082465A1 (en)Notification bar message displaying method and apparatus, mobile terminal, and server
CN108449255B (en)Comment interaction method and equipment, client device and electronic equipment
WO2018152685A1 (en)Image processing in a vr system
US20170249067A1 (en)User interface feature recommendation
US9544177B2 (en)System and method for contact merge management
US8984487B2 (en)Resource tracker
CN108431792A (en)It detects and the metadata that is forged is unmatched hiding links
CN111427738B (en)Display method, application monitoring module, byte code enhancement module and display system
US20250182375A1 (en)Display control method and apparatus, augmented reality head-mounted device, and medium
US9026612B2 (en)Generating a custom parameter rule based on a comparison of a run-time value to a request URL
US20230315826A1 (en)User verification with state machines
CN112486492A (en)Page generation method and device, storage medium and electronic equipment
WO2017107679A1 (en)Historical information display method and apparatus
CN115904078A (en)Control method, control device, head-mounted display equipment and medium
US10606580B2 (en)Cognitive identification of related code changes
WO2025025870A1 (en)Control method and apparatus, head-mounted display device, and medium
CN111427737B (en)Method and device for modifying exception log and electronic equipment
CN113329087A (en)Method and device for acquiring information
US9600161B2 (en)Generating and displaying a specific area

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp