TWI520043B - Method, device and moving terminal for examining messages - Google Patents

Method, device and moving terminal for examining messages Download PDF

Info

Publication number
TWI520043B
TWI520043B TW103124859A TW103124859A TWI520043B TW I520043 B TWI520043 B TW I520043B TW 103124859 A TW103124859 A TW 103124859A TW 103124859 A TW103124859 A TW 103124859A TW I520043 B TWI520043 B TW I520043B
Authority
TW
Taiwan
Prior art keywords
specified application
unread message
sensor information
rule
message
Prior art date
Application number
TW103124859A
Other languages
Chinese (zh)
Other versions
TW201504918A (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 騰訊科技(深圳)有限公司
Publication of TW201504918A publication Critical patent/TW201504918A/en
Application granted granted Critical
Publication of TWI520043B publication Critical patent/TWI520043B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Description

消息查看方法、裝置和移動終端 Message viewing method, device and mobile terminal

本發明係有關於移動終端技術領域,尤其是有關於一種消息查看方法、裝置和移動終端。 The present invention relates to the field of mobile terminal technologies, and in particular, to a message viewing method, apparatus, and mobile terminal.

隨著移動終端技術的快速發展和智慧移動終端的普及,在智慧移動終端上可以配置很多資訊採集設備,如重力感測器、陀螺儀等,能夠為用戶提供更加豐富的功能。 With the rapid development of mobile terminal technology and the popularity of smart mobile terminals, many information acquisition devices, such as gravity sensors and gyroscopes, can be configured on smart mobile terminals to provide users with more abundant functions.

此外,在智慧移動終端提供的多種應用軟體中,即時通訊軟體的使用率越來越高,相應地,使用者對即時通訊軟體的性能需求也越來越高。而在現有的即時通訊軟體中,智慧移動終端將所有的消息聚合到統一的消息聚合入口。當使用者需要查看消息時,採用手動的方式,退出當前的使用場景,切換到該消息聚合入口,然後再打開需要查看的消息。在實現本發明的過程中,發明人發現現有技術至少存在以下問題:在查看消息時,需要使用者脫離當前的使用場景,切換到消息聚合入口,需要使用者的人工介入,操作繁瑣。 In addition, among the various application software provided by smart mobile terminals, the usage rate of instant messaging software is getting higher and higher, and accordingly, the performance requirements of users for instant messaging software are getting higher and higher. In the existing instant messaging software, the smart mobile terminal aggregates all the messages into a unified message aggregation entry. When the user needs to view the message, manually exit the current usage scenario, switch to the message aggregation portal, and then open the message to be viewed. In the process of implementing the present invention, the inventor has found that at least the following problems exist in the prior art: when viewing a message, the user needs to leave the current usage scenario, switch to the message aggregation entry, and requires manual intervention by the user, which is cumbersome to operate.

為了解決現有技術的問題,本發明實施例提供了一種消息查看方法、裝置和移動終端。所述技術方案如下:第一方面,提供了一種消息查看方法,所述方法包括:在指定應用的執行過程中,獲取移動終端的感測器資訊;檢測所述感測器資訊是否發生變化;當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 In order to solve the problem of the prior art, an embodiment of the present invention provides a message viewing method, apparatus, and mobile terminal. The technical solution is as follows: In a first aspect, a message viewing method is provided, the method includes: acquiring sensor information of a mobile terminal during execution of a specified application; and detecting whether the sensor information changes; Determining whether the change rule of the sensor information conforms to a preset rule when the sensor information changes; and displaying the specified application when detecting that the change rule of the sensor information conforms to a preset rule Unread message.

第二方面,提供了一種消息查看裝置,所述裝置包括:資訊獲取模組,用於在指定應用的執行過程中,獲取移動終端的感測器資訊;變化檢測模組,用於檢測所述感測器資訊是否發生變化;規則判斷模組,用於當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;消息顯示模組,用於當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 A second aspect provides a message viewing device, where the device includes: an information acquisition module, configured to acquire sensor information of the mobile terminal during execution of the specified application; and a change detection module, configured to detect the Whether the sensor information changes; the rule judging module is configured to judge whether the change rule of the sensor information conforms to a preset rule when the information of the sensor changes; the message display module is used to When it is detected that the change rule of the sensor information conforms to the preset rule, the unread message of the specified application is displayed.

協力廠商面,提供了一種移動終端,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上套裝程式含用於進行以下操作的指令:在指定應用的執行過程中,獲取移動終端的感測器資訊;檢測所述感測器資訊是否發生變化; 當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 A mobile terminal, comprising a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one by one or more processors Or more than one package program includes instructions for: obtaining sensor information of the mobile terminal during execution of the specified application; and detecting whether the sensor information changes; Determining whether the change rule of the sensor information conforms to a preset rule when the sensor information changes; and displaying the specified application when detecting that the change rule of the sensor information conforms to a preset rule Unread message.

本發明實施例提供的技術方案帶來的有益效果是:本發明實施例提供的方法、裝置和移動終端,透過檢測該移動終端的感測器資訊的變化,自動顯示消息聚合入口處的未讀消息,無需使用者手動顯示,簡化了使用者的操作。 The technical solution provided by the embodiment of the present invention has the beneficial effects that the method, the device, and the mobile terminal provided by the embodiment of the present invention automatically display the unread at the message aggregation entrance by detecting the change of the sensor information of the mobile terminal. The message, without the user's manual display, simplifies the user's operation.

101~104‧‧‧步驟 101~104‧‧‧Steps

201~207‧‧‧步驟 201~207‧‧‧Steps

110‧‧‧射頻電路 110‧‧‧RF circuit

120‧‧‧記憶體 120‧‧‧ memory

130‧‧‧輸入單元 130‧‧‧Input unit

131‧‧‧觸敏表面 131‧‧‧Touch-sensitive surface

132‧‧‧輸入裝置 132‧‧‧Input device

140‧‧‧顯示單元 140‧‧‧Display unit

141‧‧‧顯示面板 141‧‧‧ display panel

150‧‧‧感測器 150‧‧‧ sensor

160‧‧‧音訊電路 160‧‧‧ audio circuit

170‧‧‧WiFi模組 170‧‧‧WiFi module

180‧‧‧處理器 180‧‧‧ processor

190‧‧‧電源 190‧‧‧Power supply

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Some embodiments of the invention may also be used to obtain other figures from these figures without departing from the art.

圖1是本發明實施例提供的一種消息查看方法的流程圖;圖2a是本發明實施例提供的一種消息查看方法的流程圖;圖2b是本發明實施例提供的未讀消息清單顯示示意圖;圖3是本發明實施例提供的一種消息查看裝置結構示意圖;以及圖4是本發明實施例提供的一種移動終端的結構示意圖。 1 is a flowchart of a message viewing method according to an embodiment of the present invention; FIG. 2 is a flowchart of a message viewing method according to an embodiment of the present invention; FIG. 2b is a schematic diagram of an unread message list display according to an embodiment of the present invention; 3 is a schematic structural diagram of a message viewing apparatus according to an embodiment of the present invention; and FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

下面將結合本發明實施例中的附圖,對本發明實 施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 The present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention. The technical solutions in the embodiments are described clearly and completely, and it is obvious that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

圖1是本發明實施例提供的一種消息查看方法的流程圖。該發明實施例的執行主體為移動終端,參見圖1,所述方法包括:步驟101:在指定應用的執行過程中,獲取移動終端的感測器資訊;步驟102:檢測該感測器資訊是否發生變化;步驟103:當該感測器資訊發生變化時,判斷該感測器資訊的變化規律是否符合預設規則;以及步驟104:當檢測到該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息。 FIG. 1 is a flowchart of a message viewing method according to an embodiment of the present invention. The executor of the embodiment of the present invention is a mobile terminal. Referring to FIG. 1, the method includes: Step 101: Acquire sensor information of the mobile terminal during execution of the specified application; Step 102: Detect whether the sensor information is a change occurs; Step 103: When the sensor information changes, it is determined whether the change rule of the sensor information conforms to a preset rule; and Step 104: when the change rule of the sensor information is detected to meet the preset rule Displays the unread message for the specified application.

本發明實施例提供的方法,透過在指定應用的執行過程中,獲取移動終端的感測器資訊,當該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息。透過檢測該移動終端的感測器資訊的變化,自動顯示消息聚合入口處的未讀消息,無需使用者手動顯示,簡化了使用者的操作。 The method provided by the embodiment of the present invention obtains the sensor information of the mobile terminal during the execution of the specified application, and displays the unread message of the specified application when the change rule of the information of the sensor conforms to the preset rule. By detecting the change of the sensor information of the mobile terminal, the unread message at the message aggregation entrance is automatically displayed, and the user's operation is simplified without the user's manual display.

可替換地,當該感測器資訊發生變化時,判斷該感測器資訊的變化規律是否符合預設規則,包括:該感測器資訊為加速度,判斷該加速度的變化區間是否大於預設閾值,當該加速度的變化區間大於預設閾值時,該感測器資訊的變化規律符合預設規則;或者,該感測 器資訊為角速度,判斷該角速度的變化曲線是否與預設變化曲線匹配,當該變化曲線與該預設變化曲線匹配時,該感測器資訊的變化規律符合預設規則。 Alternatively, when the information of the sensor changes, it is determined whether the change rule of the sensor information conforms to a preset rule, including: the sensor information is an acceleration, and determining whether the change interval of the acceleration is greater than a preset threshold When the change interval of the acceleration is greater than a preset threshold, the change rule of the sensor information conforms to a preset rule; or, the sensing The information of the device is an angular velocity, and it is determined whether the variation curve of the angular velocity matches the preset variation curve. When the variation curve matches the preset variation curve, the change rule of the sensor information conforms to the preset rule.

可替換地,在指定應用的執行過程中,獲取移動終端的感測器資訊之前,該方法還包括:當接收到該指定應用的啟動指令時,檢測該指定應用的快捷標識狀態,該指定快捷標識狀態為開啟狀態或關閉狀態;相應地,在指定應用的執行過程中,獲取移動終端的感測器資訊,包括:當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,獲取移動終端的感測器資訊。 Alternatively, before acquiring the sensor information of the mobile terminal during the execution of the specified application, the method further includes: when receiving the startup instruction of the specified application, detecting a shortcut identifier status of the specified application, the designated shortcut The identifier status is the on state or the off state; correspondingly, in the execution process of the specified application, acquiring the sensor information of the mobile terminal includes: when detecting that the shortcut identifier status of the specified application is the on state, in the specified application During the execution process, the sensor information of the mobile terminal is obtained.

可替換地,當檢測到該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息,包括:當檢測到該感測器資訊的變化規律符合該預設規則時,判斷該指定應用是否存在未讀消息;當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息。 Alternatively, when it is detected that the change rule of the sensor information conforms to the preset rule, displaying the unread message of the specified application includes: when detecting that the change rule of the sensor information conforms to the preset rule, Determining whether the specified application has an unread message; when it is determined that the specified application has an unread message, displaying the unread message of the specified application.

可替換地,當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息,包括:當確定該指定應用存在未讀消息時,顯示該指定應用的最新的一條未讀消息。 Alternatively, when it is determined that the specified application has an unread message, displaying the unread message of the specified application includes: displaying the latest unread message of the specified application when it is determined that the specified application has an unread message.

可替換地,當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息,包括:當確定該指定應用存在未讀消息時,顯示該指定 應用的未讀消息清單,該未讀消息清單包括至少一條未讀消息和該至少一條未讀消息對應的消息標識;當檢測到對該未讀消息清單中任一消息標識的開啟指令時,顯示該開啟指令對應的未讀消息。 Alternatively, when it is determined that the specified application has an unread message, displaying the unread message of the specified application, including: displaying the designation when it is determined that the specified application has an unread message a list of unread messages of the application, the unread message list including at least one unread message and a message identifier corresponding to the at least one unread message; when an open command for identifying any of the unread message lists is detected, the display is displayed The unread message corresponding to the open command.

可替換地,當檢測到該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息之後,該方法還包括:當接收到返回指令時,將當前顯示的介面切換至顯示該指定應用的未讀消息之前的顯示介面。 Alternatively, after detecting that the change rule of the sensor information conforms to the preset rule, after displaying the unread message of the specified application, the method further includes: when receiving the return instruction, switching the currently displayed interface to Displays the display interface before the unread message for the specified app.

可替換地,在指定應用的執行過程中,獲取移動終端的感測器資訊,包括:在該指定應用的執行過程中,透過呼叫配置於該移動終端的至少一個感測器對應的API(Application Programming Interface,應用程式設計發展介面),獲取配置於該移動終端的至少一個感測器的感測器資訊。 Alternatively, the sensor information of the mobile terminal is acquired during the execution of the specified application, and includes: an API corresponding to the at least one sensor configured by the mobile terminal during the execution of the specified application (Application) Programming Interface, an application design development interface, for obtaining sensor information of at least one sensor configured in the mobile terminal.

可替換地,該至少一個感測器為重力感測器和/或陀螺儀;相應地,該至少一個感測器的感測器資訊包括該移動終端的加速度資訊和/或角速度資訊。 Alternatively, the at least one sensor is a gravity sensor and/or a gyroscope; accordingly, the sensor information of the at least one sensor includes acceleration information and/or angular velocity information of the mobile terminal.

上述所有可選技術方案,可以採用任意結合形成本發明的可選實施例,在此不再一一贅述。 All of the above optional technical solutions may be used in any combination to form an optional embodiment of the present invention, and will not be further described herein.

圖2a是本發明實施例提供的一種消息查看方法的流程圖。該發明實施例的執行主體為移動終端,參見圖2a,所述方法包括:步驟201:當移動終端接收到該指定應用的啟動指令時,檢測該指定應用的快捷標識狀態,該指定快捷標識狀態為開啟狀態或關閉狀態; 本發明實施例中,該指定應用可以為即時通訊軟體,還可以為重力遊戲軟體等,本發明實施例對此不做限定。 FIG. 2 is a flowchart of a message viewing method according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is a mobile terminal. Referring to FIG. 2a, the method includes: Step 201: When the mobile terminal receives the startup instruction of the specified application, detecting a shortcut identifier status of the specified application, the designated shortcut identifier status Is turned on or off; In the embodiment of the present invention, the specified application may be an instant messaging software, and may also be a gravity game software or the like, which is not limited by the embodiment of the present invention.

其中,該指定應用的快捷標識狀態為開啟狀態或關閉狀態。當檢測到該指定應用的快捷標識狀態為開啟狀態時,表明使用者啟動了消息快捷查看的功能,則執行後續步驟;當檢測到該指定應用的快捷標識狀態為關閉狀態時,表明使用者關閉了消息快捷查看的功能,則結束。該指定應用的快捷標識狀態可以由技術人員在開發時預設設置為開啟狀態,還可以由使用者在使用過程中設置,本發明實施例對此不做限定。 The shortcut identifier status of the specified application is an open state or a closed state. When it is detected that the shortcut identifier status of the specified application is the on state, indicating that the user starts the function of the message quick view, the subsequent step is performed; when the shortcut identifier status of the specified application is detected to be the off state, the user is turned off. The function of the message quick view ends. The state of the shortcut identifier of the specified application may be preset to the on state by the technician during the development, and may also be set by the user during use, which is not limited by the embodiment of the present invention.

步驟202:當該移動終端檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,透過呼叫配置於該移動終端的至少一個感測器對應的API,獲取配置於該移動終端的至少一個感測器的感測器資訊;本發明實施例應用於該移動終端配置了至少一個感測器的應用場景下,透過應用該至少一個感測器,可以獲取該至少一個感測器的感測器資訊。 Step 202: When the mobile terminal detects that the shortcut identifier status of the specified application is the on state, during the execution of the specified application, the API corresponding to the at least one sensor configured in the mobile terminal is configured to be configured. The sensor information of the at least one sensor of the mobile terminal is applied to the application scenario in which the mobile terminal is configured with at least one sensor, and the at least one sensor can obtain the at least one Sensor information for the sensor.

需要說明的是,該獲取該移動終端的至少一個感測器的感測器資訊的過程可以即時地進行。優選地,當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,透過呼叫配置於該移動終端的至少一個感測器對應的API,即時地獲取配置於該移動終端的至少一個感測器的感測器資訊。 It should be noted that the process of acquiring sensor information of at least one sensor of the mobile terminal can be performed instantaneously. Preferably, when it is detected that the shortcut identifier state of the specified application is the on state, during the execution of the specified application, the API corresponding to the at least one sensor configured by the mobile terminal is acquired by the call, and the configuration is immediately acquired. Sensor information of at least one sensor of the mobile terminal.

可替換地,該至少一個感測器為重力感測器和/或陀螺儀,相應地,該至少一個感測器的感測器資訊包括該移動終端的加速度資訊和/或角速度資訊。 Alternatively, the at least one sensor is a gravity sensor and/or a gyroscope, and correspondingly, the sensor information of the at least one sensor includes acceleration information and/or angular velocity information of the mobile terminal.

相應地,步驟202具體包括:當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,透過呼叫配置於該移動終端的重力感測器對應的API,獲取該移動終端的加速度資訊;或者,當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,透過呼叫配置於該移動終端的陀螺儀對應的API,獲取該移動終端的角速度資訊;或者,當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,透過呼叫配置於該移動終端的重力感測器對應的API和配置於該移動終端的陀螺儀對應的API,分別獲取該移動終端的加速度資訊和角速度資訊。 Correspondingly, the step 202 includes: when detecting that the shortcut identifier state of the specified application is the on state, acquiring the API corresponding to the gravity sensor of the mobile terminal by using the call during the execution of the specified application The acceleration information of the mobile terminal; or, when it is detected that the shortcut identifier state of the specified application is the on state, during the execution of the specified application, acquiring the mobile terminal by calling an API corresponding to the gyroscope of the mobile terminal Or the angular velocity information; or, when detecting that the shortcut identifier state of the specified application is the on state, during the execution of the specified application, the API corresponding to the gravity sensor configured on the mobile terminal and configured on the mobile The API corresponding to the gyroscope of the terminal respectively acquires acceleration information and angular velocity information of the mobile terminal.

步驟203:檢測該感測器資訊是否發生變化;該檢測可以透過對當前獲取到的感測器資訊和上一次獲取到的感測器資訊進行比較實現。另外,該檢測還可以由對感測器資訊的監控實現。 Step 203: Detect whether the sensor information changes. The detection may be performed by comparing the currently acquired sensor information with the last acquired sensor information. In addition, the detection can also be implemented by monitoring the sensor information.

步驟204:當該感測器資訊發生變化時,判斷該感測器資訊的變化規律是否符合預設規則;可替換地,該感測器資訊為加速度,判斷該加速度的變化區間是否大於預設閾值,當該加速度的變化區間大於預設閾值時,該感測器資訊的變化規律符合預設規則;以預設規則對應的預設操作為搖一搖操作為例,當加速度發生變化,且變化區間大於預設閾值時,則認為用戶觸發了搖一搖操作,此時,該感測器資訊的變化規律符合預設規則。 Step 204: When the information of the sensor changes, determine whether the change rule of the sensor information conforms to a preset rule; alternatively, the sensor information is acceleration, and determine whether the change interval of the acceleration is greater than a preset. a threshold value, when the change interval of the acceleration is greater than a preset threshold, the change rule of the sensor information conforms to a preset rule; and the preset operation corresponding to the preset rule is a panning operation, for example, when the acceleration changes, and When the change interval is greater than the preset threshold, it is considered that the user triggers a panning operation. At this time, the change rule of the sensor information conforms to the preset rule.

進一步可替換地,該感測器資訊為角速度,判斷該角速度的變化曲線是否與預設變化曲線匹配,當該變化曲 線與該預設變化曲線匹配時,該感測器資訊的變化規律符合預設規則。 Further alternatively, the sensor information is an angular velocity, and determining whether the change curve of the angular velocity matches the preset variation curve, when the change curve When the line matches the preset variation curve, the change rule of the sensor information conforms to the preset rule.

以該預設規則對應的預設操作為自訂操作為例,使用者可以定義移動終端的某一個姿態改變以觸發顯示,該姿態改變具備與之匹配的角速度預設變化曲線,當前角速度變化曲線與該角速度預設變化曲線匹配時,則確定檢測到該自訂操作,此時,該感測器資訊的變化規律符合預設規則。 Taking the preset operation corresponding to the preset rule as a custom operation, the user may define a certain posture change of the mobile terminal to trigger the display, and the posture change has a matching angular velocity preset change curve and a current angular velocity change curve. When the angular velocity preset change curve is matched, it is determined that the custom operation is detected. At this time, the change rule of the sensor information conforms to the preset rule.

其中,針對配置於該移動終端的不同類型的感測器,該預設規則也不同。本發明實施例中,該預設規則可以包括預設加速度規則和預設角速度規則等。 The preset rule is also different for different types of sensors configured on the mobile terminal. In the embodiment of the present invention, the preset rule may include a preset acceleration rule, a preset angular velocity rule, and the like.

具體地,當該加速度資訊發生變化時,判斷該加速度資訊的變化規律是否符合預設加速度規則;當該角速度資訊發生變化時,判斷該角速度資訊的變化規律是否符合預設角速度規則。當該加速度資訊的變化規律符合預設加速度規則,或者該角速度資訊的變化規律符合預設角速度規則時,均可以認為該感測器資訊符合預設規則。 Specifically, when the acceleration information changes, it is determined whether the change rule of the acceleration information conforms to a preset acceleration rule; when the angular velocity information changes, it is determined whether the change rule of the angular velocity information conforms to a preset angular velocity rule. When the variation law of the acceleration information conforms to the preset acceleration rule, or the variation law of the angular velocity information conforms to the preset angular velocity rule, the sensor information may be considered to conform to the preset rule.

其中,該預設加速度規則的判斷標準可以為該加速度資訊的變化方向,還可以為該加速度資訊的變化區間,則在判斷該加速度資訊的變化規律是否符合預設加速度規則時,可以判斷該加速度資訊的變化方向是否符合該預設加速度規則包括的變化方向,還可以判斷該加速度資訊的變化區間是否符合該預設加速度規則包括的變化區間。該預設角速度規則的判斷標準可以為該角速度資訊的傾斜角度,還可以為該角速度資訊的轉動次數,則在判斷該角速度資訊的變化規律是否符合預設角速度規則時,可以該角速度資訊的傾斜 角度是否符合該預設角速度包括的傾斜角度,還可以判斷該角速度資訊的轉動次數是否符合該預設角速度包括的轉動次數。本發明實施例對具體的判斷標準不做限定。 The determining criterion of the preset acceleration rule may be a change direction of the acceleration information, or may be a change interval of the acceleration information, and determining the acceleration when determining whether the change rule of the acceleration information conforms to a preset acceleration rule Whether the change direction of the information conforms to the change direction included in the preset acceleration rule, and whether the change interval of the acceleration information meets the change interval included in the preset acceleration rule. The criterion for determining the preset angular velocity rule may be the tilt angle of the angular velocity information, or the number of rotations of the angular velocity information, and the tilt of the angular velocity information may be determined when determining whether the change rule of the angular velocity information conforms to the preset angular velocity rule. Whether the angle conforms to the tilt angle included in the preset angular velocity, and whether the number of rotations of the angular velocity information meets the number of rotations included in the preset angular velocity is also determined. The specific judgment standard is not limited in the embodiment of the present invention.

如,假設該預設加速度規則為該移動終端的加速度從0米每平方秒變化為超過12米每平方秒,則當檢測到加速度發生變化,且該加速度從0米每平方秒變化為15米每平方秒時,確定該加速度資訊的變化規律符合該預設加速度規則,也即是該感測器資訊的變化規律符合該預設規則。 For example, if the preset acceleration rule is that the acceleration of the mobile terminal changes from 0 meters per square second to more than 12 meters per square second, when the acceleration is detected to change, the acceleration changes from 0 meters per square second to 15 meters. Every square second, it is determined that the change rule of the acceleration information conforms to the preset acceleration rule, that is, the change rule of the sensor information conforms to the preset rule.

又如,假設該角速度預設變化曲線為該移動終端向右轉動一次後向左轉動至原位置時產生的角速度變化曲線,則當檢測到角速度資訊發生變化,且該角速度的變化曲線與該角速度預設變化曲線匹配時,確定檢測到該移動終端向右轉動一次後向左轉動至原位置,則該角速度資訊的變化規律符合該預設角速度規則,也即是該感測器資訊的變化規律符合該預設規則。 For another example, if the angular velocity preset change curve is an angular velocity change curve generated when the mobile terminal rotates to the right once and then rotates to the left position to the original position, when the detected angular velocity information changes, the angular velocity change curve and the angular velocity are detected. When the preset change curve is matched, it is determined that the mobile terminal is rotated to the right and then rotated to the left and then rotated to the original position, and the change rule of the angular velocity information conforms to the preset angular velocity rule, that is, the change rule of the sensor information. Meet the preset rules.

在步驟204之前,該方法還包括:獲取該預設規則。 Before the step 204, the method further includes: acquiring the preset rule.

其中,該預設規則可以由技術人員在開發時設置,還可以在安裝該指定應用時,啟動設置預設規則功能,獲取使用者輸入的預設操作,將該預設操作對應的變化規律獲取為該預設規則,也可以由使用者在使用過程中,觸發設置預設規則指令,對該預設規則進行添加或刪除等操作。本發明實施例對該預設規則的獲取不做限定。 The preset rule can be set by the technician during development, and when the specified application is installed, the preset rule function is activated, the preset operation input by the user is obtained, and the change rule corresponding to the preset operation is obtained. For the preset rule, the user may trigger the setting of the preset rule instruction during the use process, and add or delete the preset rule. The embodiment of the present invention does not limit the acquisition of the preset rule.

需要說明的是,在獲取到該預設規則之後,可以根據該預設規則包括的預設操作,確定該預設操作對應的感測器為重力感測器、陀螺儀或其他感測器,則在步驟202中, 可以僅根據該預設操作對應的感測器,獲取該感測器資訊,而避免了根據配置於該移動終端的所有感測器分別獲取對應的感測器資訊,簡化了流程,減少延時。 It should be noted that, after the preset rule is obtained, the sensor corresponding to the preset operation may be determined as a gravity sensor, a gyroscope or other sensors according to a preset operation included in the preset rule. Then in step 202, The sensor information can be obtained only according to the sensor corresponding to the preset operation, and the corresponding sensor information is obtained according to all the sensors configured in the mobile terminal, which simplifies the process and reduces the delay.

如,當獲取到該預設規則包括的預設操作為搖一搖操作時,可以確定該搖一搖操作對應的感測器為重力感測器,則在步驟202中,在該指定應用的執行過程中,透過呼叫配置於該移動終端的重力感測器對應的API,獲取該移動終端的加速度資訊即可,無需透過呼叫配置於該移動終端的陀螺儀對應的API,獲取該移動終端的角速度資訊。 For example, when the preset operation included in the preset rule is a panning operation, it may be determined that the sensor corresponding to the panning operation is a gravity sensor, then in step 202, in the specified application During the execution process, the acceleration information of the mobile terminal is obtained by calling the API corresponding to the gravity sensor of the mobile terminal, and the API corresponding to the gyroscope of the mobile terminal is not required to be obtained through the call, and the mobile terminal is acquired. Angular velocity information.

步驟205:當檢測到該感測器資訊的變化規律符合該預設規則時,判斷該指定應用是否存在未讀消息;本發明實施例中,該指定應用的消息均保存在該指定應用的消息聚合器中,透過接收對該消息聚合器的查看指令,可以顯示該查看指令對應的消息。相應地,該步驟205具體為:當檢測到該感測器資訊的變化規律符合該預設規則時,判斷該指定應用的消息聚合器中是否存在未讀消息。 Step 205: When it is detected that the change rule of the sensor information conforms to the preset rule, determine whether the specified application has an unread message. In the embodiment of the present invention, the message of the specified application is saved in the message of the specified application. In the aggregator, by receiving a view instruction to the message aggregator, a message corresponding to the view instruction may be displayed. Correspondingly, the step 205 is specifically: when it is detected that the change rule of the sensor information conforms to the preset rule, determining whether an unread message exists in the message aggregator of the specified application.

進一步地,在判斷該指定應用的消息聚合器中是否存在未讀消息時,可以根據該指定應用的消息聚合器中消息的閱讀標識進行判斷,該閱讀標識包括已讀標識和未讀標識;還可以根據該指定應用的消息聚合器中消息的接收時間和該移動終端對該消息聚合器的存取時間進行判斷,本發明實施例對此不做限定。優選地,遍歷該指定應用的消息聚合器中的各個消息的閱讀標識,當檢測到任一條消息的閱讀標識為未讀標識時,確定該消息聚合器中存在未讀消息。 Further, when determining whether there is an unread message in the message aggregator of the specified application, determining, according to the read identifier of the message in the message aggregator of the specified application, the read identifier includes the read identifier and the unread identifier; The determining time of the message in the message aggregator of the specified application and the access time of the message aggregator of the mobile terminal may be determined by the embodiment of the present invention. Preferably, the read identifier of each message in the message aggregator of the specified application is traversed, and when it is detected that the read identifier of any message is an unread identifier, it is determined that there is an unread message in the message aggregator.

步驟206:當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息,繼續執行步驟203; 本發明實施例中,當檢測到該感測器資訊的變化規律符合該預設規則,且該指定應用存在未讀消息時,自動顯示該消息聚合器中存在的未讀消息,無需使用者手動切換顯示介面,簡化了使用者的操作。 Step 206: When it is determined that the specified application has an unread message, the unread message of the specified application is displayed, and step 203 is continued; In the embodiment of the present invention, when it is detected that the change rule of the sensor information conforms to the preset rule, and the specified application has an unread message, the unread message existing in the message aggregator is automatically displayed, without the user manually Switching the display interface simplifies the user's operation.

該步驟206可以採用以下任一種方式(一)或(二): The step 206 can adopt any one of the following modes (1) or (2):

(一)當確定該指定應用存在未讀消息時,顯示該指定應用的最新的一條未讀消息。 (1) When it is determined that the specified application has an unread message, the latest unread message of the specified application is displayed.

具體地,當確定該指定應用的消息聚合器中存在 未讀消息時,獲取該指定應用的最新的一條未讀消息,並顯示該最新的一條未讀消息。或者,當確定該指定應用的消息聚合器中存在未讀消息時,獲取該指定應用的最新的一條未讀消息的部分內容,並顯示該最新的一條未讀消息的部分內容。 Specifically, when it is determined that the specified application exists in the message aggregator When the message is not read, the latest unread message of the specified application is obtained, and the latest unread message is displayed. Alternatively, when it is determined that there is an unread message in the message aggregator of the specified application, part of the latest unread message of the specified application is obtained, and part of the latest unread message is displayed.

(二)當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息清單,該未讀消息清單包括至少一條未讀消息和該至少一條未讀消息對應的消息標識。 (2) displaying a list of unread messages of the specified application when it is determined that the specified application has an unread message, the unread message list including at least one unread message and a message identifier corresponding to the at least one unread message.

其中,該未讀消息對應的消息標識可以為該未讀消息對應的連絡人資訊,或者為該未讀消息中包括的關鍵字,還可以為該未讀消息內容中的部分內容。本發明實施例對此不做限定。 The message identifier corresponding to the unread message may be the contact information corresponding to the unread message, or the keyword included in the unread message, and may also be part of the content of the unread message. This embodiment of the present invention does not limit this.

具體地,在顯示該指定應用的未讀消息清單時,可以顯示該指定應用所有的未讀消息,也可以顯示該指定應用的未讀消息中的部分未讀消息,具體地,包括以下任一種方式:(1)顯示該指定應用的未讀消息中當前時刻之 前的預設時間間隔內接收到的未讀消息;(2)顯示該指定應用的未讀消息中預設連絡人發送的未讀消息;(3)顯示該指定應用的未讀消息中包括預設關鍵字的未讀消息。 Specifically, when the unread message list of the specified application is displayed, all the unread messages of the specified application may be displayed, and some unread messages in the unread message of the specified application may be displayed, specifically, any of the following Mode: (1) Display the current time in the unread message of the specified application The unread message received in the previous preset time interval; (2) the unread message sent by the preset contact in the unread message of the specified application is displayed; (3) the unread message indicating the specified application includes the pre-read message. Set the unread message for the keyword.

其中,上述三種方式中的預設時間間隔、預設連絡人和預設關鍵字均可以由用戶設置,並在使用過程中進行添加或刪除等操作。且本發明實施例中,並不限於上述三種方式,還可以根據未讀消息的熱度或類型等進行有選擇地顯示,本發明實施例對此不做限定。 The preset time interval, the preset contact person, and the preset keyword in the above three modes may be set by the user, and operations such as adding or deleting are performed during use. The embodiment of the present invention is not limited to the foregoing three modes, and may be selectively displayed according to the heat or type of the unread message, which is not limited by the embodiment of the present invention.

可替換地,當確定該指定應用存在未讀消息,且存在的未讀消息數目達到預設閾值時,顯示該指定應用的未讀消息清單。該預設閾值可以由技術人員在開發時設置,也可以由用戶在使用過程中設置,本發明實施例對此不做限定。其中,使用者在使用過程中可以根據自身查看資訊的需求,設置該預設閾值,對該預設閾值數目的未讀消息統一地查看。相較於每次僅顯示一條未讀消息,顯示預設閾值數目的未讀消息,避免了頻繁顯示未讀消息對使用者當前的使用場景造成的影響。 Alternatively, when it is determined that the specified application has an unread message and the number of existing unread messages reaches a preset threshold, an unread message list of the specified application is displayed. The preset threshold may be set by the technician at the time of development, or may be set by the user during use, which is not limited by the embodiment of the present invention. The preset threshold is set according to the requirement of the user to view the information, and the unread message of the preset threshold number is uniformly viewed. Compared with displaying only one unread message at a time, displaying a preset threshold number of unread messages avoids the effect of frequently displaying unread messages on the user's current usage scenario.

上述步驟(一)和(二)均為可選步驟,可以預設為設置顯示最新的一條未讀消息,也可以顯示該指定應用的多個未讀消息。本發明實施例對此不做限定。其中,在顯示該指定應用的未讀消息時,可以將該未讀消息的內容完整顯示,使得使用者可以查看完整的未讀消息,還可以顯示該未讀消息對應的消息標識,即顯示該未讀消息對應的連絡人資訊或部分內容,對使用者進行消息提示。 The above steps (1) and (2) are optional steps, and may be preset to display the latest unread message, or display multiple unread messages of the specified application. This embodiment of the present invention does not limit this. The content of the unread message may be completely displayed when the unread message of the specified application is displayed, so that the user can view the complete unread message, and display the message identifier corresponding to the unread message, that is, display the The contact information or part of the content corresponding to the unread message is prompted by the user.

相應地,在步驟(二)之後,該方法還包括:當檢測到對該未讀消息清單中任一消息標識的開啟指令時,顯示該開啟指令對應的未讀消息。 Correspondingly, after the step (2), the method further comprises: when detecting the opening instruction of the message identifier in the unread message list, displaying the unread message corresponding to the opening instruction.

具體地,該移動終端透過該未讀消息清單對使用者進行未讀消息提示,當使用者需要查看該未讀消息清單中的任一未讀消息時,點擊該需要查看的未讀消息的消息標識,觸發該需要查看的未讀消息的消息標識的開啟指令,當該移動終端檢測到該開啟指令時,顯示該需要查看的未讀消息。 Specifically, the mobile terminal prompts the user to read the unread message through the unread message list, and clicks the message of the unread message to be viewed when the user needs to view any unread message in the unread message list. And an opening instruction for triggering the message identifier of the unread message to be viewed, and when the mobile terminal detects the opening instruction, displaying the unread message to be viewed.

可替換地,在該移動終端顯示在該未讀消息清單時,獲取該未讀消息清單中各個未讀消息的預設字元數的內容,當檢測到該開啟指令時,獲取該開啟指令對應的未讀消息的全部內容,並顯示該開啟指令對應的未讀消息的全部內容。 Alternatively, when the mobile terminal displays the unread message list, the content of the preset number of characters of each unread message in the unread message list is obtained, and when the open command is detected, the open command is acquired. The entire contents of the unread message, and display the entire contents of the unread message corresponding to the open command.

步驟207:當接收到返回指令時,將當前顯示的介面切換至顯示該指定應用的未讀消息之前的顯示介面。 Step 207: When receiving the return instruction, switch the currently displayed interface to the display interface before the unread message of the specified application is displayed.

與現有技術的區別在於,在該指定應用的執行過程中查看未讀消息時,當使用者需要返回顯示未讀消息之前的顯示介面時,觸發返回指令即可,本發明實施例中,避免了使用者需要先手動返回到該指定應用的主介面,再手動跳轉到顯示未讀消息之前的顯示介面,操作簡便。 The difference between the prior art and the prior art is that when the unread message is viewed during the execution of the specified application, when the user needs to return to the display interface before the unread message is displayed, the return instruction is triggered, which is avoided in the embodiment of the present invention. The user needs to manually return to the main interface of the specified application, and then manually jump to the display interface before the unread message is displayed, which is easy to operate.

圖2b是本發明實施例提供的未讀消息清單顯示示意圖。參見圖2b,假設該預設規則為搖一搖操作,當檢測到用戶觸發搖一搖操作時,顯示如圖2b所示的未讀消息清單。該未讀消息清單中包括三條未讀消息的消息標識,分別為連絡人“暱稱1”的頭像、暱稱以及第一條未讀消息的部分內 容和接收時間、連絡人“暱稱2”的頭像、暱稱以及第二條未讀消息的部分內容和接收時間、連絡人“暱稱3”的頭像、暱稱以及第三條未讀消息的部分內容和接收時間。當使用者需要查看第一條未讀消息時,點擊第一條未讀消息的消息標識,該移動終端顯示第一條未讀消息的完整資訊。對於即時通訊軟體,當使用者點擊第一條未讀消息的消息標識時,進入該使用者與連絡人“暱稱1”的會話介面,使用者可以與連絡人“暱稱1”進行會話。當使用者需要返回顯示該未讀消息清單之前的顯示介面時,透過對左下角處的“返回”按鍵的點擊,觸發該返回指令,將當前顯示的介面切換至顯示該未讀消息清單之前的顯示介面。 FIG. 2b is a schematic diagram showing the display of an unread message list according to an embodiment of the present invention. Referring to FIG. 2b, it is assumed that the preset rule is a panning operation, and when it is detected that the user triggers a panning operation, a list of unread messages as shown in FIG. 2b is displayed. The unread message list includes message identifiers of three unread messages, which are respectively the avatar, nickname, and part of the first unread message of the contact person "nickname 1" Content and reception time, contact person nickname 2 nickname, nickname and part of the second unread message and receiving time, contact person nickname 3 avatar, nickname and part of the third unread message and Receive time. When the user needs to view the first unread message, the message identifier of the first unread message is clicked, and the mobile terminal displays the complete information of the first unread message. For the instant messaging software, when the user clicks on the message identifier of the first unread message, the user enters the conversation interface of the user and the contact person "nickname 1", and the user can talk with the contact person "nickname 1". When the user needs to return to the display interface before displaying the unread message list, the return command is triggered by clicking on the "return" button at the lower left corner, and the currently displayed interface is switched to display before the unread message list is displayed. Display interface.

本發明實施例提供的方法,透過在指定應用的執行過程中,獲取移動終端的感測器資訊,當該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息。透過檢測該移動終端的感測器資訊的變化,自動顯示消息聚合入口處的未讀消息,無需使用者手動顯示,且當接收到返回指令時,將當前顯示的介面切換至顯示該指定應用的未讀消息之前的顯示介面,避免了使用者需要先手動返回到該指定應用的主介面,再手動跳轉到顯示未讀消息之前的顯示介面,操作簡便。 The method provided by the embodiment of the present invention obtains the sensor information of the mobile terminal during the execution of the specified application, and displays the unread message of the specified application when the change rule of the information of the sensor conforms to the preset rule. Automatically displaying the unread message at the message aggregation entry by detecting the change of the sensor information of the mobile terminal, without the user manually displaying, and when receiving the return instruction, switching the currently displayed interface to display the specified application. The display interface before the unread message avoids the user having to manually return to the main interface of the specified application, and then manually jumps to the display interface before the unread message is displayed, which is easy to operate.

圖3是本發明實施例提供的一種消息查看裝置結構示意圖,參見圖3,所述裝置包括:資訊獲取模組301、變化檢測模組302、規則判斷模組303、消息顯示模組304;其中,資訊獲取模組301用於在指定應用的執行過程中,獲取移動終端的感測器資訊;變化檢測模組302與資訊獲取模組301連接,用於檢測該感測器資訊是否發生變 化;規則判斷模組303與變化檢測模組302連接,用於當該感測器資訊發生變化時,判斷該感測器資訊的變化規律是否符合預設規則;消息顯示模組304與規則判斷模組303連接,用於當檢測到該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息。 3 is a schematic structural diagram of a message viewing apparatus according to an embodiment of the present invention. Referring to FIG. 3, the apparatus includes: an information acquiring module 301, a change detecting module 302, a rule determining module 303, and a message display module 304; The information acquisition module 301 is configured to acquire the sensor information of the mobile terminal during the execution of the specified application. The change detection module 302 is connected to the information acquisition module 301 for detecting whether the sensor information changes. The rule determination module 303 is connected to the change detection module 302, and is configured to determine whether the change rule of the sensor information conforms to a preset rule when the sensor information changes; the message display module 304 and the rule judgment The module 303 is connected to display an unread message of the specified application when it is detected that the change rule of the sensor information conforms to the preset rule.

可替換地,該規則判斷模組303包括:第一規則判斷單元,用於判斷該加速度的變化區間是否大於預設閾值,當該加速度的變化區間大於預設閾值時,該感測器資訊的變化規律符合預設規則;或者,第二規則判斷單元,用於判斷該角速度的變化曲線是否與預設變化曲線匹配,當該變化曲線與該預設變化曲線匹配時,該感測器資訊的變化規律符合預設規則。 Alternatively, the rule determination module 303 includes: a first rule determining unit, configured to determine whether the change interval of the acceleration is greater than a preset threshold, and when the change interval of the acceleration is greater than a preset threshold, the sensor information is The change rule conforms to the preset rule; or the second rule determining unit is configured to determine whether the change curve of the angular velocity matches the preset change curve, and when the change curve matches the preset change curve, the sensor information is The law of change conforms to the preset rules.

可替換地,該裝置還包括:標識狀態檢測模組,用於當接收到該指定應用的啟動指令時,檢測該指定應用的快捷標識狀態,該指定應用的快捷標識狀態為開啟狀態或關閉狀態;相應地,該資訊獲取模組301用於當檢測到該指定應用的快捷標識狀態為開啟狀態時,在該指定應用的執行過程中,獲取移動終端的感測器資訊。 Alternatively, the device further includes: an identifier status detecting module, configured to detect a shortcut identifier status of the specified application when the startup instruction of the specified application is received, where the shortcut identifier status of the specified application is an open state or a closed state Correspondingly, the information obtaining module 301 is configured to acquire sensor information of the mobile terminal during execution of the specified application when detecting that the shortcut identifier state of the specified application is the on state.

可替換地,該消息顯示模組304包括:消息判斷單元,用於當檢測到該感測器資訊的變化規律符合該預設規則時,判斷該指定應用是否存在未讀消息;消息顯示單元,用於當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息。 Alternatively, the message display module 304 includes: a message determining unit, configured to: when it is detected that the change rule of the sensor information conforms to the preset rule, determine whether the specified application has an unread message; the message display unit, For displaying an unread message of the specified application when it is determined that the specified application has an unread message.

可替換地,該消息顯示單元用於當確定該指定應 用存在未讀消息時,顯示該指定應用的最新的一條未讀消息。 Alternatively, the message display unit is configured to determine that the designation should be Displays the latest unread message for the specified application when there is an unread message.

可替換地,該消息顯示單元用於當確定該指定應用存在未讀消息時,顯示該指定應用的未讀消息清單,該未讀消息清單包括至少一條未讀消息和該至少一條未讀消息對應的消息標識;當檢測到對該未讀消息清單中任一消息標識的開啟指令時,顯示該開啟指令對應的未讀消息。 Alternatively, the message display unit is configured to display an unread message list of the specified application when it is determined that the specified application has an unread message, the unread message list including at least one unread message corresponding to the at least one unread message The message identifier; when an open command for identifying any one of the unread message lists is detected, an unread message corresponding to the open command is displayed.

可替換地,該裝置還包括:返回模組,用於當接收到返回指令時,將當前顯示的介面切換至顯示該指定應用的未讀消息之前的顯示介面。 Alternatively, the apparatus further includes: a return module configured to, when receiving the return instruction, switch the currently displayed interface to a display interface prior to displaying the unread message of the specified application.

可替換地,該資訊獲取模組301用於在該指定應用的執行過程中,透過呼叫配置於該移動終端的至少一個感測器對應的應用程式設計發展介面API,獲取配置於該移動終端的至少一個感測器的感測器資訊。 Alternatively, the information acquisition module 301 is configured to: during the execution of the specified application, acquire an application design development interface API corresponding to the at least one sensor configured on the mobile terminal, and obtain the configuration on the mobile terminal. Sensor information of at least one sensor.

可替換地,該至少一個感測器為重力感測器和/或陀螺儀;相應地,該至少一個感測器的感測器資訊包括該移動終端的加速度資訊和/或角速度資訊。 Alternatively, the at least one sensor is a gravity sensor and/or a gyroscope; accordingly, the sensor information of the at least one sensor includes acceleration information and/or angular velocity information of the mobile terminal.

本發明實施例提供的裝置,透過在指定應用的執行過程中,獲取移動終端的感測器資訊,當該感測器資訊的變化規律符合預設規則時,顯示該指定應用的未讀消息。透過檢測該移動終端的感測器資訊的變化,自動顯示消息聚合入口處的未讀消息,無需使用者手動顯示,且當接收到返回指令時,將當前顯示的介面切換至顯示該指定應用的未讀消息之前的顯示介面,避免了使用者需要先手動返回到該指定應用的主介面,再手動跳轉到顯示未讀消息之前的顯示介面,操作簡便。 The device provided by the embodiment of the present invention obtains the sensor information of the mobile terminal during the execution of the specified application, and displays the unread message of the specified application when the change rule of the information of the sensor conforms to the preset rule. Automatically displaying the unread message at the message aggregation entry by detecting the change of the sensor information of the mobile terminal, without the user manually displaying, and when receiving the return instruction, switching the currently displayed interface to display the specified application. The display interface before the unread message avoids the user having to manually return to the main interface of the specified application, and then manually jumps to the display interface before the unread message is displayed, which is easy to operate.

需要說明的是:上述實施例提供的消息查看的裝 置在消息查看時,僅以上述各功能模組的劃分進行舉例說明,實際應用中,可以根據需要而將上述功能分配由不同的功能模組完成,即將移動終端的內部結構劃分成不同的功能模組,以完成以上描述的全部或者部分功能。另外,上述實施例提供的消息查看的裝置與消息查看的方法實施例屬於同一構思,其具體實現過程詳見方法實施例,這裡不再贅述。 It should be noted that the message viewing device provided in the above embodiment is installed. When the message is viewed, only the division of the above functional modules is illustrated. In practical applications, the above function assignment can be completed by different functional modules according to requirements, that is, the internal structure of the mobile terminal is divided into different functions. Modules to perform all or part of the functions described above. In addition, the device for viewing the message provided by the foregoing embodiment is the same as the method for the method for viewing the message. For the specific implementation process, refer to the method embodiment, and details are not described herein again.

圖4是本發明實施例提供的一種移動終端的結構示意圖。該移動終端可以用於實施上述實施例中提供的消息查看方法。具體來講:移動終端400可以包括射頻電路110、包括有一個或一個以上電腦可讀儲存介質的記憶體120、輸入單元130、顯示單元140、感測器150、音訊電路160、WiFi模組170、包括有一個或者一個以上處理核心的處理器180、以及電源190等部件。本領域技術人員可以理解,圖4中示出的移動終端結構並不構成對移動終端的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件佈置。 FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal can be used to implement the message viewing method provided in the above embodiments. Specifically, the mobile terminal 400 can include a radio frequency circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi module 170. A processor 180 having one or more processing cores, and a power supply 190 and the like are included. It will be understood by those skilled in the art that the mobile terminal structure shown in FIG. 4 does not constitute a limitation of the mobile terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.

其中,射頻電路110可用於收發資訊或通話過程中,信號的接收和發送。特別地,射頻電路110將基站的下行資訊接收後,交由一個或者一個以上處理器180處理;另外,將涉及上行的資料發送給基站。通常,作為通信單元的射頻電路包括但不限於天線、至少一個放大器、調諧器、一個或多個振盪器、使用者身份模組(SIM)卡、收發信機、耦合器、LNA(Low Noise Amplifier,低雜訊放大器)、雙工器等。此外,射頻電路110還可以透過無線通訊與網路和其他設備通信。所述無線通訊可以使用任一通信標準或協定,包括但不限於GSM(Global System of Mobile communication,全球移動通訊系統)、GPRS(General Packet Radio Service,通用分組無線服務)、CDMA(Code Division Multiple Access,碼分多址)、 WCDMA(Wideband Code Division Multiple Access,寬頻碼分多址)、LTE(Long Term Evolution,長期演進)、電子郵件、SMS(Short Messaging Service,短消息服務)等。記憶體120可用於儲存軟體程式以及模組,處理器180透過執行儲存在記憶體120的軟體程式以及模組,從而執行各種功能應用以及資料處理。記憶體120可主要包括儲存程式區和儲存資料區,其中,儲存程式區可儲存作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;儲存資料區可儲存根據移動終端400的使用所創建的資料(比如音訊資料、電話本等)等。此外,記憶體120可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。相應地,記憶體120還可以包括記憶體控制器,以提供處理器180和輸入單元130對記憶體120的訪問。 The radio frequency circuit 110 can be used for transmitting and receiving information and receiving and transmitting signals during a call. Specifically, the radio frequency circuit 110 receives the downlink information of the base station and then processes it by one or more processors 180; in addition, transmits the data related to the uplink to the base station. Generally, the radio frequency circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a user identity module (SIM) card, a transceiver, a coupler, and an LNA (Low Noise Amplifier). , low noise amplifier), duplexer, etc. In addition, the RF circuit 110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , code division multiple access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like. The memory 120 can be used to store software programs and modules. The processor 180 executes various function applications and data processing by executing software programs and modules stored in the memory 120. The memory 120 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one function required application (such as a sound playing function, an image playing function, etc.); The data (such as audio data, phone book, etc.) created according to the use of the mobile terminal 400 is stored. In addition, the memory 120 may include a high speed random access memory, and may also include a non-volatile memory such as at least one disk memory device, a flash memory device, or other volatile solid memory device. Accordingly, the memory 120 can also include a memory controller to provide access to the memory 120 by the processor 180 and the input unit 130.

輸入單元130可用於接收輸入的數位或字元資訊,以及產生與使用者設置以及功能控制有關的鍵盤、滑鼠、操作杆、光學或者軌跡球信號輸入。具體地,輸入單元130可包括觸敏表面131以及其他輸入裝置132。觸敏表面131,也稱為觸摸顯示幕或者觸控板,可收集用戶在其上或附近的觸摸操作(比如用戶使用手指、觸筆等任何適合的物體或附件在觸敏表面131上或在觸敏表面131附近的操作),並根據預先設定的程式驅動相應的連接裝置。可選的,觸敏表面131可包括觸摸檢測裝置和觸摸控制器兩個部分。其中,觸摸檢測裝置檢測使用者的觸摸方位,並檢測觸摸操作帶來的信號,將信號傳送給觸摸控制器;觸摸控制器從觸摸檢測裝置上接收觸摸資訊,並將它轉換成觸點座標,再送給處理器180,並能接收處理器180發來的命令並加以執行。此外,可以採用電阻式、電容式、紅外線以及表面聲波等多種類型實現觸敏表面 131。除了觸敏表面131,輸入單元130還可以包括其他輸入裝置132。具體地,其他輸入裝置132可以包括但不限於物理鍵盤、功能鍵(比如音量控制按鍵、開關按鍵等)、軌跡球、滑鼠、操作杆等中的一種或多種。 The input unit 130 can be configured to receive input digit or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into a contact coordinate, The processor 180 is sent to the processor 180 and can receive commands from the processor 180 and execute them. In addition, resistive, capacitive, infrared, and surface acoustic waves can be used to achieve touch-sensitive surfaces. 131. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.

顯示單元140可用於顯示由使用者輸入的資訊或提供給使用者的資訊以及移動終端400的各種圖形使用者介面,這些圖形使用者介面可以由圖形、文本、圖示、視頻和其任意組合來構成。顯示單元140可包括顯示面板141,可選的,可以採用LCD(Liquid Crystal Display,液晶顯示器)、OLED(Organic Light-Emitting Diode,有機發光二極體)等形式來配置顯示面板141。進一步的,觸敏表面131可覆蓋顯示面板141,當觸敏表面131檢測到在其上或附近的觸摸操作後,傳送給處理器180以確定觸摸事件的類型,隨後處理器180根據觸摸事件的類型在顯示面板141上提供相應的視覺輸出。雖然在圖4中,觸敏表面131與顯示面板141是作為兩個獨立的部件來實現輸入和輸人功能,但是在某些實施例中,可以將觸敏表面131與顯示面板141集成而實現輸入和輸出功能。 The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 400, which can be composed of graphics, text, graphics, video, and any combination thereof. Composition. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 to achieve Input and output functions.

移動終端400還可包括至少一種感測器150,比如光感測器、運動感測器以及其他感測器。具體地,光感測器可包括環境光感測器及接近感測器,其中,環境光感測器可根據環境光線的明暗來調節顯示面板141的亮度,接近感測器可在移動終端400移動到耳邊時,關閉顯示面板141和/或背光。作為運動感測器的一種,重力加速度感測器可檢測各個方向上(一般為三軸)加速度的大小,靜止時可檢測出重力的大小及方向,可用於識別手機姿態的應用(比如橫豎屏切換、相關遊戲、磁力計姿態校準)、振動識別相關功能(比如計步器、敲擊)等;至於移動終端400還可配置的陀螺儀、氣壓計、濕度計、溫度計、紅外線感測器等其他感測器,在此 不再贅述。 The mobile terminal 400 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may be at the mobile terminal 400. When moving to the ear, the display panel 141 and/or the backlight are turned off. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile terminal 400, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. Other sensors, here No longer.

音訊電路160、揚聲器161,傳聲器162可提供使用者與移動終端400之間的音訊介面。音訊電路160可將接收到的音訊資料轉換後的電信號,傳輸到揚聲器161,由揚聲器161轉換為聲音信號輸出;另一方面,傳聲器162將收集的聲音信號轉換為電信號,由音訊電路160接收後轉換為音訊資料,再將音訊資料輸出處理器180處理後,經RF電路110以發送給比如另一移動終端,或者將音訊資料輸出至記憶體120以便進一步處理。音訊電路160還可能包括耳塞插孔,以提供外設耳機與移動終端400的通信。 The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 400. The audio circuit 160 can transmit the received electrical signal converted by the audio data to the speaker 161 and be converted into a sound signal output by the speaker 161. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, and the audio circuit 160 is used by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the mobile terminal 110 via the RF circuit 110, or output the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 400.

為了實現無線通訊,該移動終端上可以配置有WiFi模組170。WiFi屬於短距離無線傳輸技術,移動終端400透過WiFi模組170可以說明使用者收發電子郵件、流覽網頁和訪問流式媒體等,它為用戶提供了無線的寬頻互聯網訪問。雖然圖4示出了WiFi模組170,但是可以理解的是,其並不屬於移動終端400的必須構成,完全可以根據需要在不改變發明的本質的範圍內而省略。 In order to implement wireless communication, the mobile terminal may be configured with a WiFi module 170. WiFi is a short-range wireless transmission technology, and the mobile terminal 400 can describe the user to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users. Although FIG. 4 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 400, and may be omitted as needed within the scope of not changing the essence of the invention.

處理器180是移動終端400的控制中心,利用各種介面和線路連接整個手機的各個部分,透過執行儲存在記憶體120內的軟體程式和/或模組,以及呼叫儲存在記憶體120內的資料,執行移動終端400的各種功能和處理資料,從而對手機進行整體監控。可選的,處理器180可包括一個或多個處理核心;較佳地,處理器180可集成應用處理器和調製解調處理器,其中,應用處理器主要處理作業系統、使用者介面和應用程式等,調製解調處理器主要處理無線通訊。可以理解的是,上述調製解調處理器也可以不集成到處理器180中。 The processor 180 is a control center of the mobile terminal 400, and connects various parts of the entire mobile phone by using various interfaces and lines, by executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120. The various functions and processing data of the mobile terminal 400 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, the user interface, and the application. Programs, etc., the modem processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 180.

移動終端400還包括給各個部件供電的電源190(比如電池),較佳地,電源可以透過電源管理系統與處理器 180邏輯相連,從而透過電源管理系統實現管理充電、放電、以及功耗管理等功能。電源190還可以包括一個或一個以上的直流或交流電源、再充電系統、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。 The mobile terminal 400 also includes a power source 190 (such as a battery) that supplies power to the various components. Preferably, the power source can pass through the power management system and the processor. The 180 logic is connected to manage charging, discharging, and power management functions through the power management system. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

儘管未示出,移動終端400還可以包括攝像頭、藍牙模組等,在此不再贅述。具體在本實施例中,移動終端的顯示單元是觸控式螢幕顯示器,移動終端還包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上套裝程式含用於進行以下操作的指令:在指定應用的執行過程中,獲取移動終端的感測器資訊;檢測所述感測器資訊是否發生變化;當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 Although not shown, the mobile terminal 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, and the mobile terminal further includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured. Executing the one or more package programs by one or more processors includes instructions for: acquiring sensor information of the mobile terminal during execution of the specified application; detecting the sensor information Whether a change occurs; when the sensor information changes, it is determined whether the change rule of the sensor information conforms to a preset rule; when it is detected that the change rule of the sensor information conforms to a preset rule, the display The unread message of the specified application.

可替換地,還包含進行以下操作的指令:所述感測器資訊為加速度,判斷所述加速度的變化區間是否大於預設閾值,當所述加速度的變化區間大於預設閾值時,所述感測器資訊的變化規律符合預設規則;或者,所述感測器資訊為角速度,判斷所述角速度的變化曲線是否與預設變化曲線匹配,當所述變化曲線與所述預設變化曲線匹配時,所述感測器資訊的變化規律符合預設規則。 Optionally, the method further includes: the sensor information is acceleration, determining whether the change interval of the acceleration is greater than a preset threshold, and when the change interval of the acceleration is greater than a preset threshold, the sense The change rule of the tester information conforms to a preset rule; or the sensor information is an angular velocity, and it is determined whether the change curve of the angular velocity matches a preset change curve, and when the change curve matches the preset change curve The change rule of the sensor information conforms to a preset rule.

可替換地,還包含進行以下操作的指令:當接收到所述指定應用的啟動指令時,檢測所述指定應用的快捷標識狀態,所述指定應用的快捷標識狀態為 開啟狀態或關閉狀態;相應地,還包含進行以下操作的指令:當檢測到所述指定應用的快捷標識狀態為開啟狀態時,在所述指定應用的執行過程中,獲取移動終端的感測器資訊。 Alternatively, the method further includes: when receiving the startup instruction of the specified application, detecting a shortcut identifier status of the specified application, where the shortcut identifier status of the specified application is An open state or a closed state; correspondingly, an instruction to: acquire a sensor of the mobile terminal during execution of the specified application when detecting that the shortcut identifier state of the specified application is an open state News.

可替換地,還包含進行以下操作的指令:當檢測到所述感測器資訊的變化規律符合所述預設規則時,判斷所述指定應用是否存在未讀消息;當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息。 Alternatively, the method further includes: when detecting that the change rule of the sensor information conforms to the preset rule, determining whether the specified application has an unread message; when determining that the specified application exists When the message is not read, an unread message of the specified application is displayed.

可替換地,還包含進行以下操作的指令:當確定所述指定應用存在未讀消息時,顯示所述指定應用的最新的一條未讀消息。 Alternatively, an instruction is further included to: display an up-to-date unread message of the specified application when it is determined that the specified application has an unread message.

可替換地,還包含進行以下操作的指令:當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息清單,所述未讀消息清單包括至少一條未讀消息和所述至少一條未讀消息對應的消息標識;當檢測到對所述未讀消息清單中任一消息標識的開啟指令時,顯示所述開啟指令對應的未讀消息。 Alternatively, an instruction is further included to: display an unread message list of the specified application when it is determined that the specified application has an unread message, the unread message list including at least one unread message and the The message identifier corresponding to the at least one unread message; when an open command for identifying any of the unread message lists is detected, the unread message corresponding to the open command is displayed.

可替換地,還包含進行以下操作的指令:當接收到返回指令時,將當前顯示的介面切換至顯示所述指定應用的未讀消息之前的顯示介面。 Alternatively, instructions are also included that, when a return instruction is received, switches the currently displayed interface to a display interface prior to displaying the unread message of the specified application.

可替換地,還包含進行以下操作的指令:在所述指定應用的執行過程中,透過呼叫配置於所述移動終端的至少一個感測器對應的應用程式設計發展介面API,獲取配置於所述移動終端的至少一個感測器的感測器資訊。 Alternatively, the method further includes: an application design development interface API corresponding to the at least one sensor configured on the mobile terminal by the call during the execution of the specified application, and acquiring the configuration in the Sensor information of at least one sensor of the mobile terminal.

可替換地,所述至少一個感測器為重力感測器和 /或陀螺儀;相應地,所述至少一個感測器的感測器資訊包括所述移動終端的加速度資訊和/或角速度資訊。 Alternatively, the at least one sensor is a gravity sensor and And/or a gyroscope; correspondingly, the sensor information of the at least one sensor includes acceleration information and/or angular velocity information of the mobile terminal.

本領域普通技術人員可以理解實現上述實施例的全部或部分步驟可以透過硬體來完成,也可以透過程式來指令相關的硬體完成,所述的程式可以儲存於一種電腦可讀儲存介質中,上述提到的儲存介質可以是唯讀記憶體,磁片或光碟等。 A person skilled in the art can understand that all or part of the steps of implementing the foregoing embodiments may be implemented by hardware, or may be executed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned above may be a read only memory, a magnetic sheet or a compact disc or the like.

以上所述僅為本發明的較佳實施例,並不用以限制本發明,凡在本發明的精神和原則之內,所作的任何修改、等同替換、改進等,均應包含在本發明的保護範圍之內。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

101~104‧‧‧步驟 101~104‧‧‧Steps

Claims (17)

一種消息查看方法,所述方法包括以下步驟:在指定應用的執行過程中,獲取移動終端的感測器資訊,在所述指定應用的執行過程中,透過呼叫配置於所述移動終端的至少一個感測器對應的應用程式設計發展介面API,獲取配置於所述移動終端的至少一個感測器的感測器資訊;檢測所述感測器資訊是否發生變化;當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;以及當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 A message viewing method, the method comprising the steps of: acquiring sensor information of a mobile terminal during execution of the specified application, and configuring at least one of the mobile terminal by using a call during execution of the specified application The application corresponding to the sensor design development interface API acquires sensor information of at least one sensor disposed in the mobile terminal; detects whether the sensor information changes; when the sensor information occurs When the change is made, it is determined whether the change rule of the sensor information conforms to the preset rule; and when it is detected that the change rule of the sensor information conforms to the preset rule, the unread message of the specified application is displayed. 如申請專利範圍第1項所述的方法,其中當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則,包括以下步驟:所述感測器資訊為加速度,判斷所述加速度的變化區間是否大於預設閾值,當所述加速度的變化區間大於預設閾值時,所述感測器資訊的變化規律符合預設規則;或,所述感測器資訊為角速度,判斷所述角速度的變化曲線是否與預設變化曲線匹配,當所述變化曲線與所述預設變化曲線匹配時,所述感測器資訊的變化規律符合預設規則。 The method of claim 1, wherein when the sensor information changes, determining whether the change rule of the sensor information conforms to a preset rule comprises the following steps: the sensor information For the acceleration, determining whether the change interval of the acceleration is greater than a preset threshold, when the change interval of the acceleration is greater than a preset threshold, the change rule of the sensor information conforms to a preset rule; or, the sensor The information is an angular velocity, and it is determined whether the change curve of the angular velocity matches a preset change curve. When the change curve matches the preset change curve, the change rule of the sensor information conforms to a preset rule. 如申請專利範圍第1項所述的方法,其中在指定應用的執行過程中,獲取移動終端的感測器資訊之前,所述方法還 包括以下步驟:當接收到所述指定應用的啟動指令時,檢測所述指定應用的快捷標識狀態,所述指定應用的快捷標識狀態為開啟狀態或關閉狀態;相應地,在指定應用的執行過程中,獲取移動終端的感測器資訊,包括以下步驟:當檢測到所述指定應用的快捷標識狀態為開啟狀態時,在所述指定應用的執行過程中,獲取移動終端的感測器資訊。 The method of claim 1, wherein the method further comprises: before acquiring the sensor information of the mobile terminal during execution of the specified application The method includes the following steps: when receiving the startup instruction of the specified application, detecting a shortcut identifier status of the specified application, where the shortcut identifier status of the specified application is an open state or a closed state; and correspondingly, performing an execution process of the specified application The obtaining the sensor information of the mobile terminal includes the following steps: when detecting that the shortcut identifier status of the specified application is the on state, acquiring sensor information of the mobile terminal during execution of the specified application. 如申請專利範圍第1項所述的方法,其中當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息,包括以下步驟:當檢測到所述感測器資訊的變化規律符合所述預設規則時,判斷所述指定應用是否存在未讀消息;以及當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息。 The method of claim 1, wherein when detecting that the change rule of the sensor information conforms to a preset rule, displaying the unread message of the specified application includes the following steps: when detecting the When the change rule of the sensor information conforms to the preset rule, determining whether the specified application has an unread message; and when determining that the specified application has an unread message, displaying the unread message of the specified application. 如申請專利範圍第4項所述的方法,其中當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息,包括以下步驟:當確定所述指定應用存在未讀消息時,顯示所述指定應用的最新的一條未讀消息。 The method of claim 4, wherein when it is determined that the specified application has an unread message, displaying the unread message of the specified application includes the following steps: when it is determined that the specified application has an unread message , displaying the latest unread message for the specified application. 如申請專利範圍第4項所述的方法,其中當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息,包 括以下步驟:當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息清單,所述未讀消息清單包括至少一條未讀消息和所述至少一條未讀消息對應的消息標識;以及當檢測到對所述未讀消息清單中任一消息標識的開啟指令時,顯示所述開啟指令對應的未讀消息。 The method of claim 4, wherein when it is determined that the specified application has an unread message, the unread message of the specified application is displayed, And including the following steps: displaying, when the specified application has an unread message, displaying an unread message list of the specified application, the unread message list including at least one unread message and a message corresponding to the at least one unread message An identifier; and when an open command for identifying any one of the unread message lists is detected, an unread message corresponding to the open command is displayed. 如申請專利範圍第1-6項任一項所述的方法,其中當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息之後,所述方法還包括以下步驟:當接收到返回指令時,將當前顯示的介面切換至顯示所述指定應用的未讀消息之前的顯示介面。 The method of any one of claims 1-6, wherein, after detecting that the change rule of the sensor information conforms to a preset rule, after displaying the unread message of the specified application, the method The method further includes the step of switching the currently displayed interface to a display interface prior to displaying the unread message of the specified application when a return instruction is received. 如申請專利範圍第1項所述的方法,其中所述至少一個感測器為重力感測器和/或陀螺儀;相應地,所述至少一個感測器的感測器資訊包括所述移動終端的加速度資訊和/或角速度資訊。 The method of claim 1, wherein the at least one sensor is a gravity sensor and/or a gyroscope; accordingly, sensor information of the at least one sensor includes the movement Acceleration information and/or angular velocity information of the terminal. 一種消息查看裝置,所述裝置包括:資訊獲取模組,用於在指定應用的執行過程中,獲取移動終端的感測器資訊,其中所述資訊獲取模組用於在所述指定應用的執行過程中,透過呼叫配置於所述移動終端的至少一個感測器對應的應用程式設計發展介面API,獲取配置於所述移動終端的至少一個感測器的感測器資訊;變化檢測模組,用於檢測所述感測器資訊是否發生變化; 規則判斷模組,用於當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;以及消息顯示模組,用於當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 A message viewing device, the device comprising: an information acquisition module, configured to acquire sensor information of the mobile terminal during execution of the specified application, wherein the information acquisition module is configured to execute in the specified application In the process, the application design development interface API corresponding to the at least one sensor of the mobile terminal is configured to acquire sensor information of at least one sensor disposed in the mobile terminal; the change detection module, Used to detect whether the sensor information changes; a rule determining module, configured to determine, when the sensor information changes, whether the change rule of the sensor information conforms to a preset rule; and a message display module, when the sensor is detected When the change rule of the information conforms to the preset rule, the unread message of the specified application is displayed. 如申請專利範圍第9項所述的裝置,其中所述規則判斷模組包括:第一規則判斷單元,用於判斷所述加速度的變化區間是否大於預設閾值,當所述加速度的變化區間大於預設閾值時,所述感測器資訊的變化規律符合預設規則;或,第二規則判斷單元,用於判斷所述角速度的變化曲線是否與預設變化曲線匹配,當所述變化曲線與所述預設變化曲線匹配時,所述感測器資訊的變化規律符合預設規則。 The device of claim 9, wherein the rule determining module comprises: a first rule determining unit, configured to determine whether the change interval of the acceleration is greater than a preset threshold, and when the change interval of the acceleration is greater than When the threshold is preset, the change rule of the sensor information conforms to the preset rule; or the second rule determining unit is configured to determine whether the curve of the angular velocity matches the preset change curve, when the change curve is When the preset change curve is matched, the change rule of the sensor information conforms to a preset rule. 如申請專利範圍第9項所述的裝置,其中所述裝置還包括:標識狀態檢測模組,用於當接收到所述指定應用的啟動指令時,檢測所述指定應用的快捷標識狀態,所述指定應用的快捷標識狀態為開啟狀態或關閉狀態;相應地,所述資訊獲取模組用於當檢測到所述指定應用的快捷標識狀態為開啟狀態時,在所述指定應用的執行過程中,獲取移動終端的感測器資訊。 The device of claim 9, wherein the device further comprises: an identification state detecting module, configured to detect a shortcut identifier state of the specified application when receiving the startup instruction of the specified application, And the information obtaining module is configured to: when detecting that the shortcut identifier state of the specified application is in an open state, during execution of the specified application, Obtain sensor information of the mobile terminal. 如申請專利範圍第9項所述的裝置,其中所述消息顯示模組包括:消息判斷單元,用於當檢測到所述感測器資訊的變化規律符合所述預設規則時,判斷所述指定應用是否存在未讀消 息;消息顯示單元,用於當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息。 The device of claim 9, wherein the message display module comprises: a message determining unit, configured to determine, when it is detected that the change rule of the sensor information conforms to the preset rule Specify whether the app has unread a message display unit, configured to display an unread message of the specified application when it is determined that the specified application has an unread message. 如申請專利範圍第12項所述的裝置,其中所述消息顯示單元用於當確定所述指定應用存在未讀消息時,顯示所述指定應用的最新的一條未讀消息。 The device of claim 12, wherein the message display unit is configured to display a latest unread message of the specified application when it is determined that the specified application has an unread message. 如申請專利範圍第12項所述的裝置,其中所述消息顯示單元用於當確定所述指定應用存在未讀消息時,顯示所述指定應用的未讀消息清單,所述未讀消息清單包括至少一條未讀消息和所述至少一條未讀消息對應的消息標識;當檢測到對所述未讀消息清單中任一消息標識的開啟指令時,顯示所述開啟指令對應的未讀消息。 The device of claim 12, wherein the message display unit is configured to display an unread message list of the specified application when it is determined that the specified application has an unread message, the unread message list includes a message identifier corresponding to the at least one unread message and the at least one unread message; when an open command for identifying any of the unread message lists is detected, an unread message corresponding to the open command is displayed. 如申請專利範圍第9-14項任一項所述的裝置,其中所述裝置還包括:返回模組,用於當接收到返回指令時,將當前顯示的介面切換至顯示所述指定應用的未讀消息之前的顯示介面。 The device of any one of claims 9-14, wherein the device further comprises: a return module, configured to switch the currently displayed interface to display the specified application when receiving the return instruction The display interface before the unread message. 如申請專利範圍第9項所述的裝置,其中所述至少一個感測器為重力感測器和/或陀螺儀;相應地,所述至少一個感測器的感測器資訊包括所述移動終端的加速度資訊和/或角速度資訊。 The device of claim 9, wherein the at least one sensor is a gravity sensor and/or a gyroscope; accordingly, sensor information of the at least one sensor includes the movement Acceleration information and/or angular velocity information of the terminal. 一種移動終端,包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且經配置以由一個或者一個以上處理器執行所述一個或者一個以上套裝程式含用於進行以下操作的指令:在指定應用的執行過程中,獲取移動終端的感測器資訊,在所述指定應用的執行過程中,透過呼叫配置於所述移動終端的至少一個感測器對應的應用程式設計發展介面API,獲取配置於所述移動終端的至少一個感測器的感測器資訊;檢測所述感測器資訊是否發生變化;當所述感測器資訊發生變化時,判斷所述感測器資訊的變化規律是否符合預設規則;以及當檢測到所述感測器資訊的變化規律符合預設規則時,顯示所述指定應用的未讀消息。 A mobile terminal comprising a memory and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one or more package programs by one or more processors An instruction for: acquiring sensor information of the mobile terminal during execution of the specified application, and corresponding to at least one sensor configured on the mobile terminal by calling during execution of the specified application The application design development interface API acquires sensor information of at least one sensor disposed in the mobile terminal; detects whether the sensor information changes; when the sensor information changes, determines Whether the change rule of the sensor information conforms to the preset rule; and when it is detected that the change rule of the sensor information conforms to the preset rule, the unread message of the specified application is displayed.
TW103124859A 2013-07-19 2014-07-18 Method, device and moving terminal for examining messages TWI520043B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310306859.0A CN104301504A (en) 2013-07-19 2013-07-19 Message viewing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
TW201504918A TW201504918A (en) 2015-02-01
TWI520043B true TWI520043B (en) 2016-02-01

Family

ID=52321060

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103124859A TWI520043B (en) 2013-07-19 2014-07-18 Method, device and moving terminal for examining messages

Country Status (3)

Country Link
CN (1) CN104301504A (en)
TW (1) TWI520043B (en)
WO (1) WO2015007232A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898923A (en) 2015-05-14 2015-09-09 深圳市万普拉斯科技有限公司 Notification content preview control method and device in mobile terminal
CN104967738A (en) * 2015-06-11 2015-10-07 上海锳科迩电子股份有限公司 Method for controlling vehicle theft prevention using gravity sensor of intelligent terminal equipment
CN104992102A (en) * 2015-07-23 2015-10-21 京东方科技集团股份有限公司 Message display method and apparatus
CN106484213B (en) * 2015-08-31 2019-11-01 深圳富泰宏精密工业有限公司 Application icon operating system and method
CN105915711B (en) * 2016-04-19 2019-12-20 青岛海信移动通信技术股份有限公司 Method and device for prompting message in mobile equipment
CN106060251A (en) * 2016-05-26 2016-10-26 深圳天珑无线科技有限公司 Short message enquiry and reading method, short message enquiry and reading device and related equipment
CN106126079A (en) * 2016-06-15 2016-11-16 珠海市魅族科技有限公司 A kind of information processing method and information processor
CN106550086B (en) * 2016-09-29 2021-08-17 宇龙计算机通信科技(深圳)有限公司 Terminal and push information prompting method
CN106921796A (en) * 2017-02-13 2017-07-04 上海斐讯数据通信技术有限公司 A kind of method for controlling mobile terminal based on gyroscope
CN110368286A (en) * 2018-04-12 2019-10-25 西安瑞新康达医疗科技有限公司 A kind of wireless CPR guiding device
CN109195153B (en) * 2018-08-01 2021-09-28 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN110275750A (en) * 2019-06-19 2019-09-24 维沃移动通信有限公司 A kind of notification message inspection method and terminal
CN113452596A (en) * 2020-03-25 2021-09-28 福建天泉教育科技有限公司 Method for quickly checking unread messages in instant messaging application and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012774A (en) * 2009-09-08 2011-04-13 中兴通讯股份有限公司 Page turning method, device and terminal for terminal reading contents
CN201937679U (en) * 2010-12-02 2011-08-17 上海华勤通讯技术有限公司 Mobile phone for switching themes through monitoring mobile phone acceleration
CN102170497B (en) * 2011-04-21 2013-07-31 宇龙计算机通信科技(深圳)有限公司 Unprocessed event indicating method, system and terminal
CN102830931B (en) * 2012-08-17 2015-07-08 广东欧珀移动通信有限公司 Method for checking notification information of smart terminal by shaking
CN103685694A (en) * 2012-09-11 2014-03-26 联想(北京)有限公司 Prompt method and electronic equipment
CN103049172B (en) * 2012-12-20 2015-11-25 小米科技有限责任公司 Sidebar display packing, device and terminal
CN103118168B (en) * 2012-12-26 2017-06-20 魅族科技(中国)有限公司 The display control method and terminal of a kind of unprocessed information
CN103067586A (en) * 2012-12-26 2013-04-24 广东欧珀移动通信有限公司 Method and system of receiving and sending of short message service of mobile terminal
CN103116412A (en) * 2013-02-05 2013-05-22 广东欧珀移动通信有限公司 Method and system for starting music player

Also Published As

Publication number Publication date
TW201504918A (en) 2015-02-01
WO2015007232A1 (en) 2015-01-22
CN104301504A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
TWI520043B (en) Method, device and moving terminal for examining messages
JP6467526B2 (en) Communication message transmission method and wearable device
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
WO2016150331A1 (en) Method and device for operating game client
US10725646B2 (en) Method and apparatus for switching screen interface and terminal
WO2017008569A1 (en) Message updating method, apparatus, and terminal
WO2017125027A1 (en) Method and device for displaying information, and computer storage medium
WO2015090248A1 (en) Server overload protection method and device
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
US20170147187A1 (en) To-be-shared interface processing method, and terminal
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN106375179B (en) Method and device for displaying instant communication message
US20180063046A1 (en) Method and apparatus for downloading and displaying pictures
WO2017129053A1 (en) Data transmission method and device
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
WO2018095130A1 (en) Method and system for determining duration of live streaming
WO2015043403A1 (en) Method, apparatus, and terminal for obtaining video data
WO2013149530A1 (en) Information display method, mobile terminal and computer readable storage medium
WO2014000632A1 (en) Method, device and apparatus for acquiring security state of mobile terminal
WO2015024372A1 (en) Communication initiation method, apparatus, and mobile terminal
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
WO2015074387A1 (en) Sliding operation response method, apparatus and terminal device