技术领域technical field
本发明涉及终端应用技术领域,尤其涉及一种移动终端的操作方法及移动终端。The present invention relates to the technical field of terminal applications, in particular to an operation method of a mobile terminal and the mobile terminal.
背景技术Background technique
众所周知,在对移动终端的应用界面进行操作时,通常由应用界面上显示各式各样的虚拟按键,移动终端的屏幕驱动检测用户在屏幕上触摸的位置,并发送给应用,从而触发应用执行相应的操作。As we all know, when operating the application interface of a mobile terminal, various virtual buttons are usually displayed on the application interface, and the screen driver of the mobile terminal detects the position touched by the user on the screen and sends it to the application, thereby triggering the execution of the application corresponding operation.
随着移动终端的尺寸的增大,显示界面也相应地增大,导致虚拟按键的触摸操作难度较大,不便于用户进行应用界面的翻页操作。As the size of the mobile terminal increases, the display interface also increases accordingly, which makes it difficult to touch the virtual keys, making it inconvenient for users to perform page-turning operations on the application interface.
发明内容Contents of the invention
本发明实施例提供一种移动终端的操作方法及移动终端,以解决移动终端中应用界面的翻页操作难度较大的问题。Embodiments of the present invention provide a method for operating a mobile terminal and the mobile terminal, so as to solve the problem that the page turning operation of the application interface in the mobile terminal is relatively difficult.
第一方面,本发明实施例提供了一种移动终端的操作方法,包括:In a first aspect, an embodiment of the present invention provides a method for operating a mobile terminal, including:
获取所述移动终端的重力加速度;Obtain the acceleration of gravity of the mobile terminal;
若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。If the gravitational acceleration of the mobile terminal satisfies the first preset condition, a page turning operation is performed on the application interface of the current application program running in the mobile terminal.
第二方面,本发明实施例还提供了一种移动终端,包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including:
获取模块,用于获取所述移动终端的重力加速度;An acquisition module, configured to acquire the acceleration of gravity of the mobile terminal;
翻页控制模块,用于若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。The page turning control module is configured to perform a page turning operation on the application interface of the current application program running in the mobile terminal if the gravitational acceleration of the mobile terminal satisfies a first preset condition.
这样,本发明实施例中,获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。由于通过检测重力加速度即可实现应用界面的翻页操作控制,从而无需用户进行点击触摸操作,因此可以降低移动终端中应用界面的翻页操作难度,便于用户执行翻页操作。In this way, in the embodiment of the present invention, the gravitational acceleration of the mobile terminal is obtained; if the gravitational acceleration of the mobile terminal satisfies the first preset condition, the application interface of the current application program running in the mobile terminal is turned. operate. Since the page-turning operation control of the application interface can be realized by detecting the acceleration of gravity, the user does not need to perform a click and touch operation, so the difficulty of the page-turning operation of the application interface in the mobile terminal can be reduced, and it is convenient for the user to perform the page-turning operation.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明第一实施例提供的移动终端的操作方法的流程图;FIG. 1 is a flowchart of an operating method of a mobile terminal provided in a first embodiment of the present invention;
图2是本发明第二实施例提供的移动终端的操作方法的流程图之一;FIG. 2 is one of the flowcharts of the operation method of the mobile terminal provided by the second embodiment of the present invention;
图3是本发明第二实施例提供的移动终端的操作方法的流程图之二;Fig. 3 is the second flowchart of the operation method of the mobile terminal provided by the second embodiment of the present invention;
图4是本发明第三实施例提供的移动终端的结构图之一;Fig. 4 is one of the structural diagrams of the mobile terminal provided by the third embodiment of the present invention;
图5是本发明第三实施例提供的移动终端的结构图之二;FIG. 5 is the second structural diagram of the mobile terminal provided by the third embodiment of the present invention;
图6是本发明第三实施例提供的移动终端的结构图之三;FIG. 6 is the third structural diagram of the mobile terminal provided by the third embodiment of the present invention;
图7是本发明第四实施例提供的移动终端的结构;FIG. 7 is a structure of a mobile terminal provided by a fourth embodiment of the present invention;
图8是本发明第五实施例提供的移动终端的结构。FIG. 8 is a structure of a mobile terminal provided by a fifth embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
第一实施例first embodiment
参见图1,图1是本发明实施例提供的一种移动终端的操作方法的流程图,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of an operating method for a mobile terminal provided in an embodiment of the present invention. As shown in FIG. 1, it includes the following steps:
步骤101,获取所述移动终端的重力加速度。Step 101, acquiring the gravitational acceleration of the mobile terminal.
本发明实施例提供的移动终端的操作方法主要是对应用的操作进行控制,例如,在进行网页浏览时,用于对网页的前进或返回进行操作控制。The operation method of the mobile terminal provided by the embodiment of the present invention is mainly to control the operation of the application, for example, when browsing the webpage, it is used to control the forward or return of the webpage.
该步骤中,重力加速度可以通过预设在移动终端中的重力加速度传感器检测获得,具体的,该重力加速度传感器也称之为三轴加速度传感器,可以检测X轴上的加速度、Y轴上的加速度和Z轴上的加速度。In this step, the acceleration of gravity can be detected by the acceleration of gravity sensor preset in the mobile terminal. Specifically, the acceleration of gravity sensor is also called a three-axis acceleration sensor, which can detect the acceleration on the X axis and the acceleration on the Y axis. and the acceleration on the Z axis.
步骤102,若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。Step 102, if the gravitational acceleration of the mobile terminal satisfies a first preset condition, perform a page turning operation on the application interface of the current application program running in the mobile terminal.
具体的,上述翻页操作的内容主要包括前进翻页和后退翻页,当然还可以设置后退到指定页面的翻页操作(如返回主页面)等等。上述第一预设条件的具体内容可以根据实际需要进行设置,例如,可以对每一种翻页操作设置至少一个条件,与此同时每一种翻页操作对应的条件不能重叠,从而避免误操作。Specifically, the content of the above-mentioned page turning operation mainly includes forward page turning and backward page turning, and of course, a page turning operation to return to a specified page (such as returning to the main page) and the like can also be set. The specific content of the above-mentioned first preset condition can be set according to actual needs, for example, at least one condition can be set for each page-turning operation, and at the same time, the conditions corresponding to each page-turning operation cannot overlap, thereby avoiding misuse .
以前进翻页操作和返回翻页操作为例,当上述重力加速度满足前进翻页操作对应的条件时,则会执行前进翻页操作;当上述重力加速度满足返回翻页操作对应的条件时,则会执行返回翻页操作。Taking the forward page turning operation and the return page turning operation as examples, when the above-mentioned gravity acceleration meets the conditions corresponding to the forward page turning operation, the forward page turning operation will be performed; when the above gravity acceleration meets the corresponding conditions of the return page turning operation, then It will perform the return page turning operation.
这样,本发明实施例中,获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。由于通过检测重力加速度即可实现应用界面的翻页操作控制,从而无需用户进行点击触摸操作,因此可以降低移动终端中应用界面的翻页操作难度,便于用户执行翻页操作。In this way, in the embodiment of the present invention, the gravitational acceleration of the mobile terminal is obtained; if the gravitational acceleration of the mobile terminal satisfies the first preset condition, the application interface of the current application program running in the mobile terminal is turned. operate. Since the page-turning operation control of the application interface can be realized by detecting the acceleration of gravity, the user does not need to perform a click and touch operation, so the difficulty of the page-turning operation of the application interface in the mobile terminal can be reduced, and it is convenient for the user to perform the page-turning operation.
第二实施例second embodiment
参见图2,在本发明第二实施例提供的移动终端的操作方法中,与第一实施例的区别在于,本实施例中,首先需要对应用界面上的按键进行识别,具体的,如图2所示,该移动终端的操作方法包括:Referring to Fig. 2, in the operation method of the mobile terminal provided by the second embodiment of the present invention, the difference from the first embodiment is that in this embodiment, it is first necessary to identify the buttons on the application interface, specifically, as shown in Fig. 2, the operation method of the mobile terminal includes:
步骤201,获取所述移动终端的重力加速度。Step 201, acquiring the gravitational acceleration of the mobile terminal.
该步骤中,重力加速度可以通过预设在移动终端中的重力加速度传感器检测获得,具体的,该重力加速度传感器也称之为三轴加速度传感器,可以检测X轴上的加速度、Y轴上的加速度和Z轴上的加速度。In this step, the acceleration of gravity can be detected by the acceleration of gravity sensor preset in the mobile terminal. Specifically, the acceleration of gravity sensor is also called a three-axis acceleration sensor, which can detect the acceleration on the X axis and the acceleration on the Y axis. and the acceleration on the Z axis.
步骤202,判断所述当前应用程序的应用界面中是否存在与翻页操作对应的目标按键。Step 202, judging whether there is a target button corresponding to the page turning operation in the application interface of the current application program.
该步骤中,上述应用程序为安装在移动终端上的应用软件,在运行应用软件后应用界面上通常设置有一个或者多个虚拟按键,该虚拟按键用于用户进行操作控制,本实施例中上述目标按键为用于控制应用界面进行翻页操作的按键。In this step, the above-mentioned application program is the application software installed on the mobile terminal. After running the application software, the application interface is usually provided with one or more virtual keys, which are used for the user to perform operation control. In this embodiment, the above-mentioned The target button is a button used to control the page turning operation of the application interface.
该目标按键可以为一个也可以为多个,在此不做进一步的限定,以下实施例中以目标按键为两个进行详细说明。There may be one or more target keys, which will not be further limited here. In the following embodiments, two target keys are used for detailed description.
例如可以为前进按键和返回按键等,还可以是进入主页面按键等。例如,一般应用都会在应用界面的左上角或者左下角安放返回按键和前进按键。在系统运行一个应用后,可以基于图像识别算法识别应用界面上的返回按键和前进按键。For example, it may be a forward key and a return key, and may also be a key for entering a main page. For example, in general applications, a return button and a forward button are placed in the upper left corner or the lower left corner of the application interface. After the system runs an application, it can recognize the return button and the forward button on the application interface based on the image recognition algorithm.
具体的,判断所述当前应用程序的应用界面中是否存在与翻页操作对应的目标按键的方式可以根据实际需要进行设置,例如,在本实施例中,上述步骤202可以包括:Specifically, the method of judging whether there is a target button corresponding to the page turning operation in the application interface of the current application program can be set according to actual needs. For example, in this embodiment, the above step 202 may include:
从所述当前应用程序的应用界面中提取位于预设位置的图像;Extracting an image located at a preset position from the application interface of the current application program;
判断所述图像是否满足第二预设条件,如果是,则确定所述当前应用程序的应用界面中存在与翻页操作对应的目标按键;否则,确定所述当前应用程序的应用界面中不存在与翻页操作对应的目标按键。Judging whether the image satisfies the second preset condition, if yes, then determining that there is a target button corresponding to the page turning operation in the application interface of the current application program; otherwise, determining that there is no such button in the application interface of the current application program The target key corresponding to the page turning operation.
该步骤中,可以提取当前页面中左上角和左下角预置区域(如典型位置)的图像,然后基于相关图像算法识别返回按键和前进按键。可选的,上述第二预设条件的内容可以根据实际需要进行设置,由于按键和周围存在较明显的色差,本实施例中,可以对提取的图像做一阶梯度分析等图像分析方法,根据箭头的朝向快速分析出是否存在返回按键和前进按键。即在本实施例中,上述第二预设条件可以包括箭头朝向等。In this step, the images of the preset areas (such as typical positions) in the upper left corner and the lower left corner of the current page can be extracted, and then the return button and the forward button can be identified based on the relevant image algorithm. Optionally, the content of the above-mentioned second preset condition can be set according to actual needs. Since there is a relatively obvious color difference between the button and its surroundings, in this embodiment, image analysis methods such as first-order gradient analysis can be performed on the extracted image, according to The direction of the arrow quickly analyzes whether there is a return button and a forward button. That is, in this embodiment, the above-mentioned second preset condition may include an arrow orientation and the like.
步骤203,当所述当前应用程序的应用界面中存在与翻页操作对应的目标按键,且所述移动终端的重力加速度满足第一预设条件时,根据所述目标按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。Step 203, when there is a target button corresponding to the page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the first preset condition, according to the position information of the target button, The page turning operation is performed on the application interface of the current application program running in the mobile terminal.
具体的,上述翻页操作的内容主要包括前进翻页和后退翻页,当然还可以设置后退到指定页面的翻页操作(如返回主页面)等等。上述第一预设条件的具体内容可以根据实际需要进行设置,例如,可以对每一种翻页操作设置至少一个条件,与此同时每一种翻页操作对应的条件不能重叠,从而避免误操作。Specifically, the content of the above-mentioned page turning operation mainly includes forward page turning and backward page turning, and of course, a page turning operation to return to a specified page (such as returning to the main page) and the like can also be set. The specific content of the above-mentioned first preset condition can be set according to actual needs, for example, at least one condition can be set for each page-turning operation, and at the same time, the conditions corresponding to each page-turning operation cannot overlap, thereby avoiding misuse .
以前进翻页操作和返回翻页操作为例,当识别到当前应用程序的应用界面存在前进按键,且上述重力加速度满足前进翻页操作对应的条件时,则会执行前进翻页操作;当识别到当前应用程序的应用界面存在返回按键,且上述重力加速度满足返回翻页操作对应的条件时,则会执行返回翻页操作。Taking forward page turning operation and back page turning operation as an example, when it is recognized that there is a forward button in the application interface of the current application program, and the above-mentioned acceleration of gravity satisfies the conditions corresponding to the forward page turning operation, the forward page turning operation will be performed; When there is a return button on the application interface of the current application program, and the above-mentioned acceleration of gravity satisfies the conditions corresponding to the return page-turning operation, the return-page-turning operation will be performed.
本实施例中,由于在增加了对应用界面上目标按键的识别,只有当应用界面存在目标按键时,方可执行相应的翻页操作,从而提高了翻页控制的准确性。In this embodiment, since the recognition of the target button on the application interface is added, the corresponding page turning operation can be performed only when there is a target button on the application interface, thereby improving the accuracy of page turning control.
可选的,对于如何处罚应用界面执行翻页操作的方式可以根据实际需要进行设置,例如在本实施例中,可以采用向屏幕驱动发送点击事件的方式,具体的,参照图3,上述根据所述目标按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作,包括:Optionally, how to punish the application interface for performing the page-turning operation can be set according to actual needs. For example, in this embodiment, a method of sending a click event to the screen driver can be used. Specifically, refer to FIG. 3 . The position information of the target button is used to perform a page turning operation on the application interface of the current application program running in the mobile terminal, including:
向所述移动终端的屏幕驱动发送点击事件,所述点击事件包括所述目标按键的位置信息,所述点击事件用于所述屏幕驱动触发所述当前应用执行翻页操作。Sending a click event to the screen driver of the mobile terminal, where the click event includes position information of the target button, and the click event is used for the screen driver to trigger the current application to perform a page turning operation.
该步骤中,在识别出目标按键后,可以确定目标按键的位置信息,该目标信息为屏幕坐标信息,例如可以包括行像素值和列像素值。本实施例中,可以调用相应的接口向屏幕驱动发送点击事件,该点击事件中包含目标按键的位置信息,从而相当于用户点击屏幕时,屏幕驱动检测到触摸屏被触摸位置的位置信息,以完成按键的触摸操作的控制。In this step, after the target key is identified, position information of the target key can be determined, and the target information is screen coordinate information, for example, can include row pixel values and column pixel values. In this embodiment, the corresponding interface can be called to send a click event to the screen driver, and the click event includes the position information of the target key, which is equivalent to when the user clicks the screen, the screen driver detects the position information of the touched position of the touch screen to complete Buttons for touch-operated controls.
进一步的,上述目标按键的数量可以为多个,以下将以两个为例进行详细说明。具体的,以上述目标按键包括前进按键和返回按键,上述第一预设条件包括第一子条件和第二子条件;上述步骤203包括:Further, there may be more than one target button, and two will be taken as an example for detailed description below. Specifically, the above-mentioned target button includes a forward button and a return button, and the above-mentioned first preset condition includes a first sub-condition and a second sub-condition; the above-mentioned step 203 includes:
当所述当前应用程序的应用界面中存在与前进翻页操作对应的前进按键,且所述移动终端的重力加速度满足第一子条件时,根据所述前进按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行前进翻页操作;When there is a forward key corresponding to the forward page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the first sub-condition, according to the position information of the forward key, the mobile terminal is The application interface of the current application program that is running in the application interface performs forward page turning operation;
当所述当前应用程序的应用界面中存在与返回翻页操作对应的返回按键,且所述移动终端的重力加速度满足第二子条件时,根据所述返回按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行返回翻页操作。When there is a return key corresponding to the return page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the second sub-condition, according to the position information of the return key, the mobile terminal The application interface of the current application program that is running in the application interface performs a page turning operation.
本实施例中,上述第一子条件和第二子条件的具体内容可以根据实际需要进行设置,具体的,不同的目标按键对应的子条件不同,例如上述第一子条件为所述重力加速度在X轴方向的加速度大于第一预设值,所述第一预设值为正数;所述第二子条件为所述重力加速度在X轴方向的加速度小于第二预设值,所述第二预设值为负数。In this embodiment, the specific content of the above-mentioned first sub-condition and the second sub-condition can be set according to actual needs. Specifically, different target keys correspond to different sub-conditions. For example, the above-mentioned first sub-condition is that the gravitational acceleration is The acceleration in the X-axis direction is greater than a first preset value, and the first preset value is a positive number; the second subcondition is that the acceleration of the gravitational acceleration in the X-axis direction is less than a second preset value, and the first preset value 2 The default value is a negative number.
其中,上述X轴是指现有的三轴加速度传感器设置的X轴的方向,与移动终端的摆放方向无关,例如在移动终端放置在水平面上,无论是竖向放置还是横向放置,三轴加速度传感器的X轴方向均保持不变。与此同时,还可以以Y轴方向上的加速度作为参考设置触发条件,在此不进行一一列举。Wherein, the above-mentioned X-axis refers to the direction of the X-axis provided by the existing three-axis acceleration sensor, which has nothing to do with the placement direction of the mobile terminal. The X-axis direction of the acceleration sensor remains unchanged. At the same time, the trigger conditions may also be set by using the acceleration in the Y-axis direction as a reference, which will not be listed here.
上述第一预设值和第二预设值的大小可以根据实际需要进行设置,例如可以将上述第一预设值和第二预设值的绝对值设置相等。具体的,该第一预设值和第二预设值的大小不能太小,避免一个小角度的翻转造成触发按键触摸操作。本实施例中,可以设置30°为倾斜角度值,对应的X方向加速度为4.9m/s2。即上述第一预设值可以为-4.9m/s2,第二预设值可以为4.9m/s2。The magnitudes of the above-mentioned first preset value and the second preset value can be set according to actual needs, for example, the absolute values of the above-mentioned first preset value and the second preset value can be set equal. Specifically, the size of the first preset value and the second preset value cannot be too small, so as to avoid triggering a button touch operation caused by a small-angle inversion. In this embodiment, 30° can be set as the tilt angle value, and the corresponding acceleration in the X direction is 4.9m/s2 . That is, the above-mentioned first preset value may be -4.9m/s2 , and the second preset value may be 4.9m/s2 .
以浏览网页为例进行说明,当用户在移动终端上通过浏览器客户端或者其他应用客户端进行网页浏览时,首先识别应用界面上的前进按键和返回按键,确定前进按键和返回按键对应位置信息,当检测到用户沿着Y轴逆时针倾斜达到X轴的加速度大于4.9m/s2,则向屏幕驱动发送第二点击事件,由屏幕区域将第二点击事件对应的第二目标位置发送给目标应用,从而由目标应用进行浏览页面的返回操作;当检测到用户沿着Y轴顺时针倾斜达到X轴的加速度小于-4.9m/s2,则向屏幕驱动发送第一点击事件,由屏幕区域将第一点击事件对应的第一目标位置发送给目标应用,从而由目标应用进行浏览页面的前进操作。Taking web browsing as an example, when a user browses a web page on a mobile terminal through a browser client or other application client, first identify the forward button and the return button on the application interface, and determine the corresponding position information of the forward button and the return button , when it is detected that the user tilts counterclockwise along the Y axis to reach an acceleration of the X axis greater than 4.9m/s2 , a second click event is sent to the screen driver, and the screen area sends the second target position corresponding to the second click event to The target application, so that the target application performs the return operation of browsing the page; when it is detected that the user tilts clockwise along the Y axis to reach an acceleration of the X axis less than -4.9m/s2 , then the first click event is sent to the screen driver, and the screen driver The region sends the first target position corresponding to the first click event to the target application, so that the target application performs a page browsing operation.
第三实施例third embodiment
参见图4,图4是本发明实施例提供的移动终端的结构图,能够实现第一至第二实施例中移动终端的操作方法的细节,并达到相同的效果。如图5所示,移动终端400包括获取模块401和翻页控制模块402,其中:Referring to FIG. 4, FIG. 4 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can realize details of the operation methods of the mobile terminal in the first to second embodiments, and achieve the same effect. As shown in Figure 5, the mobile terminal 400 includes an acquisition module 401 and a page turning control module 402, wherein:
获取模块401,用于获取所述移动终端的重力加速度;An acquisition module 401, configured to acquire the acceleration of gravity of the mobile terminal;
翻页控制模块402,用于若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。The page turning control module 402 is configured to perform a page turning operation on the application interface of the current application program running in the mobile terminal if the gravitational acceleration of the mobile terminal satisfies a first preset condition.
可选的,参照图5,上述移动终端500还包括:Optionally, referring to FIG. 5, the above-mentioned mobile terminal 500 further includes:
判断模块403,用于判断所述当前应用程序的应用界面中是否存在与翻页操作对应的目标按键;A judging module 403, configured to judge whether there is a target button corresponding to the page turning operation in the application interface of the current application program;
所述翻页控制模块402具体用于,当所述当前应用程序的应用界面中存在与翻页操作对应的目标按键,且所述移动终端的重力加速度满足第一预设条件时,根据所述目标按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。The page turning control module 402 is specifically configured to, when there is a target button corresponding to the page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies a first preset condition, according to the The position information of the target key is used to perform a page turning operation on the application interface of the current application program running in the mobile terminal.
可选的,所述翻页控制模块402具体用于,向所述移动终端的屏幕驱动发送点击事件,所述点击事件包括所述目标按键的位置信息,所述点击事件用于所述屏幕驱动触发所述当前应用执行翻页操作。Optionally, the page turning control module 402 is specifically configured to send a click event to the screen driver of the mobile terminal, the click event includes position information of the target button, and the click event is used for the screen driver Trigger the current application to perform a page turning operation.
可选的,参照图6,所述判断模块403包括:Optionally, referring to FIG. 6, the judging module 403 includes:
图像提取子模块4031,用于从所述当前应用程序的应用界面中提取位于预设位置的图像;An image extraction submodule 4031, configured to extract an image at a preset position from the application interface of the current application program;
判断子模块4032,用于判断所述图像是否满足第二预设条件,如果是,则确定所述当前应用程序的应用界面中存在与翻页操作对应的目标按键;否则,确定所述当前应用程序的应用界面中不存在与翻页操作对应的目标按键。The judging sub-module 4032 is used to judge whether the image satisfies the second preset condition, if yes, then determine that there is a target button corresponding to the page turning operation in the application interface of the current application; otherwise, determine that the current application There is no target button corresponding to the page turning operation in the application interface of the program.
可选的,所述目标按键包括前进按键和返回按键,所述第一预设条件包括第一子条件和第二子条件;Optionally, the target button includes a forward button and a return button, and the first preset condition includes a first subcondition and a second subcondition;
所述翻页控制模块402具体用于:The page turning control module 402 is specifically used for:
当所述当前应用程序的应用界面中存在与前进翻页操作对应的前进按键,且所述移动终端的重力加速度满足第一子条件时,根据所述前进按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行前进翻页操作;When there is a forward key corresponding to the forward page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the first sub-condition, according to the position information of the forward key, the mobile terminal is The application interface of the current application program that is running in the application interface performs forward page turning operation;
当所述当前应用程序的应用界面中存在与返回翻页操作对应的返回按键,且所述移动终端的重力加速度满足第二子条件时,根据所述返回按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行返回翻页操作。When there is a return key corresponding to the return page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the second sub-condition, according to the position information of the return key, the mobile terminal The application interface of the current application program that is running in the application interface performs a page turning operation.
可选的,所述第一子条件为所述重力加速度在X轴方向的加速度大于第一预设值,所述第一预设值为正数;所述第二子条件为所述重力加速度在X轴方向的加速度小于第二预设值,所述第二预设值为负数。Optionally, the first subcondition is that the acceleration of the gravitational acceleration in the X-axis direction is greater than a first preset value, and the first preset value is a positive number; the second subcondition is that the gravitational acceleration The acceleration in the X-axis direction is less than a second preset value, and the second preset value is a negative number.
这样,本发明实施例中,获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。由于通过检测重力加速度即可实现应用界面的翻页操作控制,从而无需用户进行点击触摸操作,因此可以降低移动终端中应用界面的翻页操作难度。In this way, in the embodiment of the present invention, the gravitational acceleration of the mobile terminal is obtained; if the gravitational acceleration of the mobile terminal satisfies the first preset condition, the application interface of the current application program running in the mobile terminal is turned. operate. Since the page-turning operation control of the application interface can be realized by detecting the acceleration of gravity, the user does not need to perform a click and touch operation, thus reducing the difficulty of the page-turning operation of the application interface in the mobile terminal.
第四实施例Fourth embodiment
参见图7,图7是本发明实施例提供的移动终端的结构图,能够实现第一至第二实施例中移动终端的操作方法的细节,并达到相同的效果。如图7所示,移动终端700包括:至少一个处理器701、存储器702、至少一个网络接口704和用户接口703。移动终端700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统705。Referring to FIG. 7, FIG. 7 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can realize details of the operation methods of the mobile terminal in the first to second embodiments, and achieve the same effect. As shown in FIG. 7 , a mobile terminal 700 includes: at least one processor 701 , a memory 702 , at least one network interface 704 and a user interface 703 . Various components in the mobile terminal 700 are coupled together through a bus system 705 . It can be understood that the bus system 705 is used to realize connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 705 in FIG. 7 .
其中,用户接口703可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。Wherein, the user interface 703 may include a display, a keyboard or a pointing device (for example, a mouse, a track ball (track ball), a touch panel or a touch screen, and the like.
可以理解,本发明实施例中的存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 702 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). Memory 702 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器702存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统7021和应用程序7022。In some implementations, the memory 702 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 7021 and an application program 7022 .
其中,操作系统7021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序7022中。Among them, the operating system 7021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 7022 .
在本发明实施例中,通过调用存储器702存储的程序或指令,具体的,可以是应用程序7022中存储的程序或指令,处理器701用于:获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application program 7022, the processor 701 is configured to: obtain the acceleration of gravity of the mobile terminal; if the The gravitational acceleration of the mobile terminal satisfies the first preset condition, and a page turning operation is performed on the application interface of the current application program running in the mobile terminal.
上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701 . The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software. The above-mentioned processor 701 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable Logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选的,所述处理器701还用于:判断所述当前应用程序的应用界面中是否存在与翻页操作对应的目标按键;当所述当前应用程序的应用界面中存在与翻页操作对应的目标按键,且所述移动终端的重力加速度满足第一预设条件时,根据所述目标按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。Optionally, the processor 701 is further configured to: determine whether there is a target button corresponding to the page turning operation in the application interface of the current application program; When the target key is selected, and the gravitational acceleration of the mobile terminal satisfies the first preset condition, according to the position information of the target key, the page turning operation is performed on the application interface of the current application program running in the mobile terminal.
可选的,所述处理器701还用于:向所述移动终端的屏幕驱动发送点击事件,所述点击事件包括所述目标按键的位置信息,所述点击事件用于所述屏幕驱动触发所述当前应用执行翻页操作。Optionally, the processor 701 is further configured to: send a click event to the screen driver of the mobile terminal, the click event includes position information of the target button, and the click event is used for the screen driver to trigger the The current application performs a page turning operation.
可选的,所述处理器701还用于:从所述当前应用程序的应用界面中提取位于预设位置的图像;判断所述图像是否满足第二预设条件,如果是,则确定所述当前应用程序的应用界面中存在与翻页操作对应的目标按键;否则,确定所述当前应用程序的应用界面中不存在与翻页操作对应的目标按键。Optionally, the processor 701 is further configured to: extract an image at a preset position from the application interface of the current application program; determine whether the image satisfies a second preset condition, and if so, determine the There is a target button corresponding to the page turning operation in the application interface of the current application program; otherwise, it is determined that there is no target button corresponding to the page turning operation in the application interface of the current application program.
可选的,所述目标按键包括前进按键和返回按键,所述第一预设条件包括第一子条件和第二子条件;所述处理器701还用于:当所述当前应用程序的应用界面中存在与前进翻页操作对应的前进按键,且所述移动终端的重力加速度满足第一子条件时,根据所述前进按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行前进翻页操作;Optionally, the target button includes a forward button and a back button, and the first preset condition includes a first subcondition and a second subcondition; the processor 701 is further configured to: when the application of the current application There is a forward key corresponding to the forward page turning operation in the interface, and when the gravitational acceleration of the mobile terminal satisfies the first subcondition, according to the position information of the forward key, the current application program running in the mobile terminal The application interface performs forward page turning operations;
当所述当前应用程序的应用界面中存在与返回翻页操作对应的返回按键,且所述移动终端的重力加速度满足第二子条件时,根据所述返回按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行返回翻页操作。When there is a return key corresponding to the return page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the second sub-condition, according to the position information of the return key, the mobile terminal The application interface of the current application program that is running in the application interface performs a page turning operation.
可选的,所述第一子条件为所述重力加速度在X轴方向的加速度大于第一预设值,所述第一预设值为正数;所述第二子条件为所述重力加速度在X轴方向的加速度小于第二预设值,所述第二预设值为负数。Optionally, the first subcondition is that the acceleration of the gravitational acceleration in the X-axis direction is greater than a first preset value, and the first preset value is a positive number; the second subcondition is that the gravitational acceleration The acceleration in the X-axis direction is less than a second preset value, and the second preset value is a negative number.
这样,本发明实施例中,获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。由于通过检测重力加速度即可实现应用界面的翻页操作控制,从而无需用户进行点击触摸操作,因此可以降低移动终端中应用界面的翻页操作难度。In this way, in the embodiment of the present invention, the gravitational acceleration of the mobile terminal is obtained; if the gravitational acceleration of the mobile terminal satisfies the first preset condition, the application interface of the current application program running in the mobile terminal is turned. operate. Since the page-turning operation control of the application interface can be realized by detecting the acceleration of gravity, the user does not need to perform a click and touch operation, thus reducing the difficulty of the page-turning operation of the application interface in the mobile terminal.
第五实施例fifth embodiment
请参阅图8,图8是本发明实施例提供的移动终端的结构图,能够实现第一至第二实施例中移动终端的操作方法的细节,并达到相同的效果。如图8所示,移动终端800包括射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、处理器850、音频电路860、通信模块870、和电源880,还包括摄像头(图中未示出)。Please refer to FIG. 8 . FIG. 8 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can realize details of the operation methods of the mobile terminal in the first to second embodiments and achieve the same effect. As shown in Figure 8, the mobile terminal 800 includes a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 850, an audio circuit 860, a communication module 870, and a power supply 880, and also includes a camera (not shown in the figure).
其中,输入单元830可用于接收用户输入的数字或字符信息,以及产生与移动终端800的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元830可以包括触控面板831。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器850,并能接收处理器850发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 830 can be used for receiving number or character information input by the user, and generating signal input related to the user setting and function control of the mobile terminal 800 . Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831 . The touch panel 831, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 831 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 831 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to to the processor 850, and can receive and execute commands sent by the processor 850. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831, the input unit 830 may also include other input devices 832, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元840可用于显示由用户输入的信息或提供给用户的信息以及移动终端800的各种菜单界面。显示单元840可包括显示面板841,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。Wherein, the display unit 840 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800 . The display unit 840 may include a display panel 841, and optionally, the display panel 841 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板831可以覆盖显示面板841,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器850以确定触摸事件的类型,随后处理器850根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 831 can cover the display panel 841 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 850 to determine the type of the touch event, and then the processor The 850 provides corresponding visual output on the touch display screen according to the type of touch event.
其中处理器850是移动终端800的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器821内的软件程序和/或模块,以及调用存储在第二存储器822内的数据,执行移动终端800的各种功能和处理数据,从而对移动终端800进行整体监控。可选的,处理器850可包括一个或多个处理单元。Wherein the processor 850 is the control center of the mobile terminal 800, which uses various interfaces and lines to connect the various parts of the entire mobile phone, and runs or executes the software programs and/or modules stored in the first memory 821, and calls the software programs and/or modules stored in the second memory 821. The data in the memory 822 executes various functions of the mobile terminal 800 and processes data, so as to monitor the mobile terminal 800 as a whole. Optionally, the processor 850 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器821内的软件程序和/或模块和/或该第二存储器822内的数据,处理器850用于:获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 821 and/or the data in the second memory 822, the processor 850 is configured to: obtain the acceleration of gravity of the mobile terminal; If the gravitational acceleration of the mobile terminal satisfies the first preset condition, a page turning operation is performed on the application interface of the current application program running in the mobile terminal.
可选的,所述处理器850还用于:判断所述当前应用程序的应用界面中是否存在与翻页操作对应的目标按键;当所述当前应用程序的应用界面中存在与翻页操作对应的目标按键,且所述移动终端的重力加速度满足第一预设条件时,根据所述目标按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。Optionally, the processor 850 is further configured to: determine whether there is a target button corresponding to the page turning operation in the application interface of the current application program; When the target key is selected, and the gravitational acceleration of the mobile terminal satisfies the first preset condition, according to the position information of the target key, the page turning operation is performed on the application interface of the current application program running in the mobile terminal.
可选的,所述处理器850还用于:向所述移动终端的屏幕驱动发送点击事件,所述点击事件包括所述目标按键的位置信息,所述点击事件用于所述屏幕驱动触发所述当前应用执行翻页操作。Optionally, the processor 850 is further configured to: send a click event to the screen driver of the mobile terminal, the click event includes position information of the target button, and the click event is used for the screen driver to trigger the The current application performs a page turning operation.
可选的,所述处理器850还用于:从所述当前应用程序的应用界面中提取位于预设位置的图像;判断所述图像是否满足第二预设条件,如果是,则确定所述当前应用程序的应用界面中存在与翻页操作对应的目标按键;否则,确定所述当前应用程序的应用界面中不存在与翻页操作对应的目标按键。Optionally, the processor 850 is further configured to: extract an image at a preset position from the application interface of the current application program; determine whether the image satisfies a second preset condition, and if so, determine the There is a target button corresponding to the page turning operation in the application interface of the current application program; otherwise, it is determined that there is no target button corresponding to the page turning operation in the application interface of the current application program.
可选的,所述目标按键包括前进按键和返回按键,所述第一预设条件包括第一子条件和第二子条件;所述处理器850还用于:当所述当前应用程序的应用界面中存在与前进翻页操作对应的前进按键,且所述移动终端的重力加速度满足第一子条件时,根据所述前进按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行前进翻页操作;Optionally, the target button includes a forward button and a back button, and the first preset condition includes a first subcondition and a second subcondition; the processor 850 is further configured to: when the application of the current application There is a forward key corresponding to the forward page turning operation in the interface, and when the gravitational acceleration of the mobile terminal satisfies the first subcondition, according to the position information of the forward key, the current application program running in the mobile terminal The application interface performs forward page turning operations;
当所述当前应用程序的应用界面中存在与返回翻页操作对应的返回按键,且所述移动终端的重力加速度满足第二子条件时,根据所述返回按键的位置信息,对所述移动终端中正在运行的当前应用程序的应用界面执行返回翻页操作。When there is a return key corresponding to the return page turning operation in the application interface of the current application program, and the acceleration of gravity of the mobile terminal satisfies the second sub-condition, according to the position information of the return key, the mobile terminal The application interface of the current application program that is running in the application interface performs a page turning operation.
可选的,所述第一子条件为所述重力加速度在X轴方向的加速度大于第一预设值,所述第一预设值为正数;所述第二子条件为所述重力加速度在X轴方向的加速度小于第二预设值,所述第二预设值为负数。Optionally, the first subcondition is that the acceleration of the gravitational acceleration in the X-axis direction is greater than a first preset value, and the first preset value is a positive number; the second subcondition is that the gravitational acceleration The acceleration in the X-axis direction is less than a second preset value, and the second preset value is a negative number.
这样,本发明实施例中,获取所述移动终端的重力加速度;若所述移动终端的重力加速度满足第一预设条件,对所述移动终端中正在运行的当前应用程序的应用界面执行翻页操作。由于通过检测重力加速度即可实现应用界面的翻页操作控制,从而无需用户进行点击触摸操作,因此可以降低移动终端中应用界面的翻页操作难度。In this way, in the embodiment of the present invention, the gravitational acceleration of the mobile terminal is obtained; if the gravitational acceleration of the mobile terminal satisfies the first preset condition, the application interface of the current application program running in the mobile terminal is turned. operate. Since the page-turning operation control of the application interface can be realized by detecting the acceleration of gravity, the user does not need to perform a click and touch operation, thus reducing the difficulty of the page-turning operation of the application interface in the mobile terminal.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710187256.1ACN106951258A (en) | 2017-03-27 | 2017-03-27 | The operating method and mobile terminal of a kind of mobile terminal |
| PCT/CN2018/079580WO2018177156A1 (en) | 2017-03-27 | 2018-03-20 | Method for operating mobile terminal, and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710187256.1ACN106951258A (en) | 2017-03-27 | 2017-03-27 | The operating method and mobile terminal of a kind of mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106951258Atrue CN106951258A (en) | 2017-07-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710187256.1APendingCN106951258A (en) | 2017-03-27 | 2017-03-27 | The operating method and mobile terminal of a kind of mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106951258A (en) |
| WO (1) | WO2018177156A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018177156A1 (en)* | 2017-03-27 | 2018-10-04 | 维沃移动通信有限公司 | Method for operating mobile terminal, and mobile terminal |
| CN110609563A (en)* | 2019-08-08 | 2019-12-24 | 深圳慧源创新科技有限公司 | Unmanned aerial vehicle overturning control method based on control end accelerometer overturning detection |
| CN111194435A (en)* | 2017-09-29 | 2020-05-22 | 深圳传音通讯有限公司 | Interface switching method, device, terminal and computer readable medium |
| CN112346970A (en)* | 2020-10-30 | 2021-02-09 | 长沙市到家悠享网络科技有限公司 | Test method, device and storage medium for installation-free application code |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130074015A1 (en)* | 2011-09-20 | 2013-03-21 | Paul William Watkinson | System to scroll text on a small display screen |
| CN103049193A (en)* | 2012-12-26 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for realizing page turning of web pages by pressing keys |
| CN103076880A (en)* | 2012-12-28 | 2013-05-01 | 深圳市金立通信设备有限公司 | Method and terminal for controlling flipping-over of page when page browsed by terminal |
| CN103853481A (en)* | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for simulating touch screen mobile terminal keys |
| CN103941875A (en)* | 2014-05-05 | 2014-07-23 | 成都理想境界科技有限公司 | Page turning method and device and terminal |
| CN104461304A (en)* | 2014-12-31 | 2015-03-25 | 小米科技有限责任公司 | Application control method and device |
| CN104714643A (en)* | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | Method and system for achieving touch screen stimulation through sensor and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102043560B (en)* | 2009-10-20 | 2015-04-01 | 腾讯科技(深圳)有限公司 | Method and device for realizing electronic document page turning |
| CN106354279A (en)* | 2016-09-22 | 2017-01-25 | 上海传英信息技术有限公司 | Mobile terminal and page turning method based on same |
| CN106951258A (en)* | 2017-03-27 | 2017-07-14 | 维沃移动通信有限公司 | The operating method and mobile terminal of a kind of mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130074015A1 (en)* | 2011-09-20 | 2013-03-21 | Paul William Watkinson | System to scroll text on a small display screen |
| CN103853481A (en)* | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for simulating touch screen mobile terminal keys |
| CN103049193A (en)* | 2012-12-26 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for realizing page turning of web pages by pressing keys |
| CN103076880A (en)* | 2012-12-28 | 2013-05-01 | 深圳市金立通信设备有限公司 | Method and terminal for controlling flipping-over of page when page browsed by terminal |
| CN103941875A (en)* | 2014-05-05 | 2014-07-23 | 成都理想境界科技有限公司 | Page turning method and device and terminal |
| CN104461304A (en)* | 2014-12-31 | 2015-03-25 | 小米科技有限责任公司 | Application control method and device |
| CN104714643A (en)* | 2015-03-04 | 2015-06-17 | 惠州Tcl移动通信有限公司 | Method and system for achieving touch screen stimulation through sensor and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018177156A1 (en)* | 2017-03-27 | 2018-10-04 | 维沃移动通信有限公司 | Method for operating mobile terminal, and mobile terminal |
| CN111194435A (en)* | 2017-09-29 | 2020-05-22 | 深圳传音通讯有限公司 | Interface switching method, device, terminal and computer readable medium |
| CN111194435B (en)* | 2017-09-29 | 2023-08-29 | 深圳传音通讯有限公司 | Interface switching method, device, terminal and computer readable medium |
| CN110609563A (en)* | 2019-08-08 | 2019-12-24 | 深圳慧源创新科技有限公司 | Unmanned aerial vehicle overturning control method based on control end accelerometer overturning detection |
| CN112346970A (en)* | 2020-10-30 | 2021-02-09 | 长沙市到家悠享网络科技有限公司 | Test method, device and storage medium for installation-free application code |
| CN112346970B (en)* | 2020-10-30 | 2023-06-06 | 长沙市到家悠享网络科技有限公司 | Method, device and storage medium for testing installation-free application code |
| Publication number | Publication date |
|---|---|
| WO2018177156A1 (en) | 2018-10-04 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105824559B (en) | False touch recognition and processing method and electronic equipment | |
| CN107506109A (en) | A kind of method and mobile terminal for starting application program | |
| CN107678641A (en) | A kind of method and mobile terminal into target display interface | |
| CN106250754B (en) | A kind of control method and mobile terminal of application program | |
| CN106126039A (en) | Operation interface display method and mobile terminal | |
| CN106648416A (en) | Method for starting application and mobile terminal | |
| CN106227488A (en) | The display packing of a kind of reminder message and mobile terminal | |
| CN107562335B (en) | Display area adjusting method and mobile terminal | |
| CN106415472A (en) | A gesture control method, device, terminal device and storage medium | |
| CN106951174A (en) | The method of adjustment and mobile terminal of a kind of dummy keyboard | |
| CN107333067A (en) | Camera control method and terminal | |
| CN106371719A (en) | Screen rotation control method and mobile terminal | |
| CN106445235A (en) | Touch starting position identification method and mobile terminal | |
| CN106527906A (en) | Picture capture method and mobile terminal | |
| CN106911897A (en) | A kind of determination method and mobile terminal for shooting focus | |
| CN106940597A (en) | A kind of camera starts control method and mobile terminal | |
| CN106210343A (en) | The method of adjustment of a kind of mobile terminal screen brightness and mobile terminal | |
| CN106951258A (en) | The operating method and mobile terminal of a kind of mobile terminal | |
| CN106970752A (en) | A kind of screenshotss method and mobile terminal | |
| CN106873874A (en) | A kind of application program open method and mobile terminal | |
| CN107346202A (en) | A kind of image pickup method and mobile terminal | |
| CN106445299A (en) | A control method and mobile terminal | |
| CN106371693A (en) | Navigation information display method and mobile terminal | |
| CN106371595B (en) | Method for calling out message notification bar and mobile terminal | |
| CN107368249A (en) | A kind of touch control operation recognition methods, device and mobile terminal |
| 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 | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right | Effective date of registration:20171107 Address after:283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant after:VIVO MOBILE COMMUNICATION CO., LTD. Applicant after:Wewo Mobile Communication Co. Ltd. Beijing branch Address before:283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant before:VIVO MOBILE COMMUNICATION CO., LTD. | |
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170714 |