CN106980500B - Android virtual reality mode and naked eye mode switching method and system - Google Patents
Android virtual reality mode and naked eye mode switching method and system Download PDFInfo
- Publication number
- CN106980500B CN106980500B CN201710085565.8A CN201710085565A CN106980500B CN 106980500 B CN106980500 B CN 106980500B CN 201710085565 A CN201710085565 A CN 201710085565A CN 106980500 B CN106980500 B CN 106980500B
- Authority
- CN
- China
- Prior art keywords
- android
- mode
- gearvr
- virtual reality
- naked eye
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention belongs to the technical field of mobile game development, and particularly relates to a method and a system for switching an android virtual reality mode and a naked eye mode. The method comprises the following steps: when the mode is switched to the naked eye mode, the android interface definition language is communicated with a host program provided with the plug-in; starting an android GEARVR player plug-in from a host program provided with the plug-in; the plug-in comprises a parameter for starting the android GERARVR player to apply the naked eye mode; the android terminal enters a naked eye mode; when the virtual reality mode is switched, the android interface definition language communicates with a conventional program; starting the android GEARVR player application in a conventional program starting manner; the routine program comprises a parameter for starting the android GEARVR player to apply the virtual reality mode; and the android terminal enters a virtual reality mode.
Description
Technical Field
the invention belongs to the technical field of mobile game development, and particularly relates to a method and a system for switching an android virtual reality mode and a naked eye mode.
background
Virtual reality is a computer simulation system that has emerged in recent years that can create and experience a virtual world. Virtual reality is increasingly being developed and applied to mobile games. Many game vendors have begun to attempt to develop games for virtual reality.
the current SDK platforms for playing virtual reality resources by Android mobile phones mainly have two types: a GEARVR platform (a virtual reality model introduced by samsung) and a non-GEARVR platform (e.g., Cardboard); the data-only method is characterized in that the data-only attribute of the data-only attribute is configured in the android Manifest, so that the Samsung system pops up an interface to require that a mobile phone is inserted into GVAERVR glasses, and the interface to be opened can be opened only after the glasses are inserted. Therefore, the whole application cannot have a conventional Android application interface, and only has an interface used in a VR mode. The prior art has not been able to implement an application that has both a conventional interface (viewable with the naked eye) and that can be inserted into GEARVR glasses for use. The conventional method cannot realize the switching between the virtual reality mode and the naked eye mode.
Chinese patent application No. 201610246415.6 discloses a method for switching between VR mode and normal mode based on a mobile phone terminal; based on Cardboard, switching between the VR mode and the normal mode is performed by calling the VR mode switching interface, so that a game developer can dynamically set the display mode of the game, namely the VR mode or the normal mode, when the game runs, and can freely switch the VR mode or the normal mode as desired without restarting game application. The method is based on the Cardboard platform, the switching between the virtual reality mode and the naked eye mode is not limited technically, and the modes can be switched directly. The method does not solve the problem that the switching between the virtual reality mode and the naked eye mode cannot be realized under the GEARVR platform.
disclosure of Invention
the technical problem to be solved by the invention is as follows: the method and the system for switching the android virtual reality mode and the naked eye mode bypass the technical limitation of a GEARVR platform by using a plug-in technology, and solve the problem that the virtual reality mode and the naked eye mode cannot be switched under the GEARVR platform.
in order to solve the technical problems, the invention adopts the technical scheme that: a method for switching between an android virtual reality mode and a naked eye mode comprises the following steps:
when the mode is switched to the naked eye mode, the communication is carried out with a host program provided with the plug-in through an Android Interface Definition Language (AIDL);
Starting an android GEARVR player plug-in from a host program provided with a plug-in system; the plug-in comprises a parameter for starting the android GERARVR player to apply the naked eye mode;
The android terminal enters a naked eye mode;
when the virtual reality mode is switched, the communication is carried out with the conventional program through the android interface definition language;
starting the android GEARVR player application in a conventional program starting manner; the routine program comprises a parameter for starting the android GEARVR player to apply the virtual reality mode;
and the android terminal enters a virtual reality mode.
the invention has the beneficial effects that: according to the method for switching the android virtual reality mode and the naked eye mode, the GEARVR player application is used as a plug-in to be installed on a host program containing a plug-in system, and the android GEARVR player plug-in is started from the host program; therefore, the technical limit that the GEARVR platform can only display the interface from the GEARVR glasses is bypassed, and the display interface is switched to the naked eye display interface; by bypassing the restriction of the three-star system, seamless switching between the virtual reality mode interface and the naked eye mode interface displayed by the GEARVR glasses can be realized under the GEARVR platform, so that the application interaction mode of the android player under the GEARVR platform is more flexible and diversified.
drawings
Fig. 1 is a flowchart of a method for switching between an android virtual reality mode and a naked eye mode according to an embodiment of the present invention;
fig. 2 is a block diagram of a system structure for switching between an android virtual reality mode and a naked eye mode according to an embodiment of the present invention;
description of reference numerals:
1. a first communication module; 2. a first starting module; 3. a first entry module; 4. a second communication module; 5. a second starting module; 6. a second entry module; 7. a detection module; 8. a receiving module;
9. A triggering module; 10. a prompt module; 11. a display module; 12. a first mounting module;
13. and a second mounting module.
Detailed Description
in order to explain the technical content, the objects and the effects of the present invention in detail, the following description will be given with reference to the embodiments.
The most key concept of the invention is as follows: installing the GEARVR player application as a plug-in to a host program containing a plug-in system, and starting the android GEARVR player plug-in from the host program; therefore, the technical limit that the GEARVR platform can only display the interface from the GEARVR glasses is bypassed, and the interface is switched to the naked eye display interface.
referring to fig. 1 and fig. 2, the invention provides a method and a system for switching between an android virtual reality mode and a naked eye mode, which bypass the technical limitation of a GEARVR platform by using a plug-in technology and solve the problem that the virtual reality mode and the naked eye mode cannot be switched under the GEARVR platform.
in order to solve the technical problems, the invention adopts the technical scheme that: a method for switching between an android virtual reality mode and a naked eye mode comprises the following steps:
when the mode is switched to the naked eye mode, the player application communicates with the host program through an android interface definition language;
starting an android GEARVR player plug-in from a host program provided with the plug-in; the plug-in comprises a parameter for starting the android GERARVR player to apply the naked eye mode;
The android terminal enters a naked eye mode;
When the virtual reality mode is switched, the player plug-in communicates with the host program through the android interface definition language;
Starting a GEARVR player application installed on the mobile phone from the host program in a conventional mode; the application includes a parameter to launch the android GEARVR player application virtual reality mode.
and the android terminal enters a virtual reality mode.
According to the method for switching the android virtual reality mode and the naked eye mode, the GEARVR player application is used as a plug-in to be installed on a host program containing a plug-in system, and the android GEARVR player plug-in is started from the host program; therefore, the technical limit that the GEARVR platform can only display the interface from the GEARVR glasses is bypassed, and the display interface is switched to the naked eye display interface; by bypassing the restriction of the three-star system, seamless switching between the virtual reality mode interface and the naked eye mode interface displayed by the GEARVR glasses can be realized under the GEARVR platform, so that the application interaction mode of the android player under the GEARVR platform is more flexible and diversified.
further, the method for switching the android virtual reality mode and the naked eye mode further comprises the following steps:
installing a GEARVR player plug-in to a host program containing a plug-in system;
and installing the android GERARVR player application to the android terminal.
further, the method for switching the android virtual reality mode and the naked eye mode further comprises the following steps:
detecting the android Manifest file configuration for starting the android GEARVR player application; setting a metadata attribute value in the android Manifest file configuration of the android GEARVR player application as vr _ only;
according to the description, the android manifest file configuration of the android GEARVR player application is detected; and ensuring that the metadata attribute value in the android manifest file configuration is set as vr _ only, thereby ensuring that the metadata can be normally played by the virtual reality mode through the GEARVR glasses.
further, the method for switching the android virtual reality mode and the naked eye mode comprises the following steps:
When the virtual reality mode is in, and the naked eye mode needs to be switched,
receiving a trigger signal of a user;
Triggering an android interface definition language to communicate by a triggering signal;
communicating with a host program provided with a plug-in through an android interface definition language;
Starting an android GEARVR player plug-in from a host program provided with a plug-in system; the plug-in comprises a parameter for starting the android GERARVR player to apply the naked eye mode;
the android terminal enters a naked eye mode;
when the virtual reality mode is required to be switched to the virtual reality mode in the naked eye mode, triggering an android interface definition language through a button on a naked eye mode interface;
Receiving a trigger signal of a user;
Triggering an android interface definition language to communicate by a triggering signal;
the android interface definition language is communicated with a conventional program;
Starting an android GEARVR player application in a conventional program manner; the routine program comprises a parameter for starting the android GEARVR player to apply the virtual reality mode;
and the android terminal enters a virtual reality mode.
According to the description, the interface definition language is triggered more conveniently by adopting a button interaction means, so that a naked eye mode or a virtual reality mode is switched.
further, after the android terminal enters the virtual reality mode, the method further comprises the following steps:
prompting access to the GEARVR glasses;
the GEARVR glasses display a virtual reality interface.
A system for switching between an android virtual reality mode and a naked eye mode comprises:
first communication module 1: the method is used for the communication between the android interface definition language and a host program provided with a plug-in;
the first starting module 2: for starting android GEARVR players from a host program with plug-ins installed
application; the first entry module 3: the method comprises the steps that the android terminal enters a naked eye mode;
The second communication module 4: the android system is used for communicating with a conventional program through an android interface definition language;
The second starting module 5: for launching an android GEARVR player application from a regular program;
the second entry module 6: the android terminal enters a virtual reality mode.
Further, the system for switching between the android virtual reality mode and the naked eye mode further comprises:
First installation module 12: installing a GEARVR player plug-in to a host program containing a plug-in system;
second mounting module 13: the android terminal is used for installing the android GEARVR player application to the android terminal.
further, the system for switching between the android virtual reality mode and the naked eye mode further comprises:
The detection module 7: the method and the device are used for detecting the android Manifest file configuration for starting the android GEARVR player application.
further, the system for switching between the android virtual reality mode and the naked eye mode further comprises:
The receiving module 8: a trigger signal for a user;
the triggering module 9: the android interface definition language is triggered by the trigger signal.
further, the system for switching between the android virtual reality mode and the naked eye mode further comprises:
The prompt module 10: the glasses are used for prompting the access of the GEARVR glasses;
the display module 11: and the virtual reality interface is displayed by the GEARVR glasses.
example 1
Referring to fig. 1, a method for switching between an android virtual reality mode and a naked eye mode includes the following steps:
S1: adding < meta-data android: name ═ com.samsung.android.vr.application.mode "android: value ═ vr _ only"/>, to android.
S2: detecting the android Manifest file configuration for starting the android GEARVR player application; setting a metadata attribute value in an android Manifest file configuration of the android GEARVR player application as vr _ only;
S3: installing a GEARVR player application on a host program containing a plug-in system;
s4: installing an Android GEARVR player to be applied to an Android terminal;
S51: when the virtual reality mode is in, and the naked eye mode needs to be switched,
S511: receiving a trigger signal of a user (receiving a button trigger signal through the GEARVR glasses);
s512: triggering the android interface definition language communication by a trigger signal;
s513: the android interface definition language is communicated with a host program provided with a plug-in;
s514: starting an android GEARVR player plug-in from a host program provided with the plug-in; the plug-in comprises a parameter for starting the android GERARVR player to apply the naked eye mode;
s515: the android terminal enters a naked eye mode;
S52: when in the naked eye mode and needs to be switched to the virtual reality mode,
S521: receiving a trigger signal of a user (receiving a button trigger signal on a naked eye mode interface);
s522: triggering the android interface definition language communication by a trigger signal;
S523: the android interface definition language is communicated with a conventional program;
S524: starting a GEARVR player application installed on the mobile phone from the host program in a conventional mode; the application includes a parameter to launch the android GEARVR player application virtual reality mode. The routine program comprises a parameter for starting the android GEARVR player to apply the virtual reality mode;
S525: the android terminal enters a virtual reality mode;
s526: prompting access to the GEARVR glasses;
s527: the GEARVR glasses display a virtual reality interface.
in summary, according to the method for switching between the android virtual reality mode and the naked eye mode, the GEARVR player application is installed as a plug-in to the host program including the plug-in system, and the android GEARVR player plug-in is started from the host program; therefore, the technical limit that the GEARVR platform can only display the interface from the GEARVR glasses is bypassed, and the display interface is switched to the naked eye display interface; by bypassing the restriction of the three-star system, seamless switching between the virtual reality mode interface and the naked eye mode interface displayed by the GEARVR glasses can be realized under the GEARVR platform, so that the application interaction mode of the android player under the GEARVR platform is more flexible and diversified. Detecting the android Manifest file configuration for starting the android GEARVR player application; the metadata attribute value in the Manifest file configuration is ensured to be set to vr _ only, thereby ensuring that the virtual reality mode can normally play through the GEARVR glasses. And a button interaction means is adopted, so that the interface definition language is triggered more conveniently, and the naked eye mode or the virtual reality mode is switched.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent modifications made by the present invention in the specification or directly or indirectly applied to the related technical field are included in the scope of the present invention.
Claims (10)
1. a method for switching between an android virtual reality mode and a naked eye mode is characterized by comprising the following steps:
when the mode is switched to the naked eye mode, the player application communicates with a host program provided with the plug-in through an android interface definition language;
starting an android GEARVR player plug-in from a host program provided with the plug-in; the android GEARVR player plug-in includes a parameter for starting an application naked eye mode of the android GEARVR player;
The android terminal enters a naked eye mode;
when the virtual reality mode is switched, the player plug-in communicates with the host program through the android interface definition language;
starting a GEARVR player application installed on the mobile phone from the host program in a conventional mode; the application comprises a parameter for starting an android GEARVR player application virtual reality mode; and the android terminal enters a virtual reality mode.
2. the method for switching between android virtual reality mode and naked eye mode according to claim 1, further comprising the steps of:
Installing a GEARVR player plug-in to a host program containing a plug-in system;
and installing the android GERARVR player application to the android terminal.
3. the method for switching between android virtual reality mode and naked eye mode according to claim 2, further comprising the steps of:
detecting the android Manifest file configuration for starting the android GEARVR player application; the metadata attribute value in the android Manifest file configuration of the android GEARVR player application is set to vr _ only.
4. The method for switching between android virtual reality mode and naked eye mode according to claim 1, comprising the steps of:
When the virtual reality mode is in, and the naked eye mode needs to be switched,
receiving a trigger signal of a user;
Triggering the android interface definition language communication by a trigger signal;
the player application communicates with a host program provided with the plug-in through an android interface definition language;
Starting an android GEARVR player plug-in from a host program provided with the plug-in; the android GEARVR player plug-in includes a parameter for starting an application naked eye mode of the android GEARVR player;
The android terminal enters a naked eye mode;
When the virtual reality mode is required to be switched to the virtual reality mode in the naked eye mode, triggering an interface definition language through a button on a naked eye mode interface;
Receiving a trigger signal of a user;
Triggering the android interface definition language communication by a trigger signal;
the player plug-in communicates with the host program through an android interface definition language;
Starting a GEARVR player application installed on the mobile phone from the host program in a conventional mode; the application comprises a parameter for starting an android GEARVR player application virtual reality mode; and the android terminal enters a virtual reality mode.
5. the method for switching between the android virtual reality mode and the naked eye mode according to claim 1, wherein after the android terminal enters the virtual reality mode, the method further comprises the following steps:
Prompting access to the GEARVR glasses;
the GEARVR glasses display a virtual reality interface.
6. a system for switching between an android virtual reality mode and a naked eye mode is characterized by comprising:
a first communication module: the player application is used for communicating with a host program provided with the plug-in through an android interface definition language;
a first start module: the android GEARVR player plug-in is started from a host program provided with the plug-in;
A first entry module: the method comprises the steps that the android terminal enters a naked eye mode;
a second communication module: the player plug-in is used for communicating with the host program through the interface definition language;
A second starting module: the system is used for starting a GEARVR player application installed on the mobile phone from a host program in a conventional mode; the application comprises a parameter for starting an android GEARVR player application virtual reality mode;
a second entry module: the android terminal enters a virtual reality mode.
7. the system of claim 6, further comprising:
a first mounting module: the system comprises a host program used for installing a GEARVR player plug-in to a plug-in system;
a second mounting module: the android terminal is used for installing the android GEARVR player application to the android terminal.
8. The system of claim 6, further comprising:
A detection module: the method and the device are used for detecting the android Manifest file configuration for starting the android GEARVR player application.
9. the system of claim 6, further comprising:
a receiving module: the trigger signal is used for receiving a user;
a triggering module: the method is used for sending a trigger signal to trigger the android interface definition language communication.
10. the system of claim 6, further comprising:
a prompt module: the glasses are used for prompting the access of the GEARVR glasses;
A display module: and the virtual reality interface is displayed by the GEARVR glasses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710085565.8A CN106980500B (en) | 2017-02-17 | 2017-02-17 | Android virtual reality mode and naked eye mode switching method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710085565.8A CN106980500B (en) | 2017-02-17 | 2017-02-17 | Android virtual reality mode and naked eye mode switching method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106980500A CN106980500A (en) | 2017-07-25 |
CN106980500B true CN106980500B (en) | 2019-12-10 |
Family
ID=59338077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710085565.8A Active CN106980500B (en) | 2017-02-17 | 2017-02-17 | Android virtual reality mode and naked eye mode switching method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106980500B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716711A (en) * | 2013-12-23 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | Game mode and 3D mode switching device and method, and smart TV |
CN105389001A (en) * | 2014-09-02 | 2016-03-09 | 三星电子株式会社 | Method for providing visual reality service and apparatus for the same |
CN205336410U (en) * | 2016-01-20 | 2016-06-22 | 京东方科技集团股份有限公司 | Show auto -change over device and dress display device |
CN105900051A (en) * | 2014-01-06 | 2016-08-24 | 三星电子株式会社 | Electronic device and method for displaying event in virtual reality mode |
CN105930120A (en) * | 2016-04-20 | 2016-09-07 | 厦门市妮东科技有限公司 | Method for switching between VR (Virtual Reality) mode and common mode on the basis of mobile phone side |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3944188B2 (en) * | 2004-05-21 | 2007-07-11 | 株式会社東芝 | Stereo image display method, stereo image imaging method, and stereo image display apparatus |
KR101640767B1 (en) * | 2010-02-09 | 2016-07-29 | 삼성전자주식회사 | Real-time virtual reality input/output system and method based on network for heterogeneous environment |
CN202995143U (en) * | 2011-12-29 | 2013-06-12 | 三星电子株式会社 | Glasses device and display device |
US20130326253A1 (en) * | 2012-06-01 | 2013-12-05 | Wilfred Lam | Toggling sleep-mode of a mobile device without mechanical or electromagnetic toggling buttons |
KR20160026323A (en) * | 2014-08-29 | 2016-03-09 | 삼성전자주식회사 | method and apparatus for controlling the notification information based on movement |
TWI567670B (en) * | 2015-02-26 | 2017-01-21 | 宅妝股份有限公司 | Method and system for management of switching virtual-reality mode and augmented-reality mode |
CN106055319A (en) * | 2016-05-25 | 2016-10-26 | 福建造梦信息技术有限公司 | Construction method of VR compatible operation sandboxie |
CN105959757B (en) * | 2016-05-27 | 2018-11-23 | 北京小鸟看看科技有限公司 | A kind of control method of virtual reality system and its working condition |
-
2017
- 2017-02-17 CN CN201710085565.8A patent/CN106980500B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103716711A (en) * | 2013-12-23 | 2014-04-09 | 乐视致新电子科技(天津)有限公司 | Game mode and 3D mode switching device and method, and smart TV |
CN105900051A (en) * | 2014-01-06 | 2016-08-24 | 三星电子株式会社 | Electronic device and method for displaying event in virtual reality mode |
CN105389001A (en) * | 2014-09-02 | 2016-03-09 | 三星电子株式会社 | Method for providing visual reality service and apparatus for the same |
CN205336410U (en) * | 2016-01-20 | 2016-06-22 | 京东方科技集团股份有限公司 | Show auto -change over device and dress display device |
CN105930120A (en) * | 2016-04-20 | 2016-09-07 | 厦门市妮东科技有限公司 | Method for switching between VR (Virtual Reality) mode and common mode on the basis of mobile phone side |
Also Published As
Publication number | Publication date |
---|---|
CN106980500A (en) | 2017-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111013142B (en) | Interactive effect display method and device, computer equipment and storage medium | |
AU2011203122B2 (en) | Interactive game pieces using touch screen devices for toy play | |
CN106990831A (en) | A kind of method and terminal for adjusting screen intensity | |
US10163463B2 (en) | Virtual reality system and method of controlling working state thereof | |
US11270087B2 (en) | Object scanning method based on mobile terminal and mobile terminal | |
EP3584710B1 (en) | Method and apparatus for controlling display of mobile terminal, and storage medium | |
EP2857963B1 (en) | Information processing device and information processing system | |
US20190213023A1 (en) | Method for inserting virtual resource object in application, and terminal | |
CN113018864B (en) | Virtual object prompting method and device, storage medium and computer equipment | |
CN108875394A (en) | Electronic device and application control method | |
CN112672794A (en) | Game page display method and related product | |
CN111062027A (en) | Method and device for preventing bad HID equipment from invading, electronic equipment and storage medium | |
WO2019076255A1 (en) | Game application control method, and device | |
WO2017052309A1 (en) | In-game messenger service providing method and device | |
CN109446834A (en) | A kind of right management method and mobile terminal of application program | |
CN112007362A (en) | Display control method, device, storage medium and equipment in virtual world | |
WO2022121730A1 (en) | Electronic device, electronic device control method, and readable storage medium | |
CN106980500B (en) | Android virtual reality mode and naked eye mode switching method and system | |
CN103200320B (en) | Unlocking method and unlocking device through whack-a-mole | |
CN108073341A (en) | A kind of display system for smart mobile phone | |
CN108319432A (en) | A kind of application operation method and terminal | |
KR20180030497A (en) | An intermediate module for controlling communication between the data processing device and the peripheral device | |
CN106598433A (en) | Insertion method of virtual resource object in application, and terminals | |
CN111766992B (en) | Information display method and device, electronic equipment and storage medium | |
US9242170B2 (en) | Interactive game method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |