CN103885685A - Method and device for processing pages - Google Patents

Method and device for processing pages Download PDF

Info

Publication number
CN103885685A
CN103885685A CN201210566605.8A CN201210566605A CN103885685A CN 103885685 A CN103885685 A CN 103885685A CN 201210566605 A CN201210566605 A CN 201210566605A CN 103885685 A CN103885685 A CN 103885685A
Authority
CN
China
Prior art keywords
gravity sensing
current page
event
moving distance
gravity
Prior art date
Application number
CN201210566605.8A
Other languages
Chinese (zh)
Other versions
CN103885685B (en
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 腾讯科技(深圳)有限公司
Priority to CN201210566605.8A priority Critical patent/CN103885685B/en
Publication of CN103885685A publication Critical patent/CN103885685A/en
Application granted granted Critical
Publication of CN103885685B publication Critical patent/CN103885685B/en

Links

Abstract

The invention discloses a method and a device for processing pages, and belongs to the field of terminal equipment. The method includes acquiring gravity sensing events when the current pages are displayed; determining processing modes for the current pages according to displacement distances of the gravity sensing events; processing the current pages according to the acquired processing modes. The method and the device have the advantages that the processing modes for the current pages are determined according to the displacement distances of the gravity sensing events, and accordingly page operation can be diversified, can be effectively simplified and is intelligent.

Description

页面处理方法和装置 Page processing method and apparatus

技术领域 FIELD

[0001] 本发明涉及终端设备领域,特别涉及一种页面处理方法和装置。 [0001] The present invention relates to the field of the terminal device, particularly to a sheet processing apparatus and method.

背景技术 Background technique

[0002]目前绝大多数智能手机和平板电脑等终端设备均可以进行各种页面的浏览,如网页、电子书、图片、文本文档等。 [0002] At present, most smart phones and tablet PCs and other terminal devices can browse various pages, such as Web pages, e-books, pictures, text documents and so on. 各种各样的页面给用户带来全新的视觉体验,同时也丰富了终端设备的相应的功能。 Various pages giving users a new visual experience, but also enrich the respective functions of the terminal device.

[0003] 而大多数终端设备在对显示页面进行处理时,可通过用户的触摸操作触发,如用户需要切换页面时,可通过手指在屏幕上滑动,触发页面的切换,将切换后的页面展现给用户。 [0003] Most of the terminal device when a page display processing, can be triggered by a user's touch operation, such as when the user needs to switch the page, the screen can be slid by a finger, the trigger switch the page, the page after the switching exhibit to the user.

[0004] 在实现本发明的过程中,发明人发现现有技术至少存在以下问题: [0004] During the implementation of the present invention, the inventors found that the prior art has at least the following problems:

[0005] 终端设备进行页面处理时,只能通过用户在触摸屏上的上、下、左、右滑动来实现页面的切换,方法单一,难以实现页面处理的多样化。 When [0005] the terminal device page to be processed only by the user on the touch screen, down, left, right sliding switch to realize a page, a single method, the page processing is difficult to achieve diversification.

发明内容 SUMMARY

[0006] 为了解决现有技术的问题,本发明实施例提供了一种页面处理方法和装置。 [0006] In order to solve the problems of the prior art, the present invention provides a sheet processing method and apparatus. 所述技术方案如下: The technical solutions are as follows:

[0007] —方面,提供了一种页面处理方法,所述方法包括: [0007] - aspect, there is provided a method of processing a page, the method comprising:

[0008] 在显示当前页面时,获知重力感应事件; [0008] When the current page, learn gravity sensing event;

[0009] 根据所述重力感应事件的移动距离,确定对当前页面的处理方式; [0009] The moving distance of the gravity sensing event, determine the handling of the current page;

[0010] 根据获取的处理方式对所述当前页面进行处理。 [0010] processing the current page processing according to the acquired mode.

[0011] 根据所述重力感应事件的移动距离,确定对当前页面的处理方式,包括: [0011] The moving distance of the gravity sensing event, determine the handling of the current page, comprising:

[0012] 根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0012] The moving distance of the gravity sensing event, determines whether the erroneous event gravity sensor, the gravity sensor is determined when the event is not an erroneous operation, according to a moving distance of the gravity sensing event, the determination of the current page approach.

[0013] 根据所述重力感应事件的移动距离,确定对当前页面的处理方式,包括: [0013] The moving distance of the gravity sensing event, determine the handling of the current page, comprising:

[0014] 判断所述重力感应事件的移动距离是否满足第一预设条件,当满足所述第一预设条件,则确定对当前页面进行切换。 [0014] Analyzing the gravity sensing movement distance of the event satisfies a first predetermined condition, when the first predetermined condition satisfied, it is determined that the switching of the current page.

[0015] 当满足所述第一预设条件,则确定对当前页面进行切换,包括: [0015] When the first predetermined condition satisfied, it is determined that the current page to be switched, comprising:

[0016] 当满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 [0016] When the first preset condition is satisfied, according to the moving direction of the gravity sensor event, the current page is determined corresponding to the moving direction is switched.

[0017] 判断所述重力感应事件的移动距离是否满足第一预设条件,之后包括: [0017] Analyzing the gravity sensing movement distance of the event satisfies a first predetermined condition, after comprising:

[0018] 当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; [0018] When the movement distance of the gravity sensing event does not satisfy the first predetermined condition, the current page is determined not to be treated;

[0019] 或,判断所述重力感应事件的移动距离是否满足第二预设条件; [0019] or, said second preset condition is determined gravity sensing event meets a moving distance;

[0020] 所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 [0020] The moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, the moving distance of the gravity sensing event does not satisfy the second predetermined condition, it is determined that the current does not page for processing.

[0021] 所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,包括: [0021] The moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, comprising:

[0022] 所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 [0022] The moving distance of the gravity sensing event meets a second preset condition, according to the moving direction of the gravity sensor and the moving distance of the event, the determination of the current page corresponding sliding.

[0023] 另一方面,提供了一种页面处理装置,所述装置包括: [0023] In another aspect, there is provided a sheet processing apparatus, said apparatus comprising:

[0024] 获知模块,用于在显示当前页面时,获知重力感应事件; [0024] The learning module, configured to display the current page, known gravity sensing event;

[0025] 确定模块,用于根据所述重力感应事件的移动距离,确定对当前页面的处理方式; [0025] The determining module, according to a moving distance of the gravity sensing event, determine the handling of the current page;

[0026] 处理模块,用于根据获取的处理方式对所述当前页面进行处理。 [0026] The processing module, for processing the current page processing according to the acquired mode.

[0027] 所述装置还包括: The [0027] apparatus further comprising:

[0028] 误操作判断模块,用于根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,触发所述确定模块根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0028] The malfunction determining module, according to a moving distance of the gravity sensing event, determines whether the erroneous event gravity sensor, the gravity sensor is determined when the event is not an erroneous operation, according to trigger the determining module a moving distance of said gravity sensing event, determine the handling of the current page.

[0029] 所述确定模块包括:第一判断单元和第一确定单元, [0029] The determining module comprises: a first determining unit and a first determination unit,

[0030] 所述第一判断单元,用于判断所述重力感应事件的移动距离是否满足第一预设条件; [0030] The first determination unit configured to determine the movement distance of the gravity sensing event meets a first preset condition;

[0031] 所述第一确定单元,用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件,则确定对当前页面进行切换。 [0031] The first determining unit, configured to, when the first determining unit moving distance of the gravity sensing event satisfies the first predetermined condition is determined, it is determined that the switching of the current page.

[0032] 所述第一确定单元具体用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 [0032] In particular the first determining unit when the first determination unit determines that the moving distance of the gravity sensing event of the first preset condition is satisfied, according to the moving direction of the gravity sensing event, the determination of current page corresponding to the moving direction switching.

[0033] 所述确定模块还包括:第二确定单元,用于当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; [0033] The determining module further comprises: a second determining unit, configured to, when the moving distance of the gravity sensing event does not satisfy the first predetermined condition, the current page is determined not to be treated;

[0034]或, [0034] or,

[0035] 所述确定模块还包括:第二判断单元和第二确定单元, [0035] The determining module further comprises: a second determination unit and a second determination unit,

[0036] 所述第二判断单元,用于判断所述重力感应事件的移动距离是否满足第二预设条件; [0036] The second determination unit for determining a moving distance of the gravity sensing event is the second predetermined condition is satisfied;

[0037] 所述第二确定单元,用于当所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 [0037] The second determination unit when a moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, the moving distance of the gravity sensor does not satisfy a second event preset condition, the current page is determined not to be processed.

[0038] 所述第二确定单元具体用于所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 [0038] The second determining unit is configured moving distance of the gravity sensing event meets a second preset condition, according to the moving direction of the gravity sensor and the moving distance of the event, the determination of the current page corresponding sliding .

[0039] 本发明提供了一种页面处理方法和装置,通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 [0039] The present invention provides a sheet processing method and apparatus, by displaying the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; treatment according to the obtained processing of the current page. 采用本发明提供的技术方案,根据重力感应事件的移动距离,确定当前页面的处理方式,实现了页面操作的多样化且有效简化了对页面的操作,使得操作更加智能化。 Using the technical solution provided by the invention, according to a moving distance of the gravity sensing event, the determination processing of the current page, the page have diversified operations and simplify the operation of the page, making the operation more intelligent. 附图说明 BRIEF DESCRIPTION

[0040] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, as briefly described in the introduction to the accompanying drawings required for use in describing the embodiments. Apparently, the drawings in the following description are only some of the present invention. embodiments, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0041] 图1a是本发明实施例中提供的一种页面处理方法流程图; [0041] Figure 1a is a page processing method embodiment provided in the embodiment of the present invention, a flow chart;

[0042] 图1b是本发明实施例中提供的一种终端设备的坐标系示意图; [0042] Figure 1b is a schematic diagram of a coordinate system provided in the terminal device of the embodiment of the present invention;

[0043] 图2是本发明实施例中提供的一种页面处理方法流程图; [0043] FIG. 2 is a page processing method embodiment provided in the embodiment of the present invention, a flow chart;

[0044] 图3是本发明实施例中提供的一种页面处理方法流程图; [0044] FIG. 3 is a page processing method embodiment provided in the embodiment of the present invention, a flow chart;

[0045] 图4是本发明实施例中提供的一种页面处理装置示意图。 [0045] FIG. 4 is a page in the embodiment provided apparatus for processing a schematic view of an embodiment of the present invention.

具体实施方式 Detailed ways

[0046] 为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。 [0046] To make the objectives, technical solutions, and advantages of the present invention will become apparent in conjunction with the accompanying drawings of the following embodiments of the present invention will be described in further detail.

[0047] 图1a是本发明实施例中提供的一种页面处理方法流程图,参见图la,该方法包括: [0047] Figure 1a is a flowchart of a page processing method provided in the embodiment of the present invention, referring to FIG La, the method comprising:

[0048] 101:在显示当前页面时,获知重力感应事件; [0048] 101: When the current page, learn gravity sensing event;

[0049] 其中,当前页面是终端设备上当前正在显示的页面,该页面可以是图片、电子书、网页、文本文档、信息等形式的页面。 [0049] where the current page is the page on the terminal device is currently being displayed, the page may be in the form of pictures, books, web pages, text documents, information and other pages.

[0050] 其中,重力感应事件可以通过终端设备内置的重力传感器获知,重力传感器是将运动或重力转换为电信号的传感器,主要用于倾斜角、惯性力、冲击及震动等参数的测量。 [0050] wherein, gravity sensing events built by the terminal device is known a gravity sensor, a gravity sensor or a gravity movement is converted to an electric signal, mainly used to measure parameters of inclination angle, inertial force, shock and vibration. 另外,该重力传感器还可以由加速度传感器、陀螺仪或三轴磁阻传感器等替代,只需获知当前重力感应事件的移动距离即可。 Further, the gravity sensor may also be replaced by an acceleration sensor, a gyro or a three-axis magnetoresistive sensor, known only to the current distance of a mobile gravity sensing event.

[0051] 102:根据所述重力感应事件的移动距离,确定对当前页面的处理方式; [0051] 102: The movement distance of the gravity sensing event, determine the handling of the current page;

[0052] 在本发明实施例中的处理方式,包括但不限于对页面的切换、滑动等。 [0052] In the treatment in the embodiment of the present invention, including but not limited to the page switching, sliding and the like.

[0053] 其中,页面的切换可以是向前切换,或向后切换,而页面的滑动可以是页面向上滑动、向下滑动、向左滑动或向右滑动。 [0053] wherein, page switching may be switched forward or backward to switch, slide page may be a page slides upwards, slide down, left or right sliding slide.

[0054] 103:根据获取的处理方式对所述当前页面进行处理。 [0054] 103: current page is processed according to the processing mode acquired.

[0055] 本发明实施例通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 EXAMPLES [0055] The present invention, when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; processing the current page processing according to the acquired mode. 采用本发明实施例提供的技术方案,根据重力感应事件的移动距离,确定当前页面的处理方式,实现了页面操作的多样化且有效简化了对页面的操作,使得操作更加智能化。 According to the present invention, the technical solution provided in the embodiment, a moving distance of the gravity sensing event, the determination processing of the current page, the page have diversified operations and simplify the operation of the page, making the operation more intelligent.

[0056] 可选地,在图1a所示实施例的技术方案的基础上,步骤102“根据所述重力感应事件的移动距离,确定对当前页面的处理方式”包括:根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0056] Alternatively, on the basis of the embodiment shown in Figure 1a aspect of the embodiment, step 102 "The moving distance of the gravity sensing event, determine the handling of the current page" comprising: a gravity sensing event in accordance with the moving distance of the gravity sensor determines whether the erroneous event, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, determine the handling of the current page.

[0057] 由于用户在使用终端设备过程中,难免会出现轻微的摇晃,所以为了避免这些操作带来的终端设备的误操作,因此,需要根据重力感应事件的移动距离,对该重力感应事件是否为误操作进行判断,当确定所述重力感应事件是误操作时,不对当前页面进行处理,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0057] Since the user terminal device during use, there will inevitably be a slight shaking, so to avoid erroneous operations caused by these terminal equipment, therefore, it requires a moving distance of the gravity sensing event, whether the gravity sensing event judgment is erroneous, when it is determined that the event is a gravity sensor malfunction, not the current page processing, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, the determination of the current page approach.

[0058] 在本实施例中,该重力感应事件的移动距离可以由终端设备对重力感应事件获得的电信号进行转化得到。 [0058] In the present embodiment, a moving distance of the gravity sensing electrical events gravity sensing event can be obtained by the terminal device converted to. 当用户左右晃动终端设备时,重力感应事件将获得的电信号转化成X方向的移动距离,当用户上下晃动终端设备时,重力感应事件将获得的电信号转化成I方向的移动距离。 When the user terminal apparatus from side to side, gravity sensing electrical events obtained is converted into the X-direction moving distance when the user shakes the terminal equipment down, gravity sensing electrical events I obtained is converted into the direction of the moving distance. 本实施例中,以终端设备的中心为坐标原点建立直角坐标系,图1b是本发明实施例中提供的一种终端设备的坐标系示意图,当用户向左晃动终端设备时,此时获得X方向上的移动距离,且移动方向为沿X的负半轴;当用户向右晃动终端设备时,此时获得X方向上的移动距离,且移动方向为沿X的正半轴;当用户向上晃动终端设备时,此时获得y方向上的移动距离,且移动方向为沿y的正半轴;当用户向下晃动终端设备时,此时获得y方向上的移动距离,且移动方向为沿y的负半轴。 In this embodiment, the center of the origin of coordinates terminal device establish a Cartesian coordinate system, the coordinate system of FIG. 1b is a schematic diagram of a terminal device provided in the embodiment of the present invention, when the user shakes the terminal equipment to the left, this time to obtain X moving distance in the direction, and the movement axle in the X direction is negative; the equipment when the user shakes the terminal rightward, a moving distance obtained at this time in the X direction, and moved in the X direction to the positive axis; upward when the user when vibration terminal device, the moving distance obtained at this time in the y direction, and movement in the y-direction of the positive axis; when the user shakes the terminal equipment down, a moving distance obtained at this time in the y direction, and along the moving direction the negative axis of y.

[0059] 具体地,该判断可通过将重力感应事件的移动距离和第一预设阈值进行比较,如果重力感应事件的移动距离小于第一预设阈值,则认为用户属于误操作,终端设备将不对当前页面进行处理;如果重力感应事件的移动距离大于等于第一预设阈值,则认为用户不是误操作,终端设备将根据重力感应事件的移动距离进一步判断终端设备如何处理当前页面。 [0059] Specifically, the moving distance is determined by sensing the gravity of the event and a first predetermined threshold value, if the moving distance of the gravity sensing event is less than a first preset threshold, the user is considered part of misuse, the terminal device not the current page is processed; gravity sensing event if the movement distance is not less than a first predetermined threshold, the user is considered not misuse, the terminal further determines how to handle the terminal device according to a moving distance of the current page gravity sensing event. 优选地,第一预设阈值根据当前页面在移动方向上的长度进行设置,如该第一预设阈值可设置为当前页面在移动方向上的长度的10%。 Preferably, the first predetermined threshold value is set according to the current page length in the moving direction, if the first preset threshold may be set to 10% of the length of the current page in the moving direction.

[0060] 可选地,在图1a所示实施例的技术方案的基础上,步骤102“根据所述重力感应事件的移动距离,确定对当前页面的处理方式”,包括步骤102a: [0060] Alternatively, on the basis of the technical solution of the embodiment shown in FIG 1a, the Step 102 "The moving distance of the gravity sensing event, determine the handling of the current page", comprising the steps of 102a:

[0061] 102a、判断所述重力感应事件的移动距离是否满足第一预设条件,当满足所述第一预设条件,则确定对当前页面进行切换。 [0061] 102a, determines the movement distance of the gravity sensing event satisfies a first predetermined condition, when the first predetermined condition satisfied, it is determined that the switching of the current page.

[0062] 其中,第一预设条件是指重力感应事件的移动距离大于第二预设阈值,优选地,第二预设阈值根据当前页面在移动方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的70%。 [0062] wherein the first predetermined condition is that the moving distance of the gravity sensing event is greater than a second predetermined threshold value, preferably, the second predetermined threshold value is set according to the moving direction of the current page in length, as may be set to the current 70% of the length of the page in the moving direction. 当重力感应事件满足第一预设条件时,此时,可以确定终端设备处理当前页面,当重力感应事件不满足第一预设条件时,不对当前页面进行处理。 When the gravity sensing event satisfies a first predetermined condition, this time, the terminal device may determine the current page processing, gravity sensing when a first predetermined event does not satisfy the condition, no current page processing.

[0063] 进一步可选地,在图1a所示实施例的技术方案的基础上,步骤102a中的“当满足所述第一预设条件,则确定对当前页面进行切换”,包括:当满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 [0063] Further alternatively, on the basis of the technical solution of the embodiment shown in FIG 1a in the embodiment, in step 102a, "when the first predetermined condition satisfied, it is determined that the switching of the current page", comprising: when satisfied the first predetermined condition, according to the moving direction of the gravity sensor event, the current page is determined corresponding to the moving direction is switched.

[0064] 具体地,当重力感应事件的移动方向为沿X轴方向时,对当前页面进行切换分两种情况:(1)当满足所述第一预设条件时,若此时重力感应事件的移动方向为沿X的负半轴,即用户在使用终端设备时向左晃动,终端设备将切换到当前页面的下一页并进行显示; [0064] Specifically, when the moving direction of gravity sensing events along the X-axis direction, switching of the current page two cases: (1) when said first predetermined condition is satisfied, if the gravity sensing event at this time along the moving direction X of the axle negative, i.e. when the user left shaking using the terminal device, the terminal device will switch to the next page and a current page display;

(2)当满足所述第一预设条件时,若此时重力感应事件的移动方向为沿X的正半轴,即用户在使用终端设备时向右晃动,终端设备将切换到当前页面的上一页并进行显示。 (2) when the first preset condition is satisfied, if the direction of gravity sensing event where the mobile is in the positive axis X, i.e., the user shaking the right when using the terminal device, the terminal device will switch to the current page Previous and displayed.

[0065] 当重力感应事件的移动方向为沿y轴方向时,对当前页面进行切换分两种情况:(O当满足所述第一预设条件时,若此时重力感应事件的移动方向为沿y的正半轴,即用户在使用终端设备时向上晃动,终端设备将切换到当前页面的下一页并进行显示;(2)当满足所述第一预设条件时,若此时重力感应事件的移动方向为沿y的负半轴,即用户在使用终端设备时向下晃动,终端设备将切换到当前页面的上一页并进行显示。[0066] 在本发明实施例中,不对页面的显示形式为横向或纵向属性进行限定,对于页面来说,可对其晃动方向以及其页面的切换方式进行预设,如,对于横向显示的页面来说,可将其切换方式设置为通过左右晃动进行切换。 [0065] When the moving direction of gravity sensing event when y-axis direction, switching of the current page is divided into two cases: when (O satisfied when the first predetermined condition, when the direction of gravity sensing event where the mobile is along the positive axis y, i.e. upwards in the use of the user shaking the terminal device, the terminal device will switch to the next page and a current page display; (2) when said first predetermined condition is satisfied, if the case of gravity event sensing movement direction along the y axle is negative, i.e., downward in the use of the user shaking the terminal device, the terminal device will switch to the previous and the current page displayed. [0066] in the embodiment of the present invention, not page is displayed in the form of a transverse or longitudinal attributes defined for the page, it can be preset direction and its fluctuation mode switching of its pages, e.g., lateral to the page is displayed, switching can be provided through switching from side to side.

[0067] 进一步可选地,在图1a所示实施例的技术方案的基础上,步骤102a中的“判断所述重力感应事件的移动距离是否满足第一预设条件”之后,包括步骤(一)或(二): After [0067] Further alternatively, on the basis of the technical solution of the embodiment shown in FIG 1a in the embodiment, in step 102a "determines the movement distance of the gravity sensing event satisfies a first predetermined condition", comprising the steps of (a ) or (ii):

[0068](一)当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; [0068] (a) when the movement distance of the gravity sensing event does not satisfy the first predetermined condition, the current page is determined not to be treated;

[0069] 由于用户在使用终端设备过程中,难免会出现轻微的摇晃,所以为了避免将这些操作带来的终端设备的误操作,因此,需要根据重力感应事件的移动距离,对该重力感应事件是否为误操作进行判断,当确定所述重力感应事件是误操作时,不对当前页面进行处理,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0069] Since the user using the terminal device in the process, there will inevitably be a slight shaking, so in order to avoid misuse of the terminal apparatus will bring these operations, therefore, requires a moving distance of the gravity sensing event, the gravity sensing event to judge whether the erroneous operation is determined when the gravity sensor is erroneous event, no current page processing, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, the determination of the current handling of the page.

[0070] (二)判断所述重力感应事件的移动距离是否满足第二预设条件;所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 [0070] (b) determining a moving distance of the gravity sensing event meets a second preset condition; moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, the gravity movement distance sensor does not satisfy a second predetermined condition of the event, the current page is determined not to be processed.

[0071] 其中,第二预设条件是指重力感应事件的移动距离大于第一预设值阈值,且小于第二预设阈值。 [0071] wherein the second predetermined condition is that a moving distance of the gravity sensing event is greater than a first predetermined threshold value and less than a second predetermined threshold value. 当重力感应事件满足第二预设条件时,可以确定终端设备将要滑动当前页面,当重力感应事件不满足第二预设条件时,则确定不对当前页面进行处理。 When the gravity sensing event meets a second preset condition, the terminal device may be determined to be the current page slide, gravity sensing event when a second preset condition is not satisfied, it is determined that the current page are not processed.

[0072] 进一步可选地,在图1a所示实施例的技术方案的基础上,该步骤(二)中的“所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动”,包括:所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 [0072] Further alternatively, on the basis of the technical solution of the embodiment shown in FIG 1a, the step (b) in the "moving distance of the gravity sensing event meets a second preset condition, determining the current page slip ", comprising: a moving distance of the gravity sensing event meets a second preset condition, according to the moving direction of the gravity sensor and the moving distance of the event, the determination of the current page corresponding sliding.

[0073] 在本发明实施例中,相应的滑动是指与该移动距离和移动方向相应的滑动,根据重力感应事件的移动方向确定当前页面的滑动方向,并根据重力感应事件的移动距离,确定当前页面的滑动距离,确定对当前页面进行该滑动距离的滑动。 [0073] In the embodiment of the present invention, the respective sliding means corresponding to the movement distance and the movement direction of the slide, determines the sliding direction of the current page in accordance with the moving direction of gravity sensing event, and in accordance with the moving distance gravity sensing event, is determined sliding distance of the current page, the current page is determined on the sliding distance of the slide.

[0074] 其中,根据重力感应事件的移动方向确定当前页面的滑动方向,包括以下的情况:若重力感应事件的移动方向为沿X轴,对当前浏览的页面进行滑动分两种情况:(I)若此时重力感应事件的移动方向为沿X的正半轴,即用户在使用终端设备时向右晃动,终端设备将按照计算得到的滑动的距离进行相应的右滑,使用户看到当前页面右面的内容;(2)若此时重力感应事件的移动方向为沿X的负半轴,即用户在使用终端设备时向左晃动,终端设备将按照计算得到的滑动的距离进行相应的左滑,使用户看到当前页面左面的内容。 [0074] wherein the sliding direction of the current page is determined according to the direction of gravity sensing event, comprising the following cases: when the moving direction of the gravity sensor along the X axis is incident on the current page slides two cases: (the I ) at this time, if the movement direction of gravity sensing event along the positive axis X, i.e., the user shaking the right when using the terminal device, the terminal device corresponding to the right slide a sliding distance calculated, so that the user see the current right page content; (2) at this time, if the movement direction of gravity sensing events along the X axle negative, i.e. when the user left shaking using the terminal device, the terminal device in accordance with the corresponding left sliding distance calculated slip, allowing users to see the contents of the current page on the left.

[0075] 若重力感应事件的移动方向为沿y轴,对当前浏览的页面进行滑动分两种情况:(I)若此时重力感应事件的移动方向为沿y的正半轴,即用户在使用终端设备时向上晃动,终端设备将按照计算得到的滑动的距离进行相应的上滑,使用户看到当前页面下面的内容;(2)若此时重力感应事件的移动方向为沿y的负半轴,即用户在使用终端设备时向下晃动,终端设备将按照计算得到的滑动的距离进行相应的下滑,使用户看到当前页面上面的内容。 [0075] When the moving direction of gravity sensing event as the y-axis, of the current page slides two situations: (I) At this time, if the movement direction of gravity sensing event is positive axis along the y, i.e., the user when using the terminal shaking up, the corresponding terminal device on the slide a sliding distance calculated, the current page which a user sees the content of the following; (2) At this time, if the moving direction is along the gravity sensing event negative y axle, i.e., when the user using the terminal shaking down, the terminal device corresponding decline in a sliding distance calculated, a user sees the content of the current page above.

[0076] 其中,根据重力感应事件的移动距离,确定当前页面的滑动距离包括以下任一种情况:(1)根据重力感应事件的移动距离与第三预设阈值进行比值运算,得到一个比值数据,将这个比值数据乘以当前页面沿重力感应事件的移动方向上的长度,可以得到当前页面的滑动距离。 [0076] wherein, in accordance with the movement distance of the gravity sensing event, determine the sliding distance of the current page includes any of the following conditions: (1) The ratio of the moving distance calculating gravity sensing event of the third preset threshold value, a ratio of data obtained , this ratio is multiplied by the data length in the moving direction of gravity sensing events in the current page can be obtained a sliding distance of the current page. 优选地,第三预设阈值根据当前页面沿重力感应事件的移动方向上的长度进行设置,如可以设置为当前页面沿重力感应事件的移动方向上的长度的60%。 Preferably, the third predetermined threshold value is set according to the length of the current page in the moving direction of gravity sensing event, as can be set to 60% of the length of the current page in the moving direction of gravity sensing event. (2)将预设距离作为当前页面的滑动距离。 (2) the preset distance as the sliding distance of the current page. 该预设距离为一个固定的长度,当用户晃动终端设备,产生的重力感应事件的移动距离不满足第一预设条件,且满足第二预设条件时,均以预设距离为其滑动距离。 When the predetermined distance is a fixed length, when the moving distance of the user shakes the terminal equipment, gravity sensing event generated does not satisfy the first predetermined condition, and meets a second preset condition, the preset distance for a sliding distance are .

[0077] 本发明实施例通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 EXAMPLES [0077] The present invention, when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; processing the current page processing according to the acquired mode. 采用本发明实施例提供的技术方案,根据重力感应事件的移动距离,确定当前页面的处理方式,有效简化了对页面的操作,使得操作更加智能化。 According to the present invention, the technical solution provided in the embodiment, a moving distance of the gravity sensing event, the determination processing of the current page, simplifies the operation of the page, making the operation more intelligent. 进一步地,通过重力感应事件的移动距离和第一预设条件以及第二预设条件进行比较,可以细化对当前页面的处理方式,使得操作功能更加完善。 Further, by comparing a first predetermined distance and a moving gravity sensing conditions and a second preset condition event, you can refine the current page processing, so that the operation more functions.

[0078] 图2是本发明实施例中提供的一种页面处理方法流程图,在本实施例中,涉及到的终端设备内置重力感应器,以用户当前的页面为图片为例进行说明终端设备对重力感应事件的相应处理方式,参见图2,该方法包括: [0078] FIG 2 is a flowchart illustrating a page processing method embodiment provided in the embodiment of the present invention, in the present embodiment, the terminal apparatus related to the built-in gravity sensor, the user image of the current page will be described as an example terminal device appropriate handling of gravity sensing event, referring to FIG. 2, the method comprising:

[0079] 201:在用户进行浏览图片时,获知重力感应事件; [0079] 201: when the user to browse pictures, learn gravity sensing event;

[0080] 具体地,当用户对终端设备进行晃动时,终端设备通过内置重力传感器获知重力感应事件,重力传感器将受到的压力变化转化成电信号,进一步地将电信号转换成移动距离。 [0080] Specifically, when the user shaking the terminal device, the terminal device is aware of the event through the built gravity sensing gravity sensor, the gravity sensor by pressure changes into electrical signals, and further converts the electrical signal into a moving distance.

[0081] 202:根据所述重力感应事件在的移动距离,判断所述重力感应事件是否为误操作,如果是,执行步骤207 ;如果否,执行步骤203 ; [0081] 202: The gravity sensing event in the moving distance of the gravity sensor determines whether the erroneous event, and if so, step 207 is performed; if not, step 203 is performed;

[0082] 由于用户在使用终端设备过程中,难免会出现轻微的摇晃,所以为了避免这些操作带来的终端设备的误操作,因此,需要根据重力感应事件的移动距离,对该重力感应事件是否为误操作进行判断,当确定所述重力感应事件是误操作时,不对当前页面进行处理,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0082] Since the user terminal device during use, there will inevitably be a slight shaking, so to avoid erroneous operations caused by these terminal equipment, therefore, it requires a moving distance of the gravity sensing event, whether the gravity sensing event judgment is erroneous, when it is determined that the event is a gravity sensor malfunction, not the current page processing, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, the determination of the current page approach. 具体地,将重力感应事件的移动距离和第一预设阈值进行比较,优选地,第一预设阈值根据当前页面在移动方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的10%。 Specifically, the moving distance of the gravity sensing event and a first preset threshold value, preferably, a first predetermined threshold value is set according to the moving direction of the current page in length, as may be set to the current page in the moving direction 10% of the length. 若当前的移动方向为沿X轴,则第一预设阈值根据当前页面在X方向上的长度进行设置,如可以设置为当前页面在X方向上的长度的10%;若当前的移动方向为沿y轴,则第一预设阈值根据当前页面在y方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的10%。 If the current direction of the movement along the X axis, then the first predetermined threshold value is set according to the current page length in the X direction, as can be set to 10% of the length of the current page in the X direction; if the current moving direction along the y axis, the first predetermined threshold value is set according to the current page length in the y-direction, as can be set to 10% in the moving direction of the current page length. 如果重力感应事件的移动距离小于第一预设阈值,则认为用户属于误操作,终端设备将不对所述当前浏览图片进行处理;如果重力感应事件的移动距离大于等于第一预设阈值,则认为用户不是误操作,终端设备将根据重力感应事件的移动距离进一步判断终端设备如何处理当前浏览图片。 If the moving distance of the gravity sensing event less than the first predetermined threshold value, the user is considered part of misuse, the terminal device currently browsing picture will not be processed; gravity sensing event if the movement distance is not less than a first predetermined threshold, it is considered not misuse the user terminal equipment will further determine how to deal with the current terminal device according to the moving picture browsing gravity sensing distance events.

[0083] 203:判断所述重力感应事件的移动距离是否满足第一预设条件,如果是,执行步骤204 ;如果否,执行步骤205 ; [0083] 203: determining a first predetermined condition of the moving distance of the gravity sensing event meets, if yes, perform step 204; otherwise, step 205 is executed;

[0084] 其中,第一预设条件是指重力感应事件的移动距离大于第二预设阈值,优选地,第二预设阈值根据当前页面在移动方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的70 %。 [0084] wherein the first predetermined condition is that the moving distance of the gravity sensing event is greater than a second predetermined threshold value, preferably, the second predetermined threshold value is set according to the moving direction of the current page in length, as may be set to the current 70% of the length of the page in the moving direction. 若当前的移动方向为沿X轴,则第二预设阈值根据当前页面在X方向上的长度进行设置,如可以设置为当前页面在X方向上的长度的70%;若当前的移动方向为沿y轴,则第二预设阈值根据当前页面在y方向上的长度进行设置,如可以设置为当前页面在y方向上的长度的70%。 If the current direction of the movement along the X axis, the second predetermined threshold value is set according to the current page length in the X direction, as can be set to the current page 70% of the length in the X direction; if the current moving direction the y-axis, the second predetermined threshold value is set according to the current page length in the y-direction, such as the current page may be set to 70% of the length in the y direction. 当重力感应事件满足第一预设条件时,此时,可以确定终端设备处理当前浏览的图片,当重力感应事件不满足第一预设条件时,不对当前浏览的图片进行处理。 When the gravity sensing event meets the first preset condition, at this time, the terminal device can determine the current process picture browsing, gravity sensing when an event does not meet the first preset condition, not currently viewed picture processing.

[0085] 204:对当前浏览的图片进行切换,结束; [0085] 204: the current view of the picture switches, end;

[0086] 具体地,对当前浏览的图片进行切换分两种情况:(1)若此时重力感应事件的移动方向为沿X的负半轴或y轴的正半轴,即用户在使用终端设备时向左或向上晃动,终端设备获取下一张图片,切换到该下一张图片并进行显示;(2)若此时重力感应事件的移动方向为沿X的正半轴或y轴的负半轴,即用户在使用终端设备时向右或向下晃动,终端设备获取上一张图片,切换到该上一张图片并进行显示。 [0086] In particular, the current browsing pictures in switching two cases: (1) At this time, if the movement direction of gravity sensing event is negative along the y axis or axle of the positive axis X, i.e., using the user terminal when the left or upward shaking apparatus, the terminal apparatus acquires the next image, the next image is switched to and displayed; (2) at this time, if the movement direction of gravity sensing events along the X-axis positive axis or y axle negative, i.e. when the right user using the terminal device or shaking down, the terminal device acquires an image, switching to the previous image and displayed.

[0087] 其中,本发明实施例中所述的下一张图片和上一张图片可以是存储在本地存储(如相册文件夹)中与当前页面所展示的图片相邻的下一张图片和上一张图片,还可以是本地存储中与所述页面所展示图片的图片名称顺序排列的下一张图片和上一张图片。 [0087] wherein, as described in the next picture and the previous picture embodiment of the present invention may be stored in a local storage (e.g., album folder) with the current page displayed image and the next adjacent picture Previous image may also be stored locally in the page name of the illustrated picture image in an order of the pictures and a picture. 如,当前图片为2.jpg,而相册文件夹中包括1.jpg、2.jpg、3.jpg,且相册文件夹中图片为顺序排列,则其下一张图片为3.jpg,上一张图片为1.jpg。 E.g., the current picture is 2.jpg, the album folder includes 1.jpg, 2.jpg, 3.jpg, and Photo album folder order, it is 3.jpg next picture, previous pictures as 1.jpg. 当然,如果相册文件夹中图片为倒序排列,则其下一张图片为1.jpg,上一张图片为3.jpg。 Of course, if the picture album folder is in reverse order, then the next image as 1.jpg, on a picture for 3.jpg.

[0088] 205:判断所述重力感应事件的移动距离是否满足第二预设条件,如果是,执行步骤206,如果否,执行步骤207 ; [0088] 205: determining whether the second predetermined condition of the moving distance of the gravity sensing event meets, if yes, step 206, and if not, step 207 is executed;

[0089] 其中,第二预设条件是指重力感应事件的移动距离大于第一预设值阈值,且小于第二预设阈值。 [0089] wherein the second predetermined condition is that a moving distance of the gravity sensing event is greater than a first predetermined threshold value and less than a second predetermined threshold value. 当重力感应事件满足第二预设条件时,可以确定终端设备将要滑动当前浏览图片,当重力感应事件不满足第二预设条件时,则确定不对当前浏览图片进行处理。 When the gravity sensing event meets a second preset condition, the terminal device can determine the current slide will be pictures, when gravity sensing event does not satisfy the second preset condition is determined not to currently browsing picture processing.

[0090] 206:根据所述重力感应事件的移动方向和移动距离,确定对所述当前浏览的图片进行相应的滑动,结束; [0090] 206: The moving direction of the gravity sensor and the moving distance of the event, the determination of the currently-browsed images corresponding slide, ending;

[0091] 在本发明实施例中,相应的滑动是指与该移动距离和移动方向相应的滑动,根据重力感应事件的移动方向确定当前页面的滑动方向,并根据重力感应事件的移动距离,确定当前页面的滑动距离,确定对当前页面进行该滑动距离的滑动。 [0091] In the embodiment of the present invention, the respective sliding means corresponding to the movement distance and the movement direction of the slide, determines the sliding direction of the current page in accordance with the moving direction of gravity sensing event, and in accordance with the moving distance gravity sensing event, is determined sliding distance of the current page, the current page is determined on the sliding distance of the slide.

[0092] 其中,根据重力感应事件的移动方向确定当前浏览的图片的滑动方向,包括以下的情况:若重力感应事件的移动方向为沿X轴,对当前浏览的图片进行滑动分两种情况:(I)若此时重力感应事件的移动方向为沿X的正半轴,即用户在使用终端设备时向右晃动,终端设备将按照计算得到的滑动的距离进行相应的右滑,使用户看到当前浏览的图片右面的内容;(2)若此时重力感应事件的移动方向为沿X的负半轴,即用户在使用终端设备时向左晃动,终端设备将按照计算得到的滑动的距离进行相应的左滑,使用户看到当前浏览的图片左面的内容。 [0092] wherein the sliding direction is determined according to the current viewing image moving direction of gravity sensing event, comprising the following cases: when the moving direction of gravity sensing events along the X axis, the current browse pictures in two cases slide: (I) in this case, if the moving direction of gravity sensing event along the positive axis X, i.e., the user shaking the right when using the terminal device, the terminal device will be in accordance with the respective right slider slides calculated distance, so that the user sees from (2) at this time, if the movement direction of gravity sensing events along the X axle negative, i.e. when the user left shaking using the terminal device, the terminal device obtained according to the calculated slides; currently browsing image content to the right corresponding slide left, allowing users to see the contents of the current view of the picture on the left.

[0093] 若重力感应事件的移动方向为沿y轴,对当前浏览的图片进行滑动分两种情况: [0093] When the moving direction of gravity sensing event as the y-axis, the current browse pictures in two cases slide:

(I)若此时重力感应事件的移动方向为沿y的正半轴,即用户在使用终端设备时向上晃动,终端设备将按照计算得到的滑动的距离进行相应的上滑,使用户看到当前浏览的图片下面的内容;(2)若此时重力感应事件的移动方向为沿y的负半轴,即用户在使用终端设备时向下晃动,终端设备将按照计算得到的滑动的距离进行相应的下滑,使用户看到当前浏览的图片上面的内容。 (I) In this case, if the moving direction of gravity sensing event along the positive y axle, i.e. upwards in the use of the user shaking the terminal device, the terminal device will be a sliding carriage on the corresponding calculated distance, a user sees the following pictures currently browsed content; (2) at this time, if the movement direction of gravity sensing event along the negative y axle, i.e. a user in the use of shaking down the terminal device, the terminal device will be made in the sliding distance of the calculated corresponding decline, allowing users to see the contents of the current view of the picture above.

[0094] 其中,根据重力感应事件的移动距离,确定当前页面的滑动距离包括以下任一种情况:(1)根据重力感应事件的移动距离与第三预设阈值进行比值运算,得到一个比值数据,将这个比值数据乘以当前页面沿重力感应事件的移动方向上的长度,可以得到当前页面的滑动距离。 [0094] wherein, in accordance with the movement distance of the gravity sensing event, determine the sliding distance of the current page includes any of the following conditions: (1) The ratio of the moving distance calculating gravity sensing event of the third preset threshold value, a ratio of data obtained , this ratio is multiplied by the data length in the moving direction of gravity sensing events in the current page can be obtained a sliding distance of the current page. 优选地,第三预设阈值根据当前页面沿重力感应事件的移动方向上的长度进行设置,如可以设置为当前页面沿重力感应事件的移动方向上的长度的60%。 Preferably, the third predetermined threshold value is set according to the length of the current page in the moving direction of gravity sensing event, as can be set to 60% of the length of the current page in the moving direction of gravity sensing event. (2)将预设距离作为当前页面的滑动距离。 (2) the preset distance as the sliding distance of the current page. 该预设距离为一个固定的长度,当用户晃动终端设备,产生的重力感应事件的移动距离不满足第一预设条件,且满足第二预设条件时,均以预设距离为其滑动距离。 When the predetermined distance is a fixed length, when the moving distance of the user shakes the terminal equipment, gravity sensing event generated does not satisfy the first predetermined condition, and meets a second preset condition, the preset distance for a sliding distance are .

[0095] 其中,根据重力感应事件的移动距离,确定当前浏览的图片的滑动距离包括以下任一种情况:(I)根据重力感应事件的移动距离与第三预设阈值进行比值运算,得到一个比值数据,将这个比值数据乘以当前浏览的图片沿重力感应事件的移动方向上的长度,可以得到当前浏览的图片的滑动距离。 [0095] wherein, in accordance with the movement distance of the gravity sensor event, the current picture is determined from viewing the slide comprises one of the following case: (I) for calculating a ratio of a moving distance of the gravity sensing event third predetermined threshold value, to obtain a ratio data, the data is multiplied by the ratio of the length in the moving direction of the image in the current browsing gravity sensing event, the current picture can be viewed sliding distance. 优选地,第三预设阈值根据当前浏览的图片沿重力感应事件的移动方向上的长度进行设置,如可以设置为当前浏览的图片沿重力感应事件的移动方向上的长度的60%。 Preferably, the third predetermined threshold value is set according to the length of the moving direction of the current image for browsing along the gravity sensing event, such as current may be set to 60% of the length of the moving direction along a gravity sensing image browsing events. (2)将预设距离作为当前浏览的图片的滑动距离。 (2) the preset distance as a picture of the current view of the sliding distance. 该预设距离为一个固定的长度,当用户晃动终端设备,产生的重力感应事件的移动距离不满足第一预设条件,且满足第二预设条件时,均以预设距离为其滑动距离。 When the predetermined distance is a fixed length, when the moving distance of the user shakes the terminal equipment, gravity sensing event generated does not satisfy the first predetermined condition, and meets a second preset condition, the preset distance for a sliding distance are .

[0096] 步骤205-206为可选步骤,本实施例也可以不执行这两个步骤,而直接执行步骤207。 [0096] Step 205-206 is an optional step, the present embodiment may not perform these two steps, step 207 is executed directly.

[0097] 207:终端设备不对当前浏览的图片进行处理。 [0097] 207: The terminal device does not currently viewed picture processing.

[0098] 通过比较重力感应事件的移动距离和第一预设阈值,由于重力感应事件的移动距离小于第一预设阈值,认为用户属于误操作,所以,终端设备不对当前浏览的图片进行处理。 [0098] By comparing the gravity sensor and the moving distance of the event first preset threshold, the moving distance of the gravity sensor is less than a first predetermined event threshold value, an erroneous operation that the user belongs to, so that the terminal device does not currently viewed image processing.

[0099] 本发明实施例通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 EXAMPLES [0099] The present invention, when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; processing the current page processing according to the acquired mode. 采用本发明实施例提供的技术方案,根据重力感应事件的移动距离和移动方向,确定当前页面的处理方式,有效简化了对页面的操作,使得操作更加智能化。 Using the technical solution provided in the embodiment of the present invention, the moving direction and moving distance of the gravity sensing event, the determination processing of the current page, simplifies the operation of the page, making the operation more intelligent.

[0100] 图3是本发明实施例中提供的一种页面处理方法流程图,在本实施例中,涉及到的终端设备内置重力感应器,以用户当前的页面为电子书为例进行说明终端设备对重力感应事件的相应处理方式,参见图3,该方法包括: [0100] FIG. 3 is a flowchart illustrating a page processing method embodiment provided in the embodiment of the present invention, in the present embodiment, the terminal apparatus related to the built-in gravity sensor, the current page to the user will be described as an example electronic book terminal device for handling a respective gravity sensing event, referring to FIG. 3, the method comprising:

[0101] 301:在用户进行浏览电子书页面时,获知重力感应事件; [0101] 301: when the user to browse the e-book page, learn gravity sensing event;

[0102] 具体地,当用户对终端设备进行晃动时,终端设备通过内置重力传感器获知重力感应事件,重力传感器将受到的压力变化转化成电信号,进一步地将电信号转换成移动距离。 [0102] Specifically, when the user shaking the terminal device, the terminal device is aware of the event through the built gravity sensing gravity sensor, the gravity sensor by pressure changes into electrical signals, and further converts the electrical signal into a moving distance.

[0103] 302:根据所述重力感应事件在的移动距离,判断所述重力感应事件是否为误操作,如果是,执行步骤307 ;如果否,执行步骤303 ; [0103] 302: The gravity sensing event in the moving distance of the gravity sensor determines whether the erroneous event, and if so, step 307 is performed; if not, step 303 is performed;

[0104] 由于用户在使用终端设备过程中,难免会出现轻微的摇晃,所以为了避免将这些操作带来的终端设备的误操作,因此,需要根据重力感应事件的移动距离,对该重力感应事件是否为误操作进行判断,当确定所述重力感应事件是误操作时,不对当前页面进行处理,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0104] Since the user using the terminal device in the process, there will inevitably be a slight shaking, so in order to avoid misuse of the terminal apparatus will bring these operations, therefore, requires a moving distance of the gravity sensing event, the gravity sensing event to judge whether the erroneous operation is determined when the gravity sensor is erroneous event, no current page processing, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, the determination of the current handling of the page. 具体地,将重力感应事件的移动距离和第一预设阈值进行比较,优选地,第一预设阈值根据当前页面在移动方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的10%。 Specifically, the moving distance of the gravity sensing event and a first preset threshold value, preferably, a first predetermined threshold value is set according to the moving direction of the current page in length, as may be set to the current page in the moving direction 10% of the length. 若当前的移动方向为沿X轴,则第一预设阈值根据当前页面在X方向上的长度进行设置,如可以设置为当前页面在X方向上的长度的10%;若当前的移动方向为沿y轴,则第一预设阈值根据当前页面在y方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的10%。 If the current direction of the movement along the X axis, then the first predetermined threshold value is set according to the current page length in the X direction, as can be set to 10% of the length of the current page in the X direction; if the current moving direction along the y axis, the first predetermined threshold value is set according to the current page length in the y-direction, as can be set to 10% in the moving direction of the current page length. 如果重力感应事件的移动距离小于第一预设阈值,则认为用户属于误操作,终端设备将不对所述当前浏览电子书页面进行处理;如果重力感应事件的移动距离大于等于第一预设阈值,则认为用户不是误操作,终端设备将根据重力感应事件的移动距离进一步判断终端设备如何处理当前浏览电子书页面。 If the moving distance of the gravity sensing event less than the first predetermined threshold value, the user is considered part of misuse, the terminal device does not currently browsing book page for processing; gravity sensing event if the movement distance is greater than a first predetermined threshold value is equal, the user is not considered misuse, terminal equipment will further determine how to deal with the current terminal equipment page browsing e-books based on the moving distance of gravity sensing event.

[0105] 303:判断所述重力感应事件的移动距离是否满足第一预设条件,如果是,执行步骤304 ;如果否,执行步骤305 ; [0105] 303: determining a first predetermined condition of the moving distance of the gravity sensing event meets, and if so, step 304 is performed; if not, step 305 is executed;

[0106] 其中,第一预设条件是指重力感应事件的移动距离大于第二预设阈值,优选地,第二预设阈值根据当前页面在移动方向上的长度进行设置,如可以设置为当前页面在移动方向上的长度的70 %。 [0106] wherein the first predetermined condition is that the moving distance of the gravity sensing event is greater than a second predetermined threshold value, preferably, the second predetermined threshold value is set according to the moving direction of the current page in length, as may be set to the current 70% of the length of the page in the moving direction. 若当前的移动方向为沿X轴,则第二预设阈值根据当前页面在X方向上的长度进行设置,如可以设置为当前页面在X方向上的长度的70%;若当前的移动方向为沿y轴,则第二预设阈值根据当前页面在y方向上的长度进行设置,如可以设置为当前页面在y方向上的长度的70%。 If the current direction of the movement along the X axis, the second predetermined threshold value is set according to the current page length in the X direction, as can be set to the current page 70% of the length in the X direction; if the current moving direction the y-axis, the second predetermined threshold value is set according to the current page length in the y-direction, such as the current page may be set to 70% of the length in the y direction. 当重力感应事件满足第一预设条件时,此时,可以确定终端设备处理当前浏览电子书,当重力感应事件不满足第一预设条件时,不对当前浏览电子书进行处理。 When the gravity sensing event meets the first preset condition, at this time, you can determine the terminal device processing the current e-book browsing, gravity sensing when the event does not meet the first preset condition, no current browsing e-books for processing.

[0107] 304:对当前浏览电子书页面进行切换,结束; [0107] 304: the e-book for the current browser page to switch to end;

[0108] 具体地,对当前浏览的电子书页面进行切换分两种情况:(1)若此时重力感应事件的移动方向为沿X的负半轴或I轴的正半轴,即用户在使用终端设备时向左或向上晃动,终端设备将切换到下一页电子书并进行显示;(2)若此时重力感应事件的移动方向为沿X的正半轴或y轴的负半轴,即用户在使用终端设备时向右或向下晃动,终端设备将切换到上一页电子书并进行显示。 [0108] In particular, the current browsing book page switching two cases: (1) At this time, if the movement direction of gravity sensing event is negative along the I-axis or axle of the positive axis X, i.e., the user when using the terminal device to the left or shake up, switch to the next terminal device and display the eBook; (2) At this time, if the movement direction of gravity sensing events along the X-axis positive negative axle or axle y , i.e., the user right down or shaking when using a terminal device, the terminal device changes to a previous electronic book and display.

[0109] 305:判断所述重力感应事件的移动距离是否满足第二预设条件,如果是,执行步骤306,如果否,执行步骤307 ; [0109] 305: determining whether the second predetermined condition of the moving distance of the gravity sensing event meets, if yes, step 306, and if not, step 307 is executed;

[0110] 其中,第二预设条件是指重力感应事件的移动距离大于第一预设值阈值,且小于第二预设阈值。 [0110] wherein the second predetermined condition is that a moving distance of the gravity sensing event is greater than a first predetermined threshold value and less than a second predetermined threshold value. 当重力感应事件满足第二预设条件时,此时,可以确定终端设备将要滑动当前浏览电子书页面,当重力感应事件不满足第二预设条件时,则确定不对当前浏览电子书页面进行处理。 When the gravity sensing event meets a second preset condition, at this time, the terminal device can determine the current slide to browse the e-book page, when gravity sensing event does not satisfy the second preset condition is determined not to process the current browser page e-book .

[0111] 306:根据所述重力感应事件的移动方向和移动距离,确定对所述当前浏览电子书页面进行相应的滑动,结束; [0111] 306: The moving direction of the gravity sensor and the moving distance of the event, the determination of the current browsing book page corresponding slide, ending;

[0112] 在本发明实施例中,相应的滑动是指与该移动距离和移动方向相应的滑动,根据重力感应事件的移动方向确定当前页面的滑动方向,并根据重力感应事件的移动距离,确定当前页面的滑动距离,确定对当前页面进行该滑动距离的滑动。 [0112] In the embodiment of the present invention, the respective sliding means corresponding to the movement distance and the movement direction of the slide, determines the sliding direction of the current page in accordance with the moving direction of gravity sensing event, and in accordance with the moving distance gravity sensing event, is determined sliding distance of the current page, the current page is determined on the sliding distance of the slide.

[0113] 其中,根据重力感应事件的移动方向确定当前浏览的电子书页面的滑动方向,包括以下的情况:若重力感应事件的移动方向为沿X轴,对当前浏览的电子书页面进行滑动分两种情况:(1)若此时重力感应事件的移动方向为沿X的正半轴,即用户在使用终端设备时向右晃动,终端设备将按照计算得到的滑动的距离进行相应的右滑,使用户看到当前浏览的电子书页面右面的内容;(2)若此时重力感应事件的移动方向为沿X的负半轴,即用户在使用终端设备时向左晃动,终端设备将按照计算得到的滑动的距离进行相应的左滑,使用户看到当前浏览的电子书页面左面的内容。 [0113] wherein, determining the sliding direction of the page currently viewed electronic book in accordance with the moving direction of gravity sensing event, comprising the following cases: when the moving direction of gravity sensing events along the X axis, the current browsing book page slide minutes two conditions: (1) at this time, if the upside of the moving direction of gravity sensing events along the X, i.e., the user shaking the right when using the terminal device, the terminal device corresponding to the right slide a sliding distance calculated the user to see the content currently browsing book page right; (2) at this time, if the movement direction of gravity sensing events along the X axle negative, i.e. when the user left shaking using the terminal device, the terminal device according to the sliding distance calculated accordingly left slip, allowing users to see the contents of the current page e-book browsing on the left.

[0114] 若重力感应事件的移动方向为沿y轴,对当前浏览的电子书页面进行滑动分两种情况:(1)若此时重力感应事件的移动方向为沿y的正半轴,即用户在使用终端设备时向上晃动,终端设备将按照计算得到的滑动的距离进行相应的上滑,使用户看到当前浏览的电子书页面下面的内容;(2)若此时重力感应事件的移动方向为沿y的负半轴,即用户在使用终端设备时向下晃动,终端设备将按照计算得到的滑动的距离进行相应的下滑,使用户看到当前浏览的电子书页面上面的内容。 [0114] When the moving direction of gravity sensing event as the y-axis, the current browsing book page sliding two cases: (1) At this time, if the movement direction of gravity sensing event along the positive y axle, i.e. shaking up the user in the use of the terminal device, the terminal device on the corresponding sliding carriage according to the calculated distance, a user sees the following page currently viewed electronic book content; (2) if the event where the mobile gravity sensing axle along the y direction is negative, i.e., downward in the use of the user shaking the terminal device, the terminal device in accordance with the corresponding falling slides calculated distance, a user sees the content currently browsing book page above.

[0115] 其中,根据重力感应事件的移动距离,确定当前页面的滑动距离包括以下任一种情况:(1)根据重力感应事件的移动距离与第三预设阈值进行比值运算,得到一个比值数据,将这个比值数据乘以当前页面沿重力感应事件的移动方向上的长度,可以得到当前页面的滑动距离。 [0115] wherein, in accordance with the movement distance of the gravity sensing event, determine the sliding distance of the current page includes any of the following conditions: (1) The ratio of the moving distance calculating gravity sensing event of the third preset threshold value, a ratio of data obtained , this ratio is multiplied by the data length in the moving direction of gravity sensing events in the current page can be obtained a sliding distance of the current page. 优选地,第三预设阈值根据当前页面沿重力感应事件的移动方向上的长度进行设置,如可以设置为当前页面沿重力感应事件的移动方向上的长度的60%。 Preferably, the third predetermined threshold value is set according to the length of the current page in the moving direction of gravity sensing event, as can be set to 60% of the length of the current page in the moving direction of gravity sensing event. (2)将预设距离作为当前页面的滑动距离。 (2) the preset distance as the sliding distance of the current page. 该预设距离为一个固定的长度,当用户晃动终端设备,产生的重力感应事件的移动距离不满足第一预设条件,且满足第二预设条件时,均以预设距离为其滑动距离。 When the predetermined distance is a fixed length, when the moving distance of the user shakes the terminal equipment, gravity sensing event generated does not satisfy the first predetermined condition, and meets a second preset condition, the preset distance for a sliding distance are .

[0116] 其中,根据重力感应事件的移动距离,确定当前浏览的电子书页面的滑动距离包括以下任一种情况:(I)根据重力感应事件的移动距离与第三预设阈值进行比值运算,得到一个比值数据,将这个比值数据乘以当前浏览的电子书页面沿重力感应事件的移动方向上的长度,可以得到当前浏览的电子书页面的滑动距离。 [0116] wherein, in accordance with the movement distance of the gravity sensing event, determine the sliding distance of the page currently viewed electronic book comprises any of the following conditions: (I) for calculating a ratio of a moving distance of the gravity sensing event third predetermined threshold value, to obtain a ratio data, the data is multiplied by this ratio book page currently viewed along the length of the moving direction of gravity sensing event, the slide distance can be obtained currently viewed page of the electronic book. 优选地,第三预设阈值根据当前浏览的电子书页面沿重力感应事件的移动方向上的长度进行设置,如可以设置为当前浏览的电子书页面沿重力感应事件的移动方向上的长度的60%。 Preferably, the third predetermined threshold value is set according to the length of the moving direction of the current page in the electronic book browsing gravity sensing event, such as may be provided in the moving direction of the length of the current page in the electronic book browsing gravity sensing event 60 %. (2)将预设距离作为当前浏览的电子书页面的滑动距离。 (2) the preset distance as the sliding distance of the current browser page e-book. 该预设距离为一个固定的长度,当用户晃动终端设备,产生的重力感应事件的移动距离不满足第一预设条件,且满足第二预设条件时,均以预设距离为其滑动距离。 When the predetermined distance is a fixed length, when the moving distance of the user shakes the terminal equipment, gravity sensing event generated does not satisfy the first predetermined condition, and meets a second preset condition, the preset distance for a sliding distance are .

[0117] 步骤305-306为可选步骤,本实施例也可以不执行这两个步骤,而直接执行步骤307。 [0117] Step 305-306 is an optional step, the present embodiment may not perform these two steps, step 307 is executed directly.

[0118] 307:终端设备不对当前浏览的电子书页面进行处理。 [0118] 307: The terminal device does not currently viewed book page for processing.

[0119] 通过比较重力感应事件的移动距离和第一预设阈值,由于重力感应事件的移动距离小于第一预设阈值,认为用户属于误操作,所以,终端设备将不对当前浏览的电子书页面进行处理。 [0119] By comparing the moving distance of the gravity sensing events and a first predetermined threshold value, since the moving distance of the gravity sensor is less than a first predetermined event threshold value, an erroneous operation that the user belongs to, so that the terminal device does not currently viewed electronic book pages for processing.

[0120] 本发明实施例通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 EXAMPLES [0120] The present invention, when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; processing the current page processing according to the acquired mode. 采用本发明实施例提供的技术方案,根据重力感应事件的移动距离和移动方向,确定当前页面的处理方式,有效简化了对页面的操作,使得操作更加智能化。 Using the technical solution provided in the embodiment of the present invention, the moving direction and moving distance of the gravity sensing event, the determination processing of the current page, simplifies the operation of the page, making the operation more intelligent. 进一步地,通过重力感应事件的移动距离和第一预设条件以及第二预设条件进行比较,可以细化对当前页面的处理方式,使得操作功能更加完善。 Further, by comparing a first predetermined distance and a moving gravity sensing conditions and a second preset condition event, you can refine the current page processing, so that the operation more functions.

[0121] 需要说明的是,本发明所提供的实施例仅以当前浏览的页面为图片以及电子书页面为例进行说明,而对于其他类型的页面如网页、文本文档、信息等形式的页面,也可执行同理的页面处理方法,具体步骤可以参考上述步骤201-207以及301-307,在此不再赘述。 [0121] It should be noted that the embodiment of the present invention provides only the current page as a picture and e-book pages as an example, and for other types of forms such as web pages, text documents, information page, the method may also perform page processing Likewise, the specific steps may see step 201-207 and 301-307, are not repeated here.

[0122] 图4是本发明实施例中提供的一种页面处理装置示意图,参见图4,该装置包括: [0122] FIG. 4 is a page in the embodiment provided apparatus for processing a schematic embodiment of the present invention, referring to FIG. 4, the apparatus comprising:

[0123] 获知模块401,用于在显示当前页面时,获知重力感应事件; [0123] learning module 401, configured to display the current page, known gravity sensing event;

[0124] 确定模块402,用于根据所述重力感应事件的移动距离,确定对当前页面的处理方式; [0124] determination module 402, according to a moving distance of the gravity sensing event, determine the handling of the current page;

[0125] 处理模块403,用于根据获取的处理方式对所述当前页面进行处理。 [0125] The processing module 403 for processing of the current page processing according to the acquired mode.

[0126] 所述装置还包括: [0126] The apparatus further comprises:

[0127] 误操作判断模块404,用于根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,触发所述确定模块根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 [0127] erroneous determination module 404, according to a moving distance of the gravity sensing event, determines whether the erroneous event gravity sensor, the gravity sensor is determined when the event is not an erroneous operation, according to trigger the determining module the moving distance of the gravity sensing event, determine the handling of the current page.

[0128] 所述确定模块402包括:第一判断单元和第一确定单元, [0128] The determining module 402 includes: a first judging unit and a first determination unit,

[0129] 所述第一判断单元,用于判断所述重力感应事件的移动距离是否满足第一预设条件; [0129] The first determination unit configured to determine the movement distance of the gravity sensing event meets a first preset condition;

[0130] 所述第一确定单元,用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件,则确定对当前页面进行切换。 [0130] The first determining unit, configured to, when the first determining unit moving distance of the gravity sensing event satisfies the first predetermined condition is determined, it is determined that the switching of the current page.

[0131] 所述第一确定单元具体用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 [0131] In particular the first determining unit when the first determination unit determines that the moving distance of the gravity sensing event of the first preset condition is satisfied, according to the moving direction of the gravity sensing event, the determination of current page corresponding to the moving direction switching.

[0132] 所述确定模块402还包括:第二确定单元,用于当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; [0132] The determining module 402 further comprises: a second determining unit, configured to, when the moving distance of the gravity sensing event does not satisfy the first predetermined condition, the current page is determined not to be treated;

[0133]或, [0133] or,

[0134] 所述确定模块402还包括:第二判断单元和第二确定单元, [0134] The determining module 402 further comprises: a second determination unit and a second determination unit,

[0135] 所述第二判断单元,用于判断所述重力感应事件的移动距离是否满足第二预设条件; [0135] The second determination unit for determining a moving distance of the gravity sensing event is the second predetermined condition is satisfied;

[0136] 所述第二确定单元,用于当所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 [0136] The second determination unit when a moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, the moving distance of the gravity sensor does not satisfy a second event preset condition, the current page is determined not to be processed.

[0137] 所述第二确定单元,具体用于所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 [0137] The second determining unit, particularly for a moving distance of the gravity sensing event meets a second preset condition, according to the moving direction of the gravity sensor and the moving distance of the event, the determination of the corresponding current page slide.

[0138] 本发明实施例通过在显示当前页面时,获知重力感应事件;根据所述重力感应事件的移动距离,确定对当前页面的处理方式;根据获取的处理方式对所述当前页面进行处理。 EXAMPLES [0138] The present invention, when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; processing the current page processing according to the acquired mode. 采用本发明实施例提供的装置,根据重力感应事件的移动距离,确定当前页面的处理方式,实现了页面操作的多样化且有效简化了对页面的操作,使得操作更加智能化。 According to the present invention, apparatus according to an embodiment, a moving distance of the gravity sensing event, the determination processing of the current page, the page have diversified operations and simplify the operation of the page, making the operation more intelligent.

[0139] 需要说明的是:上述实施例提供的页面处理装置在处理页面时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或部分功能。 [0139] Note that: the above-described embodiment, the sheet processing device provided with pages, only the division of the functional modules is illustrated, in practice, according to the necessity foregoing functions by different functional modules is completed, i.e. the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. 另外,上述实施例提供的页面处理装置和页面处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。 Further, the above-described embodiment of the sheet processing device provided by the embodiment and page processing method of the same conception and specific embodiment of the method implementation process will not be repeated here.

[0140] 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0140] Those of ordinary skill in the art may understand that the above embodiments all or part of the steps may be implemented by hardware, by a program instruction may be relevant hardware, the program may be stored in a computer-readable storage medium in the above-mentioned storage medium may be a read-only memory, magnetic or optical disk.

[0141] 以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0141] The foregoing is only preferred embodiments of the present invention, not intended to limit the present invention within the spirit and principle of the present invention, any modification, equivalent replacement, or improvement, it should be included in the present within the scope of the invention.

Claims (12)

1.一种页面处理方法,其特征在于,所述方法包括: 在显示当前页面时,获知重力感应事件; 根据所述重力感应事件的移动距离,确定对当前页面的处理方式; 根据获取的处理方式对所述当前页面进行处理。 A page processing method, wherein the method comprises: when the current page, known gravity sensing event; The moving distance of the gravity sensing event, determine the handling of the current page; obtained according to the process mode for processing the current page.
2.根据权利要求1所述的方法,其特征在于,根据所述重力感应事件的移动距离,确定对当前页面的处理方式,包括: 根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 2. The method according to claim 1, characterized in that the distance of movement of the gravity sensing event, determine the handling of the current page, comprising: the moving distance of the gravity sensing event, determining the gravity sensor whether an event is erroneous, when it is determined that the event is not a gravity sensor malfunction, the moving distance of the gravity sensing event, determine the handling of the current page.
3.根据权利要求1所述的方法,其特征在于,根据所述重力感应事件的移动距离,确定对当前页面的处理方式,包括: 判断所述重力感应事件的移动距离是否满足第一预设条件,当满足所述第一预设条件,则确定对当前页面进行切换。 3. The method according to claim 1, characterized in that the distance of movement of the gravity sensing event, determine the handling of the current page, comprising: determining whether the gravity sensing event meets the first preset moving distance condition, when the first predetermined condition satisfied, it is determined that the switching of the current page.
4.根据权利要求3所述的方法,其特征在于,当满足所述第一预设条件,则确定对当前页面进行切换,包括: 当满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 4. The method according to claim 3, wherein, when the first predetermined condition satisfied, it is determined that the current page to be switched, comprising: when the first preset condition is satisfied, based on the gravity sensing a movement direction of the event, the determination of the current page corresponding to the moving direction is switched.
5.根据权利要求3所述的方法,其特征在于,判断所述重力感应事件的移动距离是否满足第一预设条件,之后包括: 当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; 或,判断所述重力感应事件的移动距离是否满足第二预设条件; 所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 5. The method according to claim 3, wherein the first predetermined condition determines a moving distance of the gravity sensing event is satisfied, then comprising: when a moving distance of the gravity sensor does not satisfy the first event preset condition, the current page is determined not to be treated; or a second preset condition is determined the gravity sensing event meets a moving distance; moving distance of the gravity sensing event meets a second preset condition is determined sliding the current page, the moving distance of the gravity sensing event does not satisfy the second predetermined condition, the current page is determined not to be processed.
6.根据权利要求5所述的方法,其特征在于,所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,包括: 所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 6. The method according to claim 5, characterized in that, the moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, comprising: a moving distance of the gravity sensing event meets a second preset condition, according to the moving direction of the gravity sensor and the moving distance of the event, the determination of the current page corresponding sliding.
7.一种页面处理装置,其特征在于,所述装置包括: 获知模块,用于在显示当前页面时,获知重力感应事件; 确定模块,用于根据所述重力感应事件的移动距离,确定对当前页面的处理方式; 处理模块,用于根据获取的处理方式对所述当前页面进行处理。 A sheet processing apparatus, wherein, said means comprising: a learning module, configured to display the current page, the event known gravity sensor; determining module, according to a moving distance of the gravity sensing event, the determination of processing the current page; processing module for processing the current page processing according to the acquired mode.
8.根据权利要求7所述的装置,其特征在于,所述装置还包括: 误操作判断模块,用于根据所述重力感应事件的移动距离,判断所述重力感应事件是否为误操作,当确定所述重力感应事件不是误操作时,触发所述确定模块根据所述重力感应事件的移动距离,确定对当前页面的处理方式。 8. The apparatus according to claim 7, wherein said apparatus further comprises: erroneous determination module, according to a moving distance of the gravity sensing event, the gravity sensor determines whether the erroneous event, when when determining that the event is not a gravity sensor malfunction, triggering the determining module according to the moving distance of the gravity sensing event, determine the handling of the current page.
9.根据权利要求7所述的装置,其特征在于,所述确定模块包括:第一判断单元和第一确定单元, 所述第一判断单元,用于判断所述重力感应事件的移动距离是否满足第一预设条件;所述第一确定单元,用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件,则确定对当前页面进行切换。 9. The apparatus according to claim 7, wherein the determining module comprises: a first determining unit and a first determination unit, a first determination unit for determining a moving distance of the gravity sensing event is meets a first preset condition; the first determining unit, when the first determination means determines a moving distance of the gravity sensing event satisfies the first predetermined condition, it is determined that the switching of the current page.
10.根据权利要求9所述的装置,其特征在于,所述第一确定单元具体用于当所述第一判断单元确定所述重力感应事件的移动距离满足所述第一预设条件时,根据所述重力感应事件的移动方向,确定对当前页面进行与所述移动方向相应的切换。 10. The apparatus according to claim 9, wherein said first determining unit is configured, when the first determining unit determines that the movement distance of the gravity sensing event satisfies the first predetermined condition, the moving direction of the gravity sensor event, the current page is determined corresponding to the moving direction is switched.
11.根据权利要求9所述的装置,其特征在于,所述确定模块还包括:第二确定单元,用于当所述重力感应事件的移动距离不满足所述第一预设条件,则确定不对所述当前页面进行处理; 或, 所述确定模块还包括:第二判断单元和第二确定单元, 所述第二判断单元,用于判断所述重力感应事件的移动距离是否满足第二预设条件; 所述第二确定单元,用于当所述重力感应事件的移动距离满足第二预设条件,则确定对所述当前页面进行滑动,所述重力感应事件的移动距离不满足第二预设条件,则确定不对所述当前页面进行处理。 11. The apparatus according to claim 9, wherein the determining module further comprises: a second determining unit, configured to, when the moving distance of the gravity sensing event of the first preset condition is not satisfied, it is determined not the current page processing; or, the determining module further comprises: a second determination unit and a second determination unit, a second determination unit for determining a moving distance of the gravity sensor satisfies a second pre-event conditionality; the second determining unit, when a moving distance of the gravity sensing event meets a second preset condition, it is determined that the current page slides, the moving distance of the gravity sensor does not satisfy a second event preset condition, the current page is determined not to be processed.
12.根据权利要求11所述的装置,其特征在于,所述第二确定单元具体用于所述重力感应事件的移动距离满足第二预设条件,根据所述重力感应事件的移动方向和移动距离,确定对所述当前页面进行相应的滑动。 12. The apparatus as claimed in claim 11, wherein the second determining unit is configured moving distance of the gravity sensing a second event satisfies a preset condition, the movement direction and the gravity sensing movement of events from the determination of the current page corresponding sliding.
CN201210566605.8A 2012-12-24 2012-12-24 Page processing method and apparatus CN103885685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210566605.8A CN103885685B (en) 2012-12-24 2012-12-24 Page processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210566605.8A CN103885685B (en) 2012-12-24 2012-12-24 Page processing method and apparatus

Publications (2)

Publication Number Publication Date
CN103885685A true CN103885685A (en) 2014-06-25
CN103885685B CN103885685B (en) 2017-12-15

Family

ID=50954610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210566605.8A CN103885685B (en) 2012-12-24 2012-12-24 Page processing method and apparatus

Country Status (1)

Country Link
CN (1) CN103885685B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090944A (en) * 2014-06-30 2014-10-08 北京金山安全软件有限公司 Switching method and device for browser window content
CN105677343A (en) * 2016-01-04 2016-06-15 上海斐讯数据通信技术有限公司 Mobile terminal convenient operation method and mobile terminal
CN106125905A (en) * 2016-06-13 2016-11-16 广东小天才科技有限公司 Dictation control method and system, and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378878B (en) * 2001-06-28 2005-10-05 Ubinetics Ltd A handheld display device
CN1804773A (en) * 2005-01-12 2006-07-19 宏达国际电子股份有限公司 Hand-held device
CN1926496A (en) * 2004-03-01 2007-03-07 苹果电脑有限公司 Methods and apparatuses for operating a portable device based on an accelerometer
US7289102B2 (en) * 2000-07-17 2007-10-30 Microsoft Corporation Method and apparatus using multiple sensors in a device with a display
CN101082837A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Method, medium and apparatus browsing images
CN101494691A (en) * 2009-03-06 2009-07-29 深圳华为通信技术有限公司 Terminal and method for adjusting display content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289102B2 (en) * 2000-07-17 2007-10-30 Microsoft Corporation Method and apparatus using multiple sensors in a device with a display
GB2378878B (en) * 2001-06-28 2005-10-05 Ubinetics Ltd A handheld display device
CN1926496A (en) * 2004-03-01 2007-03-07 苹果电脑有限公司 Methods and apparatuses for operating a portable device based on an accelerometer
CN1804773A (en) * 2005-01-12 2006-07-19 宏达国际电子股份有限公司 Hand-held device
CN101082837A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Method, medium and apparatus browsing images
CN101494691A (en) * 2009-03-06 2009-07-29 深圳华为通信技术有限公司 Terminal and method for adjusting display content

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090944A (en) * 2014-06-30 2014-10-08 北京金山安全软件有限公司 Switching method and device for browser window content
CN104090944B (en) * 2014-06-30 2018-09-11 北京金山安全软件有限公司 The method of switching the browser window contents and means
CN105677343A (en) * 2016-01-04 2016-06-15 上海斐讯数据通信技术有限公司 Mobile terminal convenient operation method and mobile terminal
CN106125905A (en) * 2016-06-13 2016-11-16 广东小天才科技有限公司 Dictation control method and system, and equipment

Also Published As

Publication number Publication date
CN103885685B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN102147704B (en) Multi-screen bookmark hold gesture
CN102782634B (en) Multi-screen hold and tap gesture
CN102141858B (en) Multi-Screen synchronous slide gesture
CN102147705B (en) Multi-screen bookmark hold gesture
US8935627B2 (en) Mobile terminal and method of controlling operation of the mobile terminal
US9400601B2 (en) Techniques for paging through digital content on touch screen devices
US10067922B2 (en) Automated study guide generation for electronic books
US8019390B2 (en) Statically oriented on-screen transluscent keyboard
KR101861395B1 (en) Detecting gestures involving intentional movement of a computing device
US9542013B2 (en) Method and apparatus for determining recipients of a sharing operation based on an indication associated with a tangible object
US9047006B2 (en) Electronic device system with information processing mechanism and method of operation thereof
CN104205047B (en) Apparatus and method for providing remote user interaction
CN102314472B (en) Method for managing usage history of e-book and terminal performing the method
US9170607B2 (en) Method and apparatus for determining the presence of a device for executing operations
US20130139078A1 (en) Electronic reader and page processing method thereof
US8519971B1 (en) Rendering content around obscuring objects
US20110221777A1 (en) Electronic device with motion sensing function and method for executing functions based on movement of electronic device
CN102221931B (en) Touch type electronic device and a method of moving function icons
CN102645972B (en) Using the mobile computing device to enhance the interpretation of the input event generated when the computing device interaction
US9239674B2 (en) Method and apparatus for providing different user interface effects for different implementation characteristics of a touch event
US20080170752A1 (en) Information Processing Device, Image Movement Instructing Method, and Information Storage Medium
KR20090070491A (en) Apparatus and method for controlling screen using touch screen
EP2508960A2 (en) Gesture recognition on a portable device with force-sensitive housing
RU2632413C2 (en) Flexible device and control method therefor
WO2013093202A1 (en) Method, apparatus and computer program product for graphically enhancing the user interface of a device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant