WO2016206170A1 - 一种操作执行方法和移动终端、存储介质 - Google Patents

一种操作执行方法和移动终端、存储介质 Download PDF

Info

Publication number
WO2016206170A1
WO2016206170A1 PCT/CN2015/085807 CN2015085807W WO2016206170A1 WO 2016206170 A1 WO2016206170 A1 WO 2016206170A1 CN 2015085807 W CN2015085807 W CN 2015085807W WO 2016206170 A1 WO2016206170 A1 WO 2016206170A1
Authority
WO
WIPO (PCT)
Prior art keywords
environment information
mobile terminal
preset
preset condition
sensing device
Prior art date
Application number
PCT/CN2015/085807
Other languages
English (en)
French (fr)
Inventor
杨超锋
Original Assignee
西安中兴新软件有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2016206170A1 publication Critical patent/WO2016206170A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to an operation management technology in a terminal, and in particular, to an operation execution method, a mobile terminal, and a storage medium.
  • the hardware configuration requirements of smart terminals such as smart phones on the market are getting higher and higher, and many sensors are added to the smart phones to improve the user experience.
  • the smart phone can only perform a fixed operation, for example, the shaking function of the smart phone, when the user shakes the smart phone, that is, when the vibration sensor senses the smart phone
  • the smartphone can perform a search for a person who shakes the smartphone at the same time, and the shake function cannot be utilized by other applications. In this way, the range of applications similar to those for implementing such a shake is greatly limited, resulting in lower utilization of the sensor.
  • embodiments of the present invention are expected to provide an operation execution method, a mobile terminal, and a storage medium, which can maximize the utilization of the sensing device and improve the utilization rate of the sensing device of the mobile terminal.
  • An embodiment of the present invention provides an operation execution method, which is applied to a mobile terminal.
  • the method includes:
  • the sensing device of the mobile terminal senses a change exceeding a preset operating range, acquiring at least one ring corresponding to the sensing device according to a preset correspondence between the sensing device and the environment information Information
  • the method further includes:
  • the determining the first environment information that has the highest priority and meets the corresponding preset condition in the at least one environment information includes:
  • the first environment information with the highest priority is determined among the m pieces of environment information, where m is a positive integer.
  • the method before the obtaining the at least one environment information corresponding to the sensing device, the method further includes:
  • the preset condition corresponding to the light intensity indicates that the light intensity is less than the first threshold, and the first operation corresponding to the light intensity indicates that the LED light source is turned on.
  • the preset condition corresponding to the system time indicates that the system time is within a preset threshold range, and the operation corresponding to the system time indicates that the broadcast of the mobile terminal is turned on.
  • the second operation is used to characterize the entry into the preset operational interface.
  • the embodiment of the invention further provides a mobile terminal, where the mobile terminal includes:
  • the acquiring unit is configured to: when the sensing device of the mobile terminal senses a change exceeding a preset operating range, acquire at least one environment information corresponding to the sensing device according to a preset correspondence between the sensing device and the environment information;
  • a determining unit configured to determine first environment information that has the highest priority among the at least one environment information and meets a corresponding preset condition
  • the execution unit is configured to perform a first operation corresponding to the first environment information according to a preset correspondence between the environment information and the operation.
  • the determining unit is further configured to:
  • the determining unit is further configured to:
  • the first environment information with the highest priority is determined among the m pieces of environment information, where m is a positive integer.
  • the mobile terminal further includes:
  • a setting unit configured to set a correspondence between the sensing device and the environment information; and configured to set a correspondence between the environment information and the operation;
  • the determining unit is further configured to determine a preset condition corresponding to the at least one environment information, and is further configured to determine a priority of the at least one environment information.
  • the preset condition corresponding to the light intensity indicates that the light intensity is less than the first threshold, and the first operation corresponding to the light intensity indicates that the LED light source is turned on.
  • the preset condition characterization system time is within a preset threshold range, and the operation corresponding to the system time indicates that the broadcast of the mobile terminal is turned on;
  • the second operation is used to characterize the entry into the preset operational interface.
  • the embodiment of the present invention provides an operation execution method, a mobile terminal, and a storage medium.
  • the sensing device of the mobile terminal senses a change exceeding a preset operation range
  • at least one corresponding to the sensing device is first used to determine whether to execute. And determining, by the environment information of the operation of the mobile terminal, the first environment information that has the highest priority and meets the corresponding preset condition in the at least one environment information; and then performs the first operation corresponding to the first environment information.
  • the function of the sensing device no longer only corresponds to one operation of the mobile terminal, but the sensing device senses that the preset operating range is satisfied.
  • the mobile terminal can perform corresponding operations according to the current environment information.
  • the operation corresponding to the function of the sensing device increases, and the utilization rate of the sensing device increases accordingly.
  • FIG. 1 is a flowchart of an operation execution method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
  • the embodiment of the present invention provides an operation execution method, which is applied to a mobile terminal, and the mobile terminal may be specifically a smart phone, a notebook, a tablet computer, a POS machine, a vehicle-mounted computer, etc.; As shown, the method includes:
  • Step 101 When the sensing device of the mobile terminal senses a change exceeding a preset operating range, acquiring at least one environment information corresponding to the sensing device according to a preset correspondence between the sensing device and the environment information.
  • the sensing device may be a sensor such as a photosensitive device, a temperature sensor, a humidity sensor, or the like;
  • the environment information of the embodiment is a condition for determining whether to perform the operation of the mobile terminal, and how many kinds of operations are required for the environment information, and the different environment information corresponds to different operations, wherein the environment information may include the light intensity (abbreviated as light intensity), Temperature, humidity, displacement, system time, etc.; operations may include: turning on the flashlight of the mobile terminal, turning off the flashlight of the mobile terminal, turning off, timekeeping, playing songs, and switching songs, and the like.
  • the environment information may include the light intensity (abbreviated as light intensity), Temperature, humidity, displacement, system time, etc.
  • operations may include: turning on the flashlight of the mobile terminal, turning off the flashlight of the mobile terminal, turning off, timekeeping, playing songs, and switching songs, and the like.
  • Step 102 Determine first environment information that has the highest priority among the at least one environment information and that meets the corresponding preset condition.
  • the priority and the preset condition of each environment information are preset, and the priority of the environment information may be the default priority order of the mobile terminal before leaving the factory, or may be the priority set by the user according to his own habits.
  • the order of the high and low is not limited in this embodiment.
  • the determining the first environment information that has the highest priority and the corresponding preset condition in the at least one environment information includes: determining whether the environment information in the at least one environment information meets a preset condition; The m environment information in the at least one environment information satisfies a preset condition, and the first environment information with the highest priority is determined in the m environment information, where the m is a positive integer.
  • the environment information is in one-to-one correspondence with the preset condition, and the different environment information corresponds to different preset conditions. Therefore, determining whether the environment information in the at least one environment information meets the preset condition; The m environment information in the at least one environment information meets a preset condition, and the first environment information with the highest priority is determined in the m environment information.
  • m is a positive integer, specifically including:
  • the at least one environmental information satisfies a preset condition corresponding to the respective environmental information; if the m environmental information in the at least one environmental information satisfies a preset condition corresponding to the respective environmental information, the m The environment information with the highest priority is determined as the first environment, and m is a positive integer.
  • the specific determination method is not limited.
  • the environment information may be judged one by one according to the order of priority, until the first predetermined environment condition that satisfies the corresponding preset condition is determined. .
  • Step 103 Perform a first operation corresponding to the first environment information according to a preset correspondence between the environment information and the operation.
  • the corresponding relationship between the environment information and the operation may be the default of the system, or may be modified by the user. This embodiment does not limit this.
  • the function of the sensing device no longer only corresponds to one operation of the mobile terminal, but the sensing device senses a change that satisfies the preset range. After that, the mobile terminal can perform corresponding operations according to the current environment information. As a result, the operation corresponding to the function of the sensing device increases, and the utilization rate of the sensing device increases accordingly.
  • the method further includes: when it is determined that the at least one environment information does not satisfy the corresponding preset condition, performing a second operation, where the second operation is an operation different from the operation corresponding to the at least one environment information.
  • the second operation may also be a null operation, that is, no operation is performed.
  • the method further includes:
  • Determining a preset condition corresponding to the at least one environment information specifically, determining a preset condition that is in one-to-one correspondence with the environment information in the at least one environment information;
  • the foregoing correspondence, preset condition, and priority may be set by the user according to his or her own wishes, or may be set by the mobile terminal according to the usage habit of the user.
  • the preset condition corresponding to the light intensity indicates that the light intensity is less than a first threshold, and the first operation corresponding to the light intensity indicates that the LED light source is turned on.
  • the environment information is used to represent the system time
  • the preset condition corresponding to the system time indicates that the system time is within a preset threshold range, and the operation corresponding to the system time indicates that the mobile terminal is turned on.
  • the second operation is used to characterize the entry into the preset operation interface; specifically, the second operation is used to characterize the incoming call operation interface.
  • the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of instructions for performing the operation execution method described in the first embodiment.
  • the embodiment of the invention provides an operation execution method, which is applied to a smart phone, which may include a microphone, an earpiece, a touch screen, an amplifying circuit, a vibration sensor, a photosensitive sensor, a processor, an LED light source, a battery, etc., as shown in FIG. 2 Show that the method includes:
  • Step 201 The processor determines, according to the user's selection, two environmental information, a priority of the environmental information, a preset condition corresponding to the environmental information, and an operation corresponding to the environmental information.
  • the environmental information may be set by the user according to his or her own situation.
  • the user clicks into the setting page, and the user adds the light intensity option and the system time option to the environment information on the setting page, and selects the priority of the light intensity 1 is higher than the priority of the system time 2 is higher than the priority without the environmental information.
  • Level 3 the preset condition corresponding to the light intensity is that the light intensity is within 0 to 10 cd, and the preset condition corresponding to the system time is that the system time is between 23:00 and 2:00, and the operation corresponding to the light intensity is to turn on the LED light source.
  • the operation corresponding to the system time is shutdown, and the corresponding operation is to open the broadcast without environment information (indicating that there is no environmental information that satisfies the pre-conditions).
  • each sensor may have a correspondence relationship table, which records environment information corresponding to the sensor, priority of the environment information, preset conditions corresponding to the environment information, and operations corresponding to the environment information.
  • Step 202 The vibration sensor senses that the vibration range exceeds a preset operation range.
  • the vibration sensor triggers the processor of the smartphone, and the processor starts to work.
  • Step 203 The processor acquires the light intensity and the system time.
  • the processor wakes up the photosensitive sensor, and the photosensitive sensor senses the current light intensity, and converts the corresponding electrical signal to the processor, and the processor determines the intensity of the light according to the electrical signal, and the system obtains the current time from the network. system time.
  • Step 204 The processor determines whether the light intensity is in a range of 0 to 10 cd, and whether the system time is between 23:00 and 2:00.
  • Step 205 If the light intensity is in the range of 0 to 10 cd and the system time is between 23:00 and 2:00, the processor executes the LED light source corresponding to the light intensity with a higher priority.
  • the light intensity priority is higher than the system time priority. Therefore, turning on the LED light source, that is, turning on the flashlight function of the smart phone.
  • Step 206 If the light intensity is in the range of 0 to 10 cd and the system time is not between 23:00 and 2:00, the processor executes the LED light source corresponding to the light intensity.
  • Step 207 If the light intensity is not in the range of 0 to 10 cd and the system time is between 23:00 and 2:00, the processor performs shutdown corresponding to the system time.
  • Step 208 If the light intensity is not in the range of 0 to 10 cd and the system time is between 23:00 and 2:00, the processor performs an open broadcast corresponding to the no-environment information.
  • the embodiment of the present invention provides a mobile terminal 30.
  • the mobile terminal 30 may include:
  • the acquiring unit 301 is configured to acquire at least one environment information corresponding to the sensing device according to a preset correspondence between the sensing device and the environment information when the sensing device of the mobile terminal senses a change exceeding a preset operating range. .
  • the determining unit 302 is configured to determine first environment information that has the highest priority among the at least one environment information and meets a corresponding preset condition.
  • the executing unit 303 is configured to perform a first operation corresponding to the first environment information according to a preset correspondence between the environment information and the operation.
  • the function of the sensing device no longer only corresponds to one operation of the mobile terminal, but the sensing device senses that the preset operating range is satisfied.
  • the mobile terminal can perform corresponding operations according to the current environment information, so that the operation corresponding to the function of the sensing device is increased, and the utilization rate of the sensing device is correspondingly increased.
  • determining unit 302 is further configured to:
  • determining unit 302 is further configured to:
  • the first environment information having the highest priority is determined among the m pieces of environmental information, and the m is a positive integer.
  • the mobile terminal 30 further includes:
  • the setting unit 304 is configured to set a correspondence between the sensor and the environment information, and is further configured to set a correspondence between the environment information and the operation.
  • the determining unit 302 is further configured to determine a preset condition corresponding to the at least one environment information, and is further configured to determine a priority of the at least one environment information.
  • the preset condition corresponding to the light intensity indicates that the light intensity is less than the first threshold, and the first operation corresponding to the light intensity indicates that the LED light source is turned on;
  • the preset condition corresponding to the system time indicates that the system time is within a preset threshold range, and the operation corresponding to the system time indicates that the broadcast of the mobile terminal is turned on.
  • the second operation is used to characterize the entry into the preset operation interface; specifically, the second operation is used to characterize the incoming call operation interface.
  • the obtaining unit 301, the determining unit 302, the executing unit 303, and the setting unit 304 may each be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) located in the mobile terminal. , Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention
  • the flow chart and/or block diagram of the product is described. 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 device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing 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 apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the sensing device of the mobile terminal when the sensing device of the mobile terminal senses a change exceeding the preset operating range, at least one environment information corresponding to the sensing device for determining whether to perform the operation of the mobile terminal is acquired; and at least one environmental information is determined.
  • the first environment information having the highest priority and satisfying the corresponding preset condition; thereafter, performing the first operation corresponding to the first environment information.
  • the function of the sensing device no longer only corresponds to one operation of the mobile terminal, but the sensing device senses that the preset operating range is satisfied.
  • the mobile terminal can perform corresponding operations according to the current environment information.
  • the operation corresponding to the function of the sensing device increases, and the utilization rate of the sensing device increases accordingly.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种操作执行方法,应用于移动终端;所述方法包括:移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环境信息;确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。本发明实施例还同时公开了一种移动终端及存储介质。

Description

一种操作执行方法和移动终端、存储介质 技术领域
本发明涉及终端中的操作管理技术,特别涉及一种操作执行方法和移动终端、存储介质。
背景技术
目前,市场上的智能终端如智能手机的硬件配置要求越来越高,很多传感器相应的加入到智能手机中,以提高用户体验。但现有技术中,当传感器满足预设操作范围之后,智能手机只能执行一个固定的操作,例如,智能手机的摇一摇功能,当用户摇动智能手机时,即当震动传感器感应到智能手机的震动变化量超过预定操作范围时,智能手机才能执行搜索周围同一时刻摇动智能手机的人,除此之外,摇一摇功能不能被其他应用利用。这样,类似实现摇一摇这类的传感器的应用范围就大大受限,导致传感器的利用率较低。
发明内容
为解决现有存在的技术问题,本发明实施例期望提供一种操作执行方法和移动终端、存储介质,能够最大化的利用感应器件,提高移动终端感应器件的利用率。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种操作执行方法,应用于移动终端;所述方法包括:
移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环 境信息;
确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;
根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。
上述方案中,所述方法还包括:
确定所述至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。
上述方案中,所述确定出所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息,包括:
判断所述至少一个环境信息中的环境信息是否满足预设条件;
若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
上述方案中,所述获取与所述感应器件对应的至少一个环境信息之前,所述方法还包括:
设置所述感应器件与环境信息的对应关系;
确定与所述至少一个环境信息对应的预设条件;
确定所述至少一个环境信息的优先级;
设置环境信息与操作的对应关系。
上述方案中,所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;
所述环境信息用于表征系统时间时,对应地,与所述系统时间对应的预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;
所述第二操作用于表征进入预设操作界面。
本发明实施例还提供了一种移动终端,所述移动终端包括:
获取单元,配置为当所述移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环境信息;
确定单元,配置为确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;
执行单元,配置为根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。
上述方案中,所述确定单元,还配置为:
确定所述至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。
上述方案中,所述确定单元,还配置为:
判断所述至少一个环境信息中的环境信息是否满足预设条件;
若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
上述方案中,所述移动终端还包括:
设置单元,配置为设置所述感应器件与环境信息的对应关系;还配置为设置环境信息与操作的对应关系;
所述确定单元,还配置为确定与所述至少一个环境信息对应的预设条件;还配置为确定所述至少一个环境信息的优先级。
上述方案中,所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;
所述环境信息用于表征系统时间时,对应地,与所述系统时间对应的 预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;
所述第二操作用于表征进入预设操作界面。
本发明实施例提供的一种操作执行方法和移动终端、存储介质,当移动终端的感应器件感应到超过预设操作范围的变化时,先获取与该感应器件对应的至少一个用于判断是否执行移动终端操作的环境信息;再确定出至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;之后,执行与所述第一环境信息对应的第一操作。这样,各个环境信息对应多少种操作,就有多少种操作被执行的可能,因此,感应器件的功能不再只对应移动终端的某一个操作,而是在感应器件感应到满足预设操作范围的变换之后,移动终端可以根据当前环境信息执行对应的操作,如此,感应器件的功能对应的操作增多,感应器件的利用率也相应增加。
附图说明
图1为本发明实施例提供的一种操作执行方法的流程图;
图2为本发明实施例提供的另一种操作执行方法的流程图;
图3为本发明实施例提供的一种移动终端的结构示意图;
图4为本发明实施例提供的另一种移动终端的结构示意图。
具体实施方式
为了能够更加详尽地了解本发明的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。
实施例一
本发明实施例提供一种操作执行方法,应用于移动终端,所述移动终端可以具体为智能手机、笔记本、平板电脑、POS机、车载电脑等;如图1 所示,所述方法包括:
步骤101、移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与感应器件对应的至少一个环境信息。
这里,所述感应器件可以是传感器,比如:感光器件、温度传感器、湿度传感器等等;
本实施例的环境信息是判断是否执行移动终端的操作的条件,有多少环境信息就对应多少种操作,不同的环境信息对应不同的操作,其中,环境信息可以包括光照强度(简称光强)、温度、湿度、位移、系统时间等等;操作可以包括:开启移动终端的手电筒、关闭移动终端的手电筒、关机、报时、播放歌曲和切换歌曲等等。
步骤102、确定至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息。
其中,每个环境信息的优先级和预设条件是预先设定的,环境信息的优先级可以是移动终端出厂前默认的优先级高低顺序,也可以是用户根据自己的习惯设定的优先级高低顺序,本实施例对此不做限定。
进一步地,所述确定出所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息,包括:判断所述至少一个环境信息中的环境信息是否满足预设条件;若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
在一具体实施例中,环境信息与预设条件一一对应,不同的环境信息对应不同的预设条件,所以,所述判断所述至少一个环境信息中的环境信息是否满足预设条件;若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所 述m是正整数,具体包括:
判断至少一个环境信息是否满足与各自环境信息一一对应的预设条件;若所述至少一个环境信息中的m个环境信息满足与各自环境信息一一对应的预设条件,则在所述m个环境信息中确定出优先级最高的环境信息作为第一环境,m是正整数。
这里,具体的判断方法不做限定,本实施例还可以按照优先级的高低顺序,逐个判断环境信息是否满足对应的预设条件,直到第一个确定出满足对应的预设条件的环境信息为止。
步骤103、根据预设的环境信息与操作的对应关系,执行与第一环境信息对应的第一操作。
同样的,环境信息与操作的对应关系可以是系统默认的,也可以是用户自己修改的,本实施例对此不做限定。
这样,各个环境信息对应多少种操作,就有多少种操作被执行的可能,因此,感应器件的功能不再只对应移动终端的某一个操作,而是在感应器件感应到满足预设范围的变换后,移动终端可以根据当前环境信息执行对应的操作,如此,感应器件的功能对应的操作增多,感应器件的利用率也相应增加。
进一步的,所述方法还包括:确定至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。这里,第二操作也可以是空操作,即不执行任何操作。
进一步的,步骤101之前,所述方法还包括:
设置感应器件与环境信息的对应关系;
确定与所述至少一个环境信息对应的预设条件;具体地,确定与所述至少一个环境信息中的环境信息一一对应的预设条件;
确定所述至少一个环境信息的优先级;
设置环境信息与操作的对应关系。这里,上述对应关系、预设条件和优先级都可以是用户根据自己的意愿设置的,也可以是移动终端根据用户的使用习惯设置的。
优选的,当所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;当所述环境信息用于表征系统时间时,对应地,与所述系统时间对应的预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;第二操作用于表征进入预设操作界面;具体地,第二操作用于表征进入拨打电话操作界面。
本发明实施例还提供了一种计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行实施例一所述的操作执行方法。
实施例二
本发明实施例提供一种操作执行方法,应用于智能手机,该智能手机可以包括麦克风、听筒、触摸屏、放大电路、震动传感器、光敏传感器、处理器、LED光源、电池等等,如图2所示,该方法包括:
步骤201、处理器根据用户的选择确定两个环境信息、环境信息的优先级、与环境信息一一对应的预设条件和与环境信息一一对应的操作。
这里,环境信息可以是用户根据自身情设定的。
示例的,用户点击进入设置页面,用户在设置页面上将光强选项和系统时间选项添加为环境信息,并选择光强的优先级1高于系统时间的优先级2高于无环境信息的优先级3,光强对应的预设条件为光强在0到10cd内,系统时间对应的预设条件为系统时间在23:00-2:00之间,光强对应的操作是开启LED光源,系统时间对应的操作是关机,无环境信息(表示无满足预先条件的环境信息)对应的操作是打开广播。最终,生成了如表1所示的对应 关系表,每个传感器都可以存在一张对应关系表,该表记录着与传感器对应的环境信息、环境信息的优先级、与环境信息对应的预设条件和与环境信息对应的操作。
表1
Figure PCTCN2015085807-appb-000001
步骤202、震动传感器感应到震动范围超过预设操作范围。
用户摇动智能手机,震动传感器感应智能手机的震动,当震动的范围超过预设操作范围时,震动传感器触发智能手机的处理器,处理器开始工作。
步骤203、处理器获取光强和系统时间。
具体的,处理器唤醒光敏传感器,光敏传感器感应到当前的光强,并转化成相应的电信号发送给处理器,处理器根据电信号确定出光强的大小,系统从网络获取当前的时间作为系统时间。
步骤204、处理器判断光强是否在0到10cd的范围内、系统时间是否在23:00至2:00之间。
步骤205、若光强在0到10cd的范围内且系统时间在23:00至2:00之间,则处理器执行与优先级高的光强对应的开启LED光源。
从表1中可知,光强优先级高于系统时间优先级,因此,打开LED光源,即打开智能手机的手电筒功能。
步骤206、若光强在0到10cd的范围内且系统时间不在23:00至2:00之间,则处理器执行与光强对应的开启LED光源。
步骤207、若光强不在0到10cd的范围内且系统时间在23:00至2:00之间,则处理器执行与系统时间对应的关机。
步骤208、若光强不在0到10cd的范围内且系统时间在23:00至2:00之间,则处理器执行与无环境信息对应的打开广播。
实施例三
本发明实施例提供一种移动终端30,如图3所示,该移动终端30可以包括:
获取单元301,配置为当所述移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环境信息。
确定单元302,配置为确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息。
执行单元303,配置为根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。
这样,各个环境信息对应多少种操作,就有多少种操作被执行的可能,因此,感应器件的功能不再只对应移动终端的某一个操作,而是在感应器件感应到满足预设操作范围的变换之后,移动终端可以根据当前环境信息执行对应的操作,这样,感应器件的功能对应的操作增多,感应器件的利用率也相应增加。
进一步的,所述确定单元302,还配置为:
确定所述至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。
进一步的,所述确定单元302,还配置为:
判断所述至少一个环境信息中的环境信息是否满足预设条件;
若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述 m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
进一步的,如图4所示,所述移动终端30还包括:
设置单元304,配置为设置所述传感器与环境信息的对应关系;还配置为设置环境信息与操作的对应关系。
所述确定单元302,还配置为确定与所述至少一个环境信息对应的预设条件;还配置为确定所述至少一个环境信息的优先级。
优选的,所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;所述环境信息用于表征系统时间时,对应地,与所述系统时间对应的预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;所述第二操作用于表征进入预设操作界面;具体地,所述第二操作用于表征进入拨打电话操作界面。
在实际应用中,所述获取单元301、确定单元302、执行单元303和设置单元304均可由位于移动终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
本领域技术人员应当理解,本发明实施例的移动终端中各处理单元的功能,可参照前述操作执行方法的相关描述而理解。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序 产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅是本发明实施例的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明实施例原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明实施例的保护范围。
工业实用性
本发明实施例当移动终端的感应器件感应到超过预设操作范围的变化时,先获取与该感应器件对应的至少一个用于判断是否执行移动终端操作的环境信息;再确定出至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;之后,执行与所述第一环境信息对应的第一操作。 这样,各个环境信息对应多少种操作,就有多少种操作被执行的可能,因此,感应器件的功能不再只对应移动终端的某一个操作,而是在感应器件感应到满足预设操作范围的变换之后,移动终端可以根据当前环境信息执行对应的操作,如此,感应器件的功能对应的操作增多,感应器件的利用率也相应增加。

Claims (11)

  1. 一种操作执行方法,应用于移动终端;所述方法包括:
    移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环境信息;
    确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;
    根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    确定所述至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。
  3. 根据权利要求1所述的方法,其中,所述确定出所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息,包括:
    判断所述至少一个环境信息中的环境信息是否满足预设条件;
    若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
  4. 根据权利要求3所述的方法,其中,所述获取与所述感应器件对应的至少一个环境信息之前,所述方法还包括:
    设置所述感应器件与环境信息的对应关系;
    确定与所述至少一个环境信息对应的预设条件;
    确定所述至少一个环境信息的优先级;
    设置环境信息与操作的对应关系。
  5. 根据权利要求1至4任一项所述的方法,其中,
    所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件则表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;
    所述环境信息用于表征系统时间时,对应地,与所述系统时间对应的预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;
    所述第二操作用于表征进入预设操作界面。
  6. 一种移动终端,所述移动终端包括:
    获取单元,配置为当所述移动终端的感应器件感应到超过预设操作范围的变化时,根据预设的感应器件与环境信息的对应关系,获取与所述感应器件对应的至少一个环境信息;
    确定单元,配置为确定所述至少一个环境信息中优先级最高且满足对应的预设条件的第一环境信息;
    执行单元,配置为根据预设的环境信息与操作的对应关系,执行与所述第一环境信息对应的第一操作。
  7. 根据权利要求6所述的移动终端,其中,所述确定单元,还配置为:
    确定所述至少一个环境信息都不满足对应的预设条件时,执行第二操作,所述第二操作是与所述至少一个环境信息对应的操作不同的操作。
  8. 根据权利要求6所述的移动终端,其中,所述确定单元,还配置为:
    判断所述至少一个环境信息中的环境信息是否满足预设条件;
    若所述至少一个环境信息中的m个环境信息满足预设条件,则在所述m个环境信息中确定出优先级最高的第一环境信息,所述m是正整数。
  9. 根据权利要求8所述的移动终端,其中,所述移动终端还包括:
    设置单元,配置为设置所述感应器件与环境信息的对应关系;还配置为设置环境信息与操作的对应关系;
    所述确定单元,还配置为确定与所述至少一个环境信息对应的预设条 件;还配置为确定所述至少一个环境信息的优先级。
  10. 根据权利要求6至9任一项所述的移动终端,其中,
    所述环境信息用于表征光强时,对应地,与所述光强对应的预设条件表征光强小于第一阈值,与所述光强对应的第一操作表征开启LED光源;
    所述环境信息用于表征系统时间,对应地,与所述系统时间对应的预设条件表征系统时间在预设阈值范围内,与所述系统时间对应的操作表征开启所述移动终端的广播;
    所述第二操作用于表征进入预设操作界面。
  11. 一种计算机可读存储介质,该存储介质包括一组指令,所述指令用于执行权利要求1至5任一项所述的操作执行方法。
PCT/CN2015/085807 2015-06-25 2015-07-31 一种操作执行方法和移动终端、存储介质 WO2016206170A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510363566.5A CN106331291B (zh) 2015-06-25 2015-06-25 一种操作执行方法和移动终端
CN201510363566.5 2015-06-25

Publications (1)

Publication Number Publication Date
WO2016206170A1 true WO2016206170A1 (zh) 2016-12-29

Family

ID=57584668

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085807 WO2016206170A1 (zh) 2015-06-25 2015-07-31 一种操作执行方法和移动终端、存储介质

Country Status (2)

Country Link
CN (1) CN106331291B (zh)
WO (1) WO2016206170A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006364A (zh) * 2010-11-19 2011-04-06 华为终端有限公司 信息的显示方法及装置
US20120225635A1 (en) * 2010-12-24 2012-09-06 Touch Technologies, Inc. Method and apparatus to take emergency actions when a device is shaken rapidly by its user
US20120276929A1 (en) * 2011-04-28 2012-11-01 Nhn Corporation Social network service providing system and method for setting relationship between users based on motion of mobile terminal and distance determined by user
CN103164050A (zh) * 2011-12-15 2013-06-19 三星电子株式会社 用于执行便携式终端的功能的装置和方法
CN104469018A (zh) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 移动终端

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153890A1 (en) * 2008-12-11 2010-06-17 Nokia Corporation Method, Apparatus and Computer Program Product for Providing a Predictive Model for Drawing Using Touch Screen Devices
CN101751288A (zh) * 2008-12-12 2010-06-23 中国移动通信集团山东有限公司 应用进程调度的方法、设备及系统
KR101584058B1 (ko) * 2009-08-07 2016-01-12 삼성전자주식회사 현재 상황에 적합한 사용 환경을 제공하는 휴대 단말기 및 이의 운용 방법
US20120297304A1 (en) * 2011-05-17 2012-11-22 Apple Inc. Adaptive Operating System
CN103164134B (zh) * 2011-12-14 2017-07-14 汉王科技股份有限公司 一种触控屏用操控装置及其操控方法
CN103324273B (zh) * 2012-03-19 2017-11-28 联想(北京)有限公司 一种电子设备及电子设备的控制方法
KR101999182B1 (ko) * 2012-04-08 2019-07-11 삼성전자주식회사 사용자 단말 장치 및 그의 제어 방법
CN102929444A (zh) * 2012-10-16 2013-02-13 华为终端有限公司 一种人机交互的方法及装置
WO2014119894A1 (en) * 2013-01-29 2014-08-07 Samsung Electronics Co., Ltd. Method of performing function of device and device for performing the method
CN104216505B (zh) * 2013-05-29 2019-01-08 腾讯科技(深圳)有限公司 便携智能终端的控制方法和装置
EP2874051A1 (en) * 2013-11-14 2015-05-20 Lg Electronics Inc. Mobile terminal and control method thereof
CN103777846B (zh) * 2014-02-24 2017-03-01 联想(北京)有限公司 信息处理方法及电子设备
CN104092827A (zh) * 2014-07-18 2014-10-08 百度在线网络技术(北京)有限公司 终端的设置方法及装置
CN104182040A (zh) * 2014-08-08 2014-12-03 深圳市金立通信设备有限公司 一种终端参数设置方法
CN104468963B (zh) * 2014-08-25 2017-03-15 宇龙计算机通信科技(深圳)有限公司 非接触应用的切换方法及系统
CN204360364U (zh) * 2015-01-16 2015-05-27 刘超 一种触控边框及具有触控边框的装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006364A (zh) * 2010-11-19 2011-04-06 华为终端有限公司 信息的显示方法及装置
US20120225635A1 (en) * 2010-12-24 2012-09-06 Touch Technologies, Inc. Method and apparatus to take emergency actions when a device is shaken rapidly by its user
US20120276929A1 (en) * 2011-04-28 2012-11-01 Nhn Corporation Social network service providing system and method for setting relationship between users based on motion of mobile terminal and distance determined by user
CN103164050A (zh) * 2011-12-15 2013-06-19 三星电子株式会社 用于执行便携式终端的功能的装置和方法
CN104469018A (zh) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 移动终端

Also Published As

Publication number Publication date
CN106331291B (zh) 2020-11-06
CN106331291A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
CN109074158B (zh) 电子设备及其启动应用的方法
CN107852437B (zh) 用于在电子设备中输出音频的方法和装置
CN108012389B (zh) 灯光调节方法、终端设备及计算机可读存储介质
US10367950B2 (en) Device notification adjustment dependent on user proximity
JP5734910B2 (ja) 情報提供システムおよび情報提供方法
CN104902086B (zh) 闹钟响铃方法及装置
CN104281703B (zh) 统一资源定位符url间相似度计算的方法及装置
CN112955856A (zh) 在分屏上显示可执行应用的列表的电子装置及其操作方法
WO2015153529A1 (en) Automated selective upload of images
KR102151135B1 (ko) 전력 관리 방법 및 그 방법을 처리하는 전자 장치
KR20150129423A (ko) 전자 장치 및 전자 장치의 제스처 인식 방법 및 전자 장치
CN109948087B (zh) 网页资源的获取方法、装置及终端
WO2020048392A1 (zh) 应用程序的病毒检测方法、装置、计算机设备及存储介质
RU2013158603A (ru) Способ и устройство для различения связанных со здоровьем состояний пользователя на основании информации о взаимодействии с пользователем
WO2017012501A1 (zh) 一种调整屏幕显示方向的方法及终端
KR102109883B1 (ko) 컨텐츠 전송 방법 및 전자 장치
CN111092748A (zh) 物联网设备的告警规则设置方法、装置、设备及存储介质
CN104182126A (zh) 一种移动终端拨号方法及装置
WO2018000297A1 (zh) 一种触控屏的触控响应方法、装置以及终端
KR20150098809A (ko) 전자장치에서 마이크의 감도에 따른 자동 이득 조절 방법 및 장치
CN105005489B (zh) 一种终端设备的启动方法及终端设备
KR20170120707A (ko) 터치 스크린의 포인트 보고를 처리하는 방법, 장치, 프로그램 및 기록매체
CN105988841A (zh) 一种应用程序的更新方法及移动终端
EP3058469A2 (en) Method and apparatus for identifying media files based upon contextual relationships
CN108028989B (zh) 检测外部设备的方法和处理该方法的电子设备

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

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

Country of ref document: EP

Kind code of ref document: A1