WO2017088481A1 - 一种应用的启动方法和装置 - Google Patents

一种应用的启动方法和装置 Download PDF

Info

Publication number
WO2017088481A1
WO2017088481A1 PCT/CN2016/088528 CN2016088528W WO2017088481A1 WO 2017088481 A1 WO2017088481 A1 WO 2017088481A1 CN 2016088528 W CN2016088528 W CN 2016088528W WO 2017088481 A1 WO2017088481 A1 WO 2017088481A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
mobile device
angle
startup
distance
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.)
Ceased
Application number
PCT/CN2016/088528
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin 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 Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017088481A1 publication Critical patent/WO2017088481A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present application relates to the field of mobile Internet technologies, and in particular, to an application startup method and apparatus.
  • a virtual reality application on a mobile device is a simulation system that can create and experience a virtual world. It generates a simulation environment, a multi-source information fusion interactive 3D dynamic view and system simulation of entity behavior, immersing users in the environment.
  • the helmet-type display is the earliest virtual reality display.
  • the mobile device is inserted into the helmet, and the helmet display is used to close the person's visual and auditory sense to the outside world, and guide the user to create a feeling in the virtual environment.
  • the virtual application icon on the mobile device needs to be activated by clicking the virtual application icon on the touch screen, which is cumbersome and relatively expensive.
  • the technical problem to be solved by the embodiments of the present invention is to provide an application startup method, which solves the problem that the operation is relatively cumbersome and power-consuming.
  • the embodiment of the invention further provides an application starting device for ensuring implementation and application of the above method.
  • the present invention discloses an application startup method, the method comprising: acquiring distance information of the mobile device and the display device by using a proximity sensor built in the mobile device; and when the distance information meets the first startup At the threshold, the startup direction sensor acquires direction information of the mobile device; when the direction information satisfies the second startup threshold, the target application is started.
  • the embodiment of the invention further discloses an application activation device, the device comprising: a distance acquisition module, configured to acquire distance information between the mobile device and the display device by using a proximity sensor built in the mobile device; and a direction acquisition module,
  • the startup direction sensor acquires direction information of the mobile device when the distance information meets the first startup threshold, and the startup module is configured to start the target application when the direction information meets the second startup threshold.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform a launch method of the application.
  • a computer readable medium wherein the computer program is stored.
  • the embodiment of the present invention includes the following advantages: the embodiment of the present invention acquires distance information between the mobile device and the display device by using a proximity sensor built in the mobile device; when the distance information meets the first startup threshold, The startup direction sensor acquires direction information of the mobile device; when the direction information meets the second startup threshold, the target application is started. This simplifies the steps of starting a virtual reality application while saving power.
  • FIG. 1 is a flow chart showing the steps of an embodiment of an application startup method of the present invention
  • FIG. 2 is a flow chart showing the steps of an embodiment of a startup method of another application of the present invention.
  • FIG. 3 is a schematic diagram of a mobile device being inserted into a virtual reality helmet according to Embodiment 2 of the present invention.
  • FIG. 4 is a structural block diagram of an embodiment of an activation device of an application of the present invention.
  • Figure 5 is a block diagram showing the structure of an embodiment of a starting device of another application of the present invention.
  • Figure 6 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 7 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the application provides a method and an apparatus for starting an application, and acquiring distance information between the mobile device and the display device by using a proximity sensor built in the mobile device;
  • the startup direction sensor acquires direction information of the mobile device;
  • the target application is started. This simplifies the steps of starting the target application while saving power.
  • FIG. 1 a flow chart of steps of an embodiment of an application startup method of the present invention is shown, which may specifically include the following steps:
  • Step S102 Acquire distance information of the mobile device and the display device by using a proximity sensor built in the mobile device.
  • the mobile device includes a mobile phone, a tablet computer, and the like
  • the display device includes a helmet-type display.
  • Various applications Applications, APPs
  • APPs are installed on mobile devices, and some of them can interact with other devices to provide users with more diverse experiences. For example, by inserting a mobile device into a display device such as a head-mounted display, a three-dimensional dynamic effect exhibited by the virtual reality application can be experienced from the display device.
  • a display device such as a head-mounted display
  • a three-dimensional dynamic effect exhibited by the virtual reality application can be experienced from the display device.
  • the embodiment of the invention can measure the environment and its own information through various sensors built in the mobile device, thereby automatically determining whether it is necessary to start the target application by itself.
  • the information measured by the sensor includes a distance from the display device and direction information of the mobile device itself.
  • the proximity sensor is used to measure the distance information
  • the proximity sensor may include various sensors for the purpose of detecting without contacting the detection object, that is, the proximity sensor may replace the contact detection method such as the limit switch, and the method of not touching the detection object may be performed. measuring.
  • the proximity sensor can detect information such as presence information and movement information of the object, including determining distance information.
  • a proximity sensor built in the mobile device can be activated, and the distance information of the mobile device and the display device is measured by the proximity sensor, thereby acquiring the distance information, and the positional relationship between the mobile device and the display device can be determined by using the distance information. For example, it is determined whether the mobile device is inserted into the display device.
  • Step S104 When the distance information meets the first activation threshold, the startup direction sensor acquires direction information of the mobile device.
  • the first activation threshold refers to a threshold that satisfies the target location relationship. For example, if the location relationship is direct contact, the corresponding first startup threshold is 0, or an interval value close to 0. If the positional relationship is close, the corresponding first activation threshold may be the threshold of the proximity determination, such as within 10 cm.
  • the distance information meets the first activation threshold, it may be determined that the location relationship between the mobile device and the display device meets the requirement. If the mobile device has been inserted into the display device, the direction sensor may be activated.
  • the direction sensor refers to a component installed on the mobile device to detect the direction of the mobile device itself, such as vertical vertical vertical and vertical, vertical horizontal left and right horizontal, and corresponding angle information. .
  • the direction information of the mobile device is obtained by a direction sensor. Determine whether the application needs to be started based on the direction information.
  • Step S106 When the direction information meets the second startup threshold, the target application is started.
  • the second activation threshold refers to a threshold that satisfies the target placement state.
  • the placement state of the mobile device itself is the gravity direction, that is, the vertical vertical direction, or an interval value close to the vertical direction. If the placement state is close to the direction of gravity, the corresponding second activation threshold may be the threshold of the proximity determination, such as within 20 degrees of the deviation from the positive and vertical.
  • the distance information of the mobile device and the display device is obtained by using a proximity sensor built in the mobile device; when the distance information meets the first activation threshold, the startup direction sensor acquires direction information of the mobile device; When the direction information satisfies the second startup threshold, the target application is started. This simplifies the steps of starting the target application while saving power.
  • the target application includes an application based on the virtual reality technology, and the embodiment of the present invention takes the startup of the virtual reality application as an example.
  • the virtual reality application to interact with a display device such as a head-mounted display, the three-dimensional dynamic effect exhibited by the virtual reality application can be experienced from the display device.
  • FIG. 2 a flow chart of steps of an embodiment of a startup method of another application of the present invention is shown, which may specifically include the following steps:
  • Step S202 Monitor activity status information of the mobile device.
  • Step S204 When the mobile device is determined to be in a non-sleep state according to the activity state information, the proximity sensor is activated.
  • the proximity sensor In order to prevent the mobile device from being in the non-use state, that is, the sleep state, the proximity sensor mistakes some light occlusion to be inserted into the display device, causing an erroneous operation, resulting in loss of power. Therefore, in the embodiment of the present invention, the proximity sensor can be activated in the non-sleep state, that is, the proximity sensor is not activated when in the sleep state.
  • the sleep state here may refer to the state in which the mobile device is locked. The activity status information of the mobile device is monitored, and when it is determined that the mobile device is in a non-sleep state according to the activity status information, that is, in an unlocked state, if the unlocking is successful, the proximity sensor is activated.
  • Step S206 The proximity sensor detects distance information between the mobile device and the display device, and invokes the first interface to acquire the distance information.
  • the proximity sensor is activated, for example, by the function SENSOR_TYPE_PROXIMITY, and the distance information between the mobile device and the display device is detected.
  • the general sensor has a corresponding Application Programming Interface (API), and the sensor can be accessed through a corresponding API.
  • the distance information is acquired by accessing the proximity sensor with the first interface corresponding to the proximity sensor of the embodiment of the present invention. Can determine whether the mobile device is inserted into the display according to the distance information device. As shown in Figure 3, the mobile device is about to be inserted into the virtual reality helmet.
  • the first interface can be called by a callback function such as onSensorChanged(), and the proximity sensor is accessed to obtain the current distance information.
  • the callback function means that if the pointer (address) of the function is passed as a parameter to another function, when the pointer is used to call the function it points to, we say that this is a callback function.
  • a callback function is called by another party when a particular event or condition occurs to respond to the event or condition.
  • the callback function here includes a standard callback for the current state of the access direction sensor provided by system software in the mobile device, such as the Android system.
  • Step S208 Determine whether the distance information meets the first startup threshold.
  • step S210 If the distance information satisfies the first activation threshold, the process proceeds to step S210; if the first activation threshold is not satisfied, the process returns to step S206.
  • Step S210 The startup direction sensor detects direction information of the mobile device.
  • the startup direction sensor detects direction information of the mobile device when the distance information satisfies a first activation threshold.
  • the first activation threshold includes zero, or an interval value close to zero.
  • the direction sensor is activated, for example, by the function SENSOR_TYPE_ORIENTATION.
  • the direction information of the mobile device is detected by a direction sensor.
  • Step S212 Call the second interface to obtain direction information of the mobile device.
  • the second interface of the embodiment of the present invention refers to an API corresponding to the direction sensor.
  • the second interface may be invoked through a callback function such as onSensorChanged() to access the direction sensor to obtain current direction information.
  • Step S214 The direction information includes angle information and time information at the angle, and acquires angle information in the direction information.
  • the direction information includes angle information and time information at the angle, such as being placed approximately parallel to the direction of gravity, the direction information including an angle of deviation from the direction of gravity, and the time at which the angle state is maintained. Obtaining angle information in the direction information, and determining whether the angle information is a desired angle.
  • the desired angle of the embodiment of the present invention includes a vertical placement direction or a near vertical placement direction, such as being placed approximately parallel to the gravity direction, and the gravity deviation is within 20 degrees.
  • Step S216 Determine whether the angle information is a desired angle.
  • step S218 is performed; if it is not the desired angle, step S210 is returned.
  • the angle information is a desired angle
  • step S220 is performed; if the desired time is not exceeded, step S214 is returned.
  • Step S220 If the time information exceeds a desired time, determine that the direction information meets a second startup threshold.
  • Step S222 When the direction information meets the second startup threshold, the target application is started.
  • the angle information is a desired angle, that is, a vertical placement direction or a vertical placement direction
  • the desired time includes 1 second. If the time information exceeds the expected time, it is determined that the direction information satisfies a second activation threshold. That is, when the mobile device is inserted into the display device and is in the correct placement direction, and the time reaches the desired value, it can be determined that the virtual reality application state needs to be entered at this time, that is, the user needs to experience the virtual reality application through the display device, and then the device is started.
  • Virtual reality application is a desired angle, that is, a vertical placement direction or a vertical placement direction
  • whether the angle information is a desired angle is obtained by acquiring the angle information in the direction information; and when the angle information is a desired angle, detecting whether the time information at the angle exceeds a desired time; The time information exceeds the expected time, and the direction information is determined to satisfy the second activation threshold.
  • the target application is started. Make the startup of the target application more accurate and reduce unnecessary power consumption.
  • FIG. 4 a structural block diagram of an embodiment of an activation device for an application of the present invention is shown.
  • the following modules may be included: a distance acquisition module 402, a direction acquisition module 404, and a startup module 406.
  • the distance obtaining module 402 is configured to acquire distance information of the mobile device and the display device by using a proximity sensor built in the mobile device.
  • the direction obtaining module 404 is configured to: when the distance information meets the first startup threshold, the startup direction sensor acquires direction information of the mobile device.
  • the startup module 406 is configured to start the target application when the direction information meets the second startup threshold.
  • the distance information of the mobile device and the display device is obtained by using a proximity sensor built in the mobile device; when the distance information meets the first activation threshold, the startup direction sensor acquires direction information of the mobile device; When the direction information satisfies the second startup threshold, the target application is started. This simplifies the steps of starting the target application while saving power.
  • FIG. 5 a structural block diagram of an embodiment of a booting device for another application of the present invention is shown, which may specifically include the following modules: a state determining module 502, a distance obtaining module 402, a direction obtaining module 404, a determining module 506, and activating Module 406.
  • the status determining module 502 is configured to monitor activity status information of the mobile device, and activate the proximity sensor when determining that the mobile device is in a non-sleep state according to the activity status information.
  • the distance obtaining module 402 is configured to detect, by the proximity sensor, distance information of the mobile device and the display device, and invoke the first interface to acquire the distance information.
  • the direction obtaining module 404 is configured to start a direction sensor to detect direction information of the mobile device, and invoke a second interface to acquire direction information of the mobile device.
  • the determining module 506 is configured to obtain angle information in the direction information, determine whether the angle information is a desired angle, and when the angle information is a desired angle, detect whether time information at the angle exceeds a desired time; The time information exceeds the expected time, and the direction information is determined to satisfy the second activation threshold.
  • the startup module 406 is configured to start the target application when the direction information meets the second startup threshold.
  • the target application is started. Make the startup of the target application more accurate and reduce unnecessary power consumption.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the boot method and apparatus of an application in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 6 illustrates a computing device that can implement a boot method for an application in accordance with the present invention.
  • the computing device conventionally includes a processor 610 and a computer program product or computer readable medium in the form of a memory 620.
  • the memory 620 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 620 has a memory space 630 for program code 631 for performing any of the method steps described above.
  • storage space 630 for program code may include various program code 631 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 620 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 631', ie, code readable by a processor, such as 610, that when executed by a computing device causes the computing device to perform each of the methods described above step.
  • embodiments of the embodiments of the invention may be provided as a method, apparatus, or computer program product.
  • embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the invention may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.

Landscapes

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

Abstract

一种应用的启动方法和装置,使得应用的启动更简单,同时比较省电。所述的方法包括:通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。从而简化了启动虚拟现实应用的操作步骤,同时比较省电。

Description

一种应用的启动方法和装置
本申请要求在2015年11月26日提交中国专利局、申请号为201510846759.6、发明名称为“一种应用的启动方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动互联网技术领域,尤其是涉及一种应用的启动方法和装置。
背景技术
移动设备上的虚拟现实应用是一种可以创建和体验虚拟世界的仿真系统。它生成一种模拟环境,是一种多源信息融合的交互式的三维动态视景和实体行为的系统仿真,使用户沉浸到该环境中。
头盔式显示器是最早的虚拟现实显示器,将移动设备插入头盔中,利用头盔显示器将人的对外界的视觉、听觉封闭,引导用户产生一种身在虚拟环境中的感觉。但在发明人在实现本发明的过程中发现:将移动设备插入头盔之前,需要通过触摸屏点击虚拟应用图标,来激活移动设备上的虚拟现实应用,操作比较繁琐,并且比较费电。
发明内容
本发明实施例所要解决的技术问题是提供一种应用的启动方法,解决操作比较繁琐、费电的问题。
相应的,本发明实施例还提供了一种应用的启动装置,用以保证上述方法的实现及应用。
为了解决上述问题,本发明公开了一种应用的启动方法,所述的方法包括:通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。
本发明实施例还公开了一种应用的启动装置,所述的装置包括:距离获取模块,用于通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;方向获取模块,用于当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;启动模块,用于当所述方向信息满足第二启动阈值时,启动目标应用。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行所述的应用的启动方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了所述的计算机程序。
与现有技术相比,本发明实施例包括以下优点:本发明实施例通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。从而简化了启动虚拟现实应用的操作步骤,同时比较省电。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种应用的启动方法实施例的步骤流程图;
图2是本发明的另一种应用的启动方法实施例的步骤流程图;
图3是本发明实施例二中移动设备正要插入虚拟现实头盔中的示意图;
图4是本发明的一种应用的启动装置实施例的结构框图;
图5是本发明的另一种应用的启动装置实施例的结构框图;
图6示意性地示出了用于执行根据本发明的方法的计算设备的框图;
图7示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例的核心构思之一在于,本申请提供了一种应用的启动方法和装置,通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。从而简化了启动目标应用的操作步骤,同时比较省电。
实施例一
详细介绍本发明实施例的应用的启动方法。
参照图1,示出了本发明的一种应用的启动方法实施例的步骤流程图,具体可以包括如下步骤:
步骤S102、通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息。
本实施例中,移动设备包括手机、平板电脑等,显示设备包括头盔式显示器。移动设备上安装有各种应用程序(Application,APP),其中一些应用可以与其他设备进行互动,给用户提供更多样的体验。例如将移动设备插入头盔式显示器等显示设备中,可以从显示设备中体验虚拟现实应用展现的三维动态效果。但是在将移动设备插入显示设备之前,通常需要通过触摸屏进行一些操作如点击应用图标,来激活移动设备上的应用,操作比较繁琐。
本发明实施例可以通过移动设备内置的各种传感器测量环境和自身的信息,从而自动判断是否需要自行启动目标应用。其中,传感器测量的信息包括与显示设备的距离以及移动设备自身的方向信息等。
其中,采用接近传感器测量距离信息,采用接近传感器可以包括以无需接触检测对象进行检测为目的的各种传感器,即接近传感器可以代替限位开关等接触式检测方式,通过不接触检测对象的方式进行测量。接近传感器可以检测对象的存在信息和移动信息等信息,包括确定距离信息。
本实施例中,可以启动移动设备内置的接近传感器,通过该接近传感器测量所述移动设备与显示设备的距离信息,从而获取该距离信息,通过距离信息可以确定移动设备和显示设备的位置关系,例如判断移动设备是否插入显示设备中。
步骤S104、当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息。
为了确定移动设备和显示设备的位置关系,可以检测距离信息是否满足第一启动阈值。其中,第一启动阈值指的是满足目标位置关系的阈值,例如位置关系为直接接触,则相应第一启动阈值为0,或者接近0的一个区间值。又如位置关系为接近,则相应第一启动阈值可以是该接近的判断阈值,如10厘米以内。当所述距离信息满足第一启动阈值时,可以判断移动设备和显示设备的位置关系满足要求,如移动设备已经插入显示设备中,可以启动方向传感器。方向传感器指的是安装在移动设备上用以检测移动设备本身处于何种方向状态的部件,如垂直方向的正竖、倒竖,水平方向的左横、右横以及对应的角度信息等方向信息。通过方向传感器获取所述移动设备的方向信息。依据方向信息判断是否需要启动应用。
步骤S106、当所述方向信息满足第二启动阈值时,启动目标应用。
为了确定移动设备自身的摆放状态,可以检测方向信息是否满足第二启动阈值。其中,第二启动阈值指的是满足目标摆放状态的阈值,例如移动设备自身的摆放状态为重力方向,即垂直方向的正竖,或者接近正竖的一个区间值。又如摆放状态为接近重力方向,则相应第二启动阈值可以是该接近的判断阈值,如与正竖偏差在20度内。当所述方向信息满足第二启动阈值时,可以判断移动设备自身的摆放状态满足要求,如此时移动设备自身的摆放状态为重力方向放置。说明此时可以判断为需要使用目标应用,故启动目标应 用。
综上所述,通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。从而简化了启动目标应用的操作步骤,同时比较省电。
实施例二
详细介绍本发明实施例的另一种目标应用的启动方法。目标应用包括:基于虚拟现实技术的应用,本发明实施例以虚拟现实应用的启动为例。对于虚拟现实应用在与头盔式显示器等显示设备互动的过程中,可以从显示设备中体验虚拟现实应用展现的三维动态效果。
参照图2,示出了本发明的另一种应用的启动方法实施例的步骤流程图,具体可以包括如下步骤:
步骤S202、监测所述移动设备的活动状态信息。
步骤S204、当依据所述活动状态信息确定所述移动设备处于非休眠状态时,启动接近传感器。
为了防止移动设备在非使用状态即休眠状态时,接近传感器误把一些光线遮挡判断为插入显示设备中,造成误操作,导致电量的损失。所以本发明实施例可以在非休眠状态时启动接近传感器,即休眠状态时不启动接近传感器。这里的休眠状态可以指移动设备锁定的状态。监测所述移动设备的活动状态信息,当依据所述活动状态信息确定所述移动设备处于非休眠状态时,即处于非锁定状态,如成功解锁时,启动接近传感器。
步骤S206、所述接近传感器检测所述移动设备与显示设备的距离信息,调用第一接口获取所述距离信息。
启动接近传感器,例如通过函数SENSOR_TYPE_PROXIMITY启动,检测所述移动设备与显示设备的距离信息,一般传感器有对应的应用程序编程接口(Application Programming Interface,API),可通过对应的API来访问该传感器。通过与本发明实施例的接近传感器对应的第一接口访问接近传感器,获取所述距离信息。可以根据距离信息来判断移动设备是否插入显示 设备。如图3所示,移动设备正要插入虚拟现实头盔中。
在本发明实施例中可以通过回调函数如onSensorChanged()调用第一接口,访问接近传感器,获取当前的距离信息。回调函数是指如果把函数的指针(地址)作为参数传递给另一个函数,当这个指针被用来调用其所指向的函数时,我们就说这是回调函数。回调函数是在特定的事件或条件发生时由另外的一方调用的,用于对该事件或条件进行响应。这里的回调函数包括由移动设备中的系统软件,如Android系统,提供的访问方向传感器当前状态的标准回调。
步骤S208、判断距离信息是否满足第一启动阈值。
如果距离信息满足第一启动阈值,进入步骤S210;如果不满足第一启动阈值,返回步骤S206。
步骤S210、启动方向传感器检测所述移动设备的方向信息。
当所述距离信息满足第一启动阈值时,启动方向传感器检测所述移动设备的方向信息。第一启动阈值包括0,或者接近0的一个区间值。当所述距离信息满足第一启动阈值时,即判断移动设备已经插入显示设备中,则启动方向传感器,例如通过函数SENSOR_TYPE_ORIENTATION启动。通过方向传感器检测所述移动设备的方向信息。
步骤S212、调用第二接口获取所述移动设备的方向信息。
本发明实施例的第二接口指的是与方向传感器对应的API。在本发明实施例中当所述距离信息满足第一启动阈值时,可以通过回调函数如onSensorChanged()调用第二接口,访问方向传感器,获取当前的方向信息。
步骤S214、所述方向信息包括角度信息和处于该角度的时间信息,获取所述方向信息中的角度信息。
所述方向信息包括角度信息和处于该角度的时间信息,如接近平行于重力方向放置的,方向信息中包括其与重力方向偏差的角度,以及维持该角度状态的时间。获取所述方向信息中的角度信息,确定所述角度信息是否为期望角度。本发明实施例的期望角度包括垂直放置方向或者接近垂直放置方向,如接近平行于重力方向放置,重力偏差在20度内。
步骤S216、判断所述角度信息是否为期望角度。
若所述角度信息是期望角度,进行步骤S218;若不是期望角度,返回步骤S210。
步骤S218、检测处于该角度的时间信息是否超过期望时间。
当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间。
如果超过期望时间,进行步骤S220;若没有超过期望时间,返回步骤S214。
步骤S220、若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。
步骤S222、当所述方向信息满足第二启动阈值时,启动目标应用。
当所述角度信息为期望角度时,即垂直放置方向或接近垂直放置方向,检测处于该角度的时间信息是否超过期望时间,期望时间包括1秒。若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。即此时移动设备已经插入显示设备中,并且处于正确的放置方向,同时时间达到期望值,则此时可以判断为需要进入虚拟现实应用状态,即用户需要通过显示设备来体验虚拟现实应用,则启动虚拟现实应用。
综上所述,通过获取所述方向信息中的角度信息,确定所述角度信息是否为期望角度;当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间;若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。当所述方向信息满足第二启动阈值时,启动目标应用。使得目标应用的启动更准确,减少不必要的电量损耗。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
参照图4,示出了本发明一种应用的启动装置实施例的结构框图,具体 可以包括如下模块:距离获取模块402,方向获取模块404,以及启动模块406。
距离获取模块402,用于通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息。
方向获取模块404,用于当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息。
启动模块406,用于当所述方向信息满足第二启动阈值时,启动目标应用。
综上所述,通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;当所述方向信息满足第二启动阈值时,启动目标应用。从而简化了启动目标应用的操作步骤,同时比较省电。
参照图5,示出了本发明的另一种应用的启动装置实施例的结构框图,具体可以包括如下模块:状态确定模块502,距离获取模块402,方向获取模块404,判断模块506,以及启动模块406。
状态确定模块502,用于监测所述移动设备的活动状态信息;当依据所述活动状态信息确定所述移动设备处于非休眠状态时,启动接近传感器。
距离获取模块402,用于所述接近传感器检测所述移动设备与显示设备的距离信息,调用第一接口获取所述距离信息。
方向获取模块404,用于启动方向传感器检测所述移动设备的方向信息;调用第二接口获取所述移动设备的方向信息。
判断模块506,用于获取所述方向信息中的角度信息,确定所述角度信息是否为期望角度;当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间;若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。
启动模块406,用于当所述方向信息满足第二启动阈值时,启动目标应用。
综上所述,通过获取所述方向信息中的角度信息,确定所述角度信息是 否为期望角度;当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间;若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。当所述方向信息满足第二启动阈值时,启动目标应用。使得目标应用的启动更准确,减少不必要的电量损耗。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的应用的启动方法和装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图6示出了可以实现根据本发明的应用的启动方法的计算设备。该计算设备传统上包括处理器610和以存储器620形式的计算机程序产品或者计算机可读介质。存储器620可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器620具有用于执行上述方法中的任何方法步骤的程序代码631的存储空间630。例如,用于程序代码的存储空间630可以包括分别用于实现上面的方法中的各种步骤的各个程序代码631。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图7所述的便携式或者固定存储单元。 该存储单元可以具有与图6的计算设备中的存储器620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码631’,即可以由例如诸如610之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本发明所提供的一种应用的启动方法和一种应用的启动装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (13)

  1. 一种应用的启动方法,其特征在于,所述的方法包括:
    通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;
    当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;
    当所述方向信息满足第二启动阈值时,启动目标应用。
  2. 根据权利要求1所述的方法,其特征在于,通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息,包括:
    所述接近传感器检测所述移动设备与显示设备的距离信息,调用第一接口获取所述距离信息。
  3. 根据权利要求1所述的方法,其特征在于,所述启动方向传感器获取移动设备的方向信息,包括:
    启动方向传感器检测所述移动设备的方向信息;
    调用第二接口获取所述移动设备的方向信息。
  4. 根据权利要求3所述的方法,其特征在于,所述方向信息包括角度信息和处于该角度的时间信息,获取所述移动设备的方向信息之后,还包括:
    获取所述方向信息中的角度信息,确定所述角度信息是否为期望角度;
    当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间;
    若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。
  5. 根据权利要求1所述的方法,其特征在于,所述获取所述移动设备与显示设备的距离信息前,还包括:
    监测所述移动设备的活动状态信息;
    当依据所述活动状态信息确定所述移动设备处于非休眠状态时,启动接近传感器。
  6. 根据权利要求1所述的方法,其特征在于,所述目标应用包括:基于虚拟现实技术的应用。
  7. 一种应用的启动装置,其特征在于,所述的装置包括:
    距离获取模块,用于通过移动设备内置的接近传感器获取所述移动设备与显示设备的距离信息;
    方向获取模块,用于当所述距离信息满足第一启动阈值时,启动方向传感器获取所述移动设备的方向信息;
    启动模块,用于当所述方向信息满足第二启动阈值时,启动目标应用。
  8. 根据权利要求7所述的装置,其特征在于,
    所述距离获取模块,用于所述接近传感器检测所述移动设备与显示设备的距离信息,调用第一接口获取所述距离信息。
  9. 根据权利要求7所述的装置,其特征在于,
    所述方向获取模块,用于启动方向传感器检测所述移动设备的方向信息;调用第二接口获取所述移动设备的方向信息。
  10. 根据权利要求9所述的装置,其特征在于,所述方向信息包括角度信息和处于该角度的时间信息,还包括:
    判断模块,用于获取所述方向信息中的角度信息,确定所述角度信息是否为期望角度;当所述角度信息为期望角度时,检测处于该角度的时间信息是否超过期望时间;若所述时间信息超过期望时间,确定所述方向信息满足第二启动阈值。
  11. 根据权利要求7所述的装置,其特征在于,还包括:
    状态确定模块,用于监测所述移动设备的活动状态信息;当依据所述活动状态信息确定所述移动设备处于非休眠状态时,启动接近传感器。
  12. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一个所述的应用的启动方法。
  13. 一种计算机可读介质,其中存储了如权利要求12所述的计算机程序。
PCT/CN2016/088528 2015-11-26 2016-07-05 一种应用的启动方法和装置 Ceased WO2017088481A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510846759.6A CN105975292A (zh) 2015-11-26 2015-11-26 一种应用的启动方法和装置
CN201510846759.6 2015-11-26

Publications (1)

Publication Number Publication Date
WO2017088481A1 true WO2017088481A1 (zh) 2017-06-01

Family

ID=56988450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088528 Ceased WO2017088481A1 (zh) 2015-11-26 2016-07-05 一种应用的启动方法和装置

Country Status (2)

Country Link
CN (1) CN105975292A (zh)
WO (1) WO2017088481A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080016517A1 (en) * 2006-05-18 2008-01-17 Timothy Peter Ellison Launcher for Software Applications
CN103677220A (zh) * 2012-08-30 2014-03-26 百度在线网络技术(北京)有限公司 一种自动开启实景地图的方法及具有该功能的移动终端
CN104915979A (zh) * 2014-03-10 2015-09-16 苏州天魂网络科技有限公司 跨移动平台实现沉浸式虚拟现实的系统
CN105045398A (zh) * 2015-09-07 2015-11-11 哈尔滨市一舍科技有限公司 一种基于手势识别的虚拟现实交互设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014044060A (ja) * 2012-08-24 2014-03-13 Canon Inc 形状測定装置、および形状測定方法
CN104252330B (zh) * 2013-06-28 2019-12-24 联想(北京)有限公司 一种信息处理方法及电子设备
CN104656899A (zh) * 2015-02-12 2015-05-27 深圳市金立通信设备有限公司 一种终端的操控方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080016517A1 (en) * 2006-05-18 2008-01-17 Timothy Peter Ellison Launcher for Software Applications
CN103677220A (zh) * 2012-08-30 2014-03-26 百度在线网络技术(北京)有限公司 一种自动开启实景地图的方法及具有该功能的移动终端
CN104915979A (zh) * 2014-03-10 2015-09-16 苏州天魂网络科技有限公司 跨移动平台实现沉浸式虚拟现实的系统
CN105045398A (zh) * 2015-09-07 2015-11-11 哈尔滨市一舍科技有限公司 一种基于手势识别的虚拟现实交互设备

Also Published As

Publication number Publication date
CN105975292A (zh) 2016-09-28

Similar Documents

Publication Publication Date Title
KR102321418B1 (ko) 압력 센서를 이용하여 배터리 부풂을 감지하는 방법 및 이를 사용하는 전자 장치
KR102294359B1 (ko) 전자 장치 및 전자 장치에서 알림을 제어하는 방법
KR102370678B1 (ko) 전자 장치의 터치 센싱 모듈 제어 방법 및 전자 장치, 전자 장치에 구비된 터치 센싱 모듈의 동작 방법 및 터치 센싱 모듈
KR102228782B1 (ko) 전자 장치 및 전자 장치에서의 이상 여부 판단 방법
US10133393B2 (en) Method for controlling security and electronic device thereof
KR20180044129A (ko) 전자 장치 및 전자 장치의 지문 정보 획득 방법
KR102504308B1 (ko) 디스플레이의 밝기를 제어하는 방법, 전자 장치 및 컴퓨터 판독가능 기록매체
KR102252448B1 (ko) 제어 방법 및 그 방법을 처리하는 전자장치
KR20170046410A (ko) Ui 제공 방법 및 이를 수행하는 전자 장치
KR20160070571A (ko) 제어 방법 및 그 방법을 처리하는 전자장치
US11392694B2 (en) Electronic apparatus and controlling method thereof
AU2015312632A1 (en) Method and apparatus for processing touch input
KR20170046915A (ko) 전자 장치 및 전자 장치의 카메라 제어 방법
KR20160124536A (ko) 사용자 인터페이스를 제공하는 방법 및 전자장치
KR20180010029A (ko) 전자 장치의 동작 방법 및 장치
KR20170054072A (ko) 액세서리 장치를 감지하는 전자장치 및 그의 동작 방법
KR20160071897A (ko) 전자장치 및 전자장치의 어플리케이션 실행 방법
KR20180116843A (ko) 모션 감지 방법 및 이를 지원하는 전자 장치
KR20180054200A (ko) 전자 장치 및 전자 장치의 화면 제공 방법
KR20170052003A (ko) 복수의 디스플레이들을 갖는 전자 장치 및 그 동작 방법
KR20160083691A (ko) 컨텐츠 선택 방법 및 그 전자 장치
KR20180007255A (ko) 전자 장치 및 전자 장치의 동작 방법
US9201576B2 (en) Display method and portable device
US9753933B2 (en) Electronic device and method for mounting file system using virtual block device
KR20160045428A (ko) 잠금 해제 방법 및 장치

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: 16867708

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867708

Country of ref document: EP

Kind code of ref document: A1