WO2018018680A1 - Display method and apparatus for application prompt information - Google Patents
Display method and apparatus for application prompt information Download PDFInfo
- Publication number
- WO2018018680A1 WO2018018680A1 PCT/CN2016/095910 CN2016095910W WO2018018680A1 WO 2018018680 A1 WO2018018680 A1 WO 2018018680A1 CN 2016095910 W CN2016095910 W CN 2016095910W WO 2018018680 A1 WO2018018680 A1 WO 2018018680A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- prompt information
- application
- priority
- electronic device
- acceleration value
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Definitions
- the present invention relates to the field of terminal information processing technologies, and in particular, to a method and device for displaying application prompt information.
- each APP application will send prompt information to the electronic device from time to time, and the information will be displayed in the display module of the electronic device.
- Most of the existing electronic devices sort the received application prompt information according to the chronological order.
- the user needs to view and search for the information that is of interest to the user, and the operation is cumbersome. It is not convenient for users to use.
- the main object of the present invention is to provide a method and device for displaying application prompt information, which aims to improve the convenience of operation of the electronic device.
- the present invention provides an application prompt information display method, and the application prompt information display method includes the following steps:
- the prompt information is sorted according to the preset priority of each application
- the step of determining, according to the acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken comprises:
- the type of the prompt information includes a picture type and a text type.
- the step of sorting the prompt information according to the preset priority of each application further includes:
- the step of sorting the prompt information according to the preset priority of each application when the electronic device is shaken further includes:
- the acceleration value includes an acceleration value on the X axis, an acceleration value on the Y axis, and an acceleration value on the Z axis.
- the priority of each application preset is set according to the corresponding access amount.
- the present invention further provides an application prompt information display device, where the application prompt information display device includes:
- the obtaining module is configured to obtain prompt information of an application installed by the electronic device
- a determining module configured to determine, according to an acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken
- a sorting module configured to: when the electronic device is shaken, reorder the prompt information according to a preset priority of each application;
- a display module configured to control the electronic device to display the sorted prompt information.
- the determining module comprises:
- An acquiring unit configured to acquire an acceleration value of the acceleration sensor every first preset duration
- the extracting unit is configured to calculate an average value of the maximum value and the minimum value according to the acquired acceleration value every second time period, and sequentially extract an acceleration value greater than the average value; the second time length is greater than the first time length;
- the determining unit is configured to determine that the electronic device is shaken when it is determined that the difference between the two adjacent acceleration values is greater than a preset value.
- the type of the prompt information includes a picture type and a text type.
- the ordering module includes:
- a first obtaining unit configured to acquire, when the electronic device is shaken, a priority weight of an application corresponding to the current prompt information and a sharpness weight of the image
- a first calculating unit configured to calculate a priority of the current prompt information according to the priority weight and a sharpness weight of the picture
- the first sorting unit is configured to perform sorting processing on the current prompt information according to the priority.
- the sorting module includes:
- a second acquiring unit configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a character length weight of the text;
- a second calculating unit configured to calculate a priority of the current prompt information according to the priority weight and a character length weight of the text
- a second sorting unit configured to perform sorting processing on the current prompt information according to the priority.
- the acceleration value includes an acceleration value on the X axis, an acceleration value on the Y axis, and an acceleration value on the Z axis.
- the priority of each application preset is set according to the corresponding access amount.
- the technical solution provided by the present invention determines whether the electronic device is shaken according to the acceleration value output by the acceleration sensor of the electronic device after acquiring the prompt information of the application installed by the electronic device; when the electronic device is shaken, according to The preset priority of each application sorts the prompt information; and further controls the electronic device to display the sorted prompt information.
- the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for displaying application prompt information according to the present invention
- FIG. 2 is a schematic diagram of a refinement process of determining whether an electronic device is shaken in a second embodiment of the application prompt information display method according to the present invention
- FIG. 3 is a schematic flowchart of a step of sorting the prompt information in the first embodiment of the third embodiment of the application prompt information display method according to the present invention
- FIG. 4 is a schematic flowchart of a step of sorting the prompt information in the second embodiment of the third embodiment of the application prompt information display method according to the present invention.
- FIG. 5 is a schematic diagram of functional modules of a first embodiment of an application prompt information display device according to the present invention.
- FIG. 6 is a schematic diagram of a refinement function module of a judging module in a second embodiment of the application prompt information display device of the present invention.
- FIG. 7 is a schematic diagram of a refinement function module of a sorting module in a first embodiment of a third embodiment of an application prompt information display device according to the present invention.
- FIG. 8 is a schematic diagram of a refinement function module of a sorting module in a second embodiment of the third embodiment of the application prompt information display device of the present invention.
- the present invention provides an application prompt information display method.
- the application prompt information display method includes the following steps:
- Step S10 Acquire prompt information of an application installed by the electronic device.
- the prompt information of the application installed by the electronic device is obtained, which is an information push technology
- the information push technology is a technology based on a client-server mechanism
- the server actively sends information to the client, so that the information is Actively looking for a client, its advantage lies in the initiative and timeliness of information, through which technology can be pushed to users as soon as possible.
- the electronic device usually has multiple applications installed, and the electronic device periodically or irregularly receives the prompt information of the installed application to remind the user of the latest update, customization information, program upgrade, and the like of the application.
- the electronic device may be a smart device such as a mobile phone or a tablet computer.
- Step S20 determining whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device
- the acceleration sensor is a three-axis acceleration sensor, that is, the acceleration value of the acceleration sensor includes acceleration values on the X-axis, the Y-axis, and the Z-axis.
- the acceleration value of at least one of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor changes, the acceleration value obtained in a specific time is effectively calculated and selected by a specific function algorithm to determine the electronic Whether the device is shaken.
- the specific function algorithm may be one or a combination of various function algorithms for summing, difference, quadrature, and averaging acceleration values acquired in a specific time;
- the specific time includes at least one specific duration.
- the step may further include: presetting a specific acceleration value and storing the specific acceleration value to obtain an effective acceleration compared with the acceleration value by using the specific function algorithm. The value of the effective acceleration value is used to determine whether the electronic device is shaken.
- Step S30 When the electronic device is shaken, the prompt information is sorted according to the preset priority of each application;
- the prompt information is reordered according to the priority of each application preset by the electronic device.
- the priority can be determined by multiple determination methods, such as the size of the access amount of each application, the length of the access time, the format size of the prompt information, and the like, and the priority determined by the above method is heavy. Sorting the prompt information.
- Step S40 Control the electronic device to display the sorted prompt information.
- the existing electronic device generally performs a unified management mechanism for pushing each application prompt information.
- each application can entrust an information management system provided by the operating system of the electronic device to complete the information push.
- the prompt information pushed by each application that is, the prompt information pushed by the operating system of each application to the user, is generally displayed on a specific display interface of the electronic device, so that the user can be the first time. View and process.
- the specific display interface is a main interface of the electronic device (generally used to display a system program in the electronic device and an icon of each installed application), and when receiving the push information of an application
- the prompt information is displayed on the main interface of the electronic device, which is convenient for the user to directly view and process.
- the specific display interface is a lock screen status interface of the electronic device (an interface displayed to the user before the screen is activated but before the unlocking operation is performed), when receiving a prompt message of an application,
- the prompt information is displayed in the lock screen status interface of the electronic device.
- the prompt information displayed on the lock screen status interface is usually displayed in the form of a message summary list. After the user performs an unlock operation on the screen, the information is directly displayed on the main interface of the electronic device. It is convenient for users to further view and process.
- the application prompt information display method determines whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device after acquiring the prompt information of the application installed by the electronic device; when the electronic device is shaken And sorting the prompt information according to a preset priority of each application; and further controlling the electronic device to display the sorted prompt information.
- the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
- the foregoing step S20 includes:
- Step S21 acquiring an acceleration value of the acceleration sensor every first preset time length
- Step S22 the average value of the maximum value and the minimum value is obtained according to the acquired acceleration value every second time period, and the acceleration value greater than the average value is sequentially extracted; the second time length is greater than the first time length;
- step S23 when it is determined that the difference between the two adjacent acceleration values is greater than the preset value, it is determined that the electronic device is shaken.
- the first preset duration is 100 ms, that is, the acceleration values of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor are acquired every 100 ms, and are stored in the first storage area.
- an average value of the maximum value and the minimum value is obtained according to the acceleration value stored in the first storage area every second time period, and the acceleration value in the first storage area is compared with the average value, and sequentially extracted An acceleration value greater than the average value is stored in the second storage area.
- the second duration is greater than the first duration, that is, the second duration is greater than 100 ms.
- the preset value is 1 and is stored in the second storage area, and the difference between the adjacent two acceleration values is sequentially extracted according to the acceleration value stored in the second storage area, and the extracted acceleration is determined. If the difference between the two adjacent acceleration values is greater than 1, the electronic device is determined to be shaken; when it is determined that the difference between the two adjacent acceleration values is greater than 1 in the extracted acceleration value, the determination is performed. The electronic device is not shaken.
- the type of the prompt information may be in various forms, such as a picture type or a text type.
- the present embodiment further describes different types of prompt information by using the following three implementation manners.
- the step S30 includes:
- Step S311 when the electronic device is shaken, acquiring the priority of the application corresponding to the current prompt information and the clarity weight of the image;
- Step S312 calculating a priority of the current prompt information according to the priority weight and the sharpness weight of the picture;
- Step S313 sorting the current prompt information according to the priority.
- the priority may be obtained according to data such as the largest number of visits in each application installed in the electronic device or the longest access time in each application.
- the priority is obtained according to the data with the largest amount of access in each application installed in the electronic device, and according to the access record of the user, the user's preference for each application is determined, and then each application is set.
- the priority level of the display that is, the application has the most traffic and the clearer the picture.
- Pic_Resolution(x1) 5 //Apply 1, reminding 4K pictures to clearly preview the message
- Pic_Resolution(x2) 4 //Apply 2 to remind the picture HD preview message
- Touch_Num(x1) 5//Application 1, people with a click rate of more than 100 million;
- the picture prompt information of application 1 is automatically displayed first.
- the difference between the present embodiment and the first embodiment is that when the type of the prompt information is a text type, refer to FIG. 4, and the step S30 includes:
- step S321 when the electronic device is shaken, the priority weight of the application corresponding to the current prompt information and the character length weight of the text are obtained;
- Step S322 calculating a priority of the current prompt information according to the priority weight and a character length weight of the text;
- Step S323 sorting the current prompt information according to the priority.
- the priority may be obtained according to data such as the access amount of each application cloud server character installed in the electronic device, the length of the access time, and the like.
- the priority is determined according to the data of the cloud access value of each application cloud server, that is, the larger the access amount of the application is, the larger the weight is; the weight of the character length of the obtained text is determined, and the weight is obtained.
- Cloud_Text_Weight(x1) 5 //App1, people with a click-through rate of more than 100 million;
- Cloud_Text_Weight(x2) 4 //App 2, people with a CTR access rate of more than 50 million;
- Cloud_Text_Lenth(x1) 2//Application 1, text 1, character length exceeds 500;
- Cloud_Text_Lenth(x2) 3//Application 2, text 2, character length less than 200;
- the text prompt information of application 2 is automatically displayed first.
- the present embodiment is different from the first embodiment and the second embodiment in that the type of the prompt information includes both a picture type and a text type, when the electronic device is shaken. And acquiring the priority weight of the application corresponding to the current prompt information, the clarity weight of the image, and the character length weight of the text; calculating the current prompt information according to the priority weight and the clarity weight of the image and the character length weight of the text. Priority; sorting the current prompt information according to the priority.
- the determination of the weight of the priority and the weight of the picture and the weight of the character length of the text are determined by referring to the methods provided in the foregoing first embodiment and the second embodiment, and are not further herein. Narration.
- the present invention also provides an application prompt information display device.
- the application prompt information display device provided by the present invention includes:
- the obtaining module 10 is configured to obtain prompt information of an application installed by the electronic device;
- the obtaining module 10 acquires the prompt information of the application installed by the electronic device, that is, the information pushing technology, and the information pushing technology is a technology based on the client-server mechanism, and the server actively sends the information to the client.
- the information actively seek the client the advantage is the initiative and timeliness of the information, through which the information can be pushed to the user as soon as possible.
- an electronic device usually has multiple applications installed, and the electronic device periodically or irregularly receives the push information of the installed application to remind the user of the latest update, customization information, program upgrade, and the like of the application.
- the electronic device may be a smart device such as a mobile phone or a tablet computer.
- the determining module 20 is configured to determine, according to the acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken;
- the acceleration sensor is a three-axis acceleration sensor, that is, the acceleration value of the acceleration sensor includes acceleration values on the X-axis, the Y-axis, and the Z-axis.
- the acceleration value of at least one of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor changes, the acceleration value obtained in a specific time is effectively calculated and selected by a specific function algorithm to determine the electronic Whether the device is shaken.
- the specific function algorithm may be one or a combination of various function algorithms for summing, difference, quadrature, and averaging acceleration values acquired in a specific time;
- the specific time includes at least one specific duration.
- the step may further include: presetting a specific acceleration value and storing the specific acceleration value to obtain an effective acceleration compared with the acceleration value by using the specific function algorithm. The value of the effective acceleration value is used to determine whether the electronic device is shaken.
- the sorting module 30 is configured to: when the electronic device is shaken, reorder the prompt information according to a preset priority of each application;
- the prompt information is sorted according to priorities of respective applications installed by the electronic device. It can be understood that the priority may be determined by multiple determination methods, such as the size of the access volume of each application, the length of the access time, the format size of the prompt information, and the like, and the priority preset by the foregoing method. Sorting the prompt information.
- the display module 40 is configured to control the electronic device to display the sorted prompt information.
- the existing electronic device usually performs a unified management mechanism for information push of each application.
- each application can entrust an information management system provided by the operating system of the electronic device to complete the information push.
- the information pushed by each application that is, the push information pushed by the operating system of each application to the user, is usually displayed on a specific display interface of the electronic device, so that the user can view and view the first time. deal with.
- the specific display interface is a main interface of the electronic device (generally used to display system programs in the electronic device and icons of each installed application), when receiving push information of an application, The push information is displayed on the main interface of the electronic device, which is convenient for the user to directly view and process.
- the specific display interface is a lock screen status interface of the electronic device (an interface displayed to the user before the screen is activated but before the unlocking operation is performed), when receiving a push message of an application,
- the push information is displayed in the lock screen status interface of the electronic device.
- the above-mentioned push information displayed on the lock screen status interface is usually displayed in the form of a list of information digests. After the user performs an unlock operation on the screen, the information is directly displayed on the main interface of the electronic device. It is convenient for users to further view and process.
- the application prompt information display device After obtaining the prompt information of the application installed by the electronic device, the application prompt information display device determines whether the electronic device is shaken according to the acceleration value output by the acceleration sensor of the electronic device; when the electronic device is shaken And sorting the prompt information according to a preset priority of each application; and further controlling the electronic device to display the sorted prompt information.
- the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
- the determining module of the application prompt information display device includes:
- the acquiring unit 21 is configured to acquire an acceleration value of the acceleration sensor every first preset time length
- the extracting unit 22 is configured to calculate an average value of the maximum value and the minimum value according to the acquired acceleration value every second time period, and sequentially extract an acceleration value greater than the average value; the second time length is greater than the first time length;
- the determining unit 23 is configured to determine that the electronic device is shaken when it is determined that the difference between the two adjacent acceleration values is greater than a preset value.
- the first preset duration is 100 ms, that is, the acceleration values of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor are acquired every 100 ms, and are stored in the first storage area.
- an average value of the maximum value and the minimum value is obtained according to the acceleration value stored in the first storage area every second time period, and the acceleration value in the first storage area is compared with the average value, and sequentially extracted An acceleration value greater than the average value is stored in the second storage area.
- the second duration is greater than the first duration, that is, the second duration is greater than 100 ms.
- the preset value is 1 and is stored in the second storage area, and the difference between the adjacent two acceleration values is sequentially extracted according to the acceleration value stored in the second storage area, and the extracted acceleration is determined. If the difference between the two adjacent acceleration values is greater than 1, the electronic device is determined to be shaken; when it is determined that the difference between the two adjacent acceleration values is greater than 1 in the extracted acceleration value, the determination is performed. The electronic device is not shaken.
- the type of the prompt information may be in various forms, such as a picture type or a text type.
- the present embodiment further describes different types of prompt information by using the following two implementation manners.
- the sorting module 30 includes:
- the first obtaining unit 311 is configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a clarity weight of the image;
- the first calculating unit 312 is configured to calculate a priority of the current prompt information according to the priority weight and the sharpness weight of the picture;
- the first sorting unit 313 performs sorting processing on the current prompt information according to the priority.
- the priority may be obtained according to data such as the largest number of visits in each application installed in the electronic device or the longest access time in each application.
- the priority is obtained according to the data with the largest amount of access in each application installed in the electronic device, and according to the access record of the user, the user's preference for each application is determined, and then each application is set.
- the priority level of the display that is, the application has the most traffic and the clearer the picture.
- Pic_Resolution(x1) 5 //Apply 1, reminding 4K pictures to clearly preview the message
- Pic_Resolution(x2) 4 //Apply 2 to remind the picture HD preview message
- Touch_Num(x1) 5//Application 1, people with a click rate of more than 100 million;
- the picture prompt information of application 1 is automatically displayed first.
- the present embodiment is different from the first embodiment in that, when the type of the prompt information is a text type, referring to FIG. 8 , the sorting module 30 includes:
- the second obtaining unit 321 is configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a character length weight of the text;
- a second calculating unit 322 configured to calculate a priority of the current prompt information according to the priority weight and a character length weight of the text
- the second sorting unit 323 is configured to perform sorting processing on the current prompt information according to the priority.
- the priority may be obtained according to data such as the access amount of each application cloud server character installed in the electronic device, the length of the access time, and the like.
- the priority is determined according to the data of the cloud access value of each application cloud server, that is, the larger the access amount of the application is, the larger the weight is; the weight of the character length of the obtained text is determined, and the weight is obtained.
- Cloud_Text_Weight(x1) 5 //App1, people with a click-through rate of more than 100 million;
- Cloud_Text_Weight(x2) 4 //App 2, people with a CTR access rate of more than 50 million;
- Cloud_Text_Lenth(x1) 2//Application 1, text 1, character length exceeds 500;
- Cloud_Text_Lenth(x2) 3//Application 2, text 2, character length less than 200;
- the text prompt information of application 2 is automatically displayed first.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Disclosed are a display method and apparatus for application prompt information. The display method for application prompt information comprises the following steps: acquiring prompt information about an application installed in an electronic device (S10); according to an acceleration value output by an acceleration sensor of the electronic device, judging whether the electronic device is shaken or not (S20); when the electronic device is shaken, according to a pre-set priority weight of each application, sorting the prompt information (S30); and controlling the electronic device to display the sorted prompt information (S40). The method and device are intended to improve the convenience of operating electronic devices.
Description
技术领域Technical field
本发明涉及终端信息处理技术领域,尤其涉及一种应用提示信息显示方法及装置。The present invention relates to the field of terminal information processing technologies, and in particular, to a method and device for displaying application prompt information.
背景技术Background technique
随着科技的发展,电子设备的APP应用越来越多,每个APP应用都会不定时地向电子设备发送提示信息,这些信息会显示在电子设备的显示模块中。现有的电子设备大多根据时间先后顺序对接收的应用提示信息进行排序,大量的应用提示信息堆积于电子设备的显示模块中时,需要用户一条条查看、寻找自己感兴趣的提示信息,操作繁琐,不方便用户使用。With the development of technology, more and more APP applications of electronic devices, each APP application will send prompt information to the electronic device from time to time, and the information will be displayed in the display module of the electronic device. Most of the existing electronic devices sort the received application prompt information according to the chronological order. When a large number of application prompt information is accumulated in the display module of the electronic device, the user needs to view and search for the information that is of interest to the user, and the operation is cumbersome. It is not convenient for users to use.
发明内容Summary of the invention
本发明的主要目的在于提供一种应用提示信息显示方法及装置,旨在提高电子设备操作的便捷性。The main object of the present invention is to provide a method and device for displaying application prompt information, which aims to improve the convenience of operation of the electronic device.
为实现上述目的,本发明提供一种应用提示信息显示方法,所述应用提示信息显示方法包括以下步骤:To achieve the above objective, the present invention provides an application prompt information display method, and the application prompt information display method includes the following steps:
获取电子设备所安装应用的提示信息;Obtaining prompt information of an application installed on the electronic device;
根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;Determining whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device;
当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;When the electronic device is shaken, the prompt information is sorted according to the preset priority of each application;
控制所述电子设备显示排序后的提示信息。Controlling the electronic device to display the sorted prompt information.
优选地,所述根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃的步骤包括:Preferably, the step of determining, according to the acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken comprises:
每隔第一预设时长获取所述加速度传感器的加速度值;Acquiring the acceleration value of the acceleration sensor every first preset time length;
每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;Calculating an average value of the maximum value and the minimum value according to the acquired acceleration every second time period, and sequentially extracting an acceleration value greater than the average value; the second time length is greater than the first time length;
当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。When it is judged that the difference between the two adjacent acceleration values is greater than the preset value, it is determined that the electronic device is shaken.
优选地,所述提示信息的类型包括图片类型和文本类型。Preferably, the type of the prompt information includes a picture type and a text type.
优选地,当所述提示信息的类型为图片类型时,所述当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序的步骤还包括:Preferably, when the type of the prompt information is a picture type, when the electronic device is shaken, the step of sorting the prompt information according to the preset priority of each application further includes:
当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;When the electronic device is shaken, acquiring the priority of the application corresponding to the current prompt information and the clarity weight of the image;
根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;Calculating a priority of the current prompt information according to the priority weight and a sharpness weight of the picture;
根据所述优先级对当前提示信息进行排序处理。Sorting the current prompt information according to the priority.
优选地,当所述提示信息的类型为文本类型时,所述当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序的步骤还包括:Preferably, when the type of the prompt information is a text type, the step of sorting the prompt information according to the preset priority of each application when the electronic device is shaken further includes:
当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;When the electronic device is shaken, obtaining a priority weight of an application corresponding to the current prompt information and a character length weight of the text;
根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;Calculating a priority of the current prompt information according to the priority weight and a character length weight of the text;
根据所述优先级对当前提示信息进行排序处理。Sorting the current prompt information according to the priority.
优选地,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。Preferably, the acceleration value includes an acceleration value on the X axis, an acceleration value on the Y axis, and an acceleration value on the Z axis.
优选地,所述各应用预设的优先权重根据对应的访问量进行设定。Preferably, the priority of each application preset is set according to the corresponding access amount.
此外,为实现上述目的,本发明还提供一种应用提示信息显示装置,所述应用提示信息显示装置包括:In addition, in order to achieve the above object, the present invention further provides an application prompt information display device, where the application prompt information display device includes:
获取模块,用于获取电子设备所安装应用的提示信息;The obtaining module is configured to obtain prompt information of an application installed by the electronic device;
判断模块,用于根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;a determining module, configured to determine, according to an acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken;
排序模块,用于当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;a sorting module, configured to: when the electronic device is shaken, reorder the prompt information according to a preset priority of each application;
显示模块,用于控制所述电子设备显示排序后的提示信息。And a display module, configured to control the electronic device to display the sorted prompt information.
优选地,所述判断模块包括:Preferably, the determining module comprises:
获取单元,用于每隔第一预设时长获取所述加速度传感器的加速度值;An acquiring unit, configured to acquire an acceleration value of the acceleration sensor every first preset duration;
提取单元,用于每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;The extracting unit is configured to calculate an average value of the maximum value and the minimum value according to the acquired acceleration value every second time period, and sequentially extract an acceleration value greater than the average value; the second time length is greater than the first time length;
判断单元,用于当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。The determining unit is configured to determine that the electronic device is shaken when it is determined that the difference between the two adjacent acceleration values is greater than a preset value.
优选地,所述提示信息的类型包括图片类型和文本类型。Preferably, the type of the prompt information includes a picture type and a text type.
优选地,当所述提示信息的类型为图片类型时,则所述排序模块包括:Preferably, when the type of the prompt information is a picture type, the ordering module includes:
第一获取单元,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;a first obtaining unit, configured to acquire, when the electronic device is shaken, a priority weight of an application corresponding to the current prompt information and a sharpness weight of the image;
第一计算单元,用于根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;a first calculating unit, configured to calculate a priority of the current prompt information according to the priority weight and a sharpness weight of the picture;
第一排序单元,用于根据所述优先级对当前提示信息进行排序处理。The first sorting unit is configured to perform sorting processing on the current prompt information according to the priority.
优选地,当所述提示信息的类型为文本类型时,则所述排序模块包括:Preferably, when the type of the prompt information is a text type, the sorting module includes:
第二获取单元,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;a second acquiring unit, configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a character length weight of the text;
第二计算单元,用于根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;a second calculating unit, configured to calculate a priority of the current prompt information according to the priority weight and a character length weight of the text;
第二排序单元,用于根据所述优先级对当前提示信息进行排序处理。And a second sorting unit, configured to perform sorting processing on the current prompt information according to the priority.
优选地,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。Preferably, the acceleration value includes an acceleration value on the X axis, an acceleration value on the Y axis, and an acceleration value on the Z axis.
优选地,所述各应用预设的优先权重根据对应的访问量进行设定。Preferably, the priority of each application preset is set according to the corresponding access amount.
本发明提供的技术方案通过在获取电子设备所安装应用的提示信息后,根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;当所述电子设备被摇晃时,根据各应用预设的优先级对所述提示信息进行排序;进而控制所述电子设备显示排序后的提示信息。通过对应用提示信息进行的优先排序,能将常用应用的提示信息或是客户指定应用的提示信息优先显示于电子设备,使得用户不再需要对大量的提示信息一条条进行阅读和查找,方便用户使用,提高了电子设备的智能化程度。The technical solution provided by the present invention determines whether the electronic device is shaken according to the acceleration value output by the acceleration sensor of the electronic device after acquiring the prompt information of the application installed by the electronic device; when the electronic device is shaken, according to The preset priority of each application sorts the prompt information; and further controls the electronic device to display the sorted prompt information. By prioritizing the application prompt information, the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
附图说明DRAWINGS
图1为本发明应用提示信息显示方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a method for displaying application prompt information according to the present invention;
图2为本发明应用提示信息显示方法第二实施例中判断电子设备是否被摇晃步骤的细化流程示意图;2 is a schematic diagram of a refinement process of determining whether an electronic device is shaken in a second embodiment of the application prompt information display method according to the present invention;
图3为本发明应用提示信息显示方法第三实施例的第一实施方式中提示信息排序步骤的细化流程示意图;3 is a schematic flowchart of a step of sorting the prompt information in the first embodiment of the third embodiment of the application prompt information display method according to the present invention;
图4为本发明应用提示信息显示方法第三实施例的第二实施方式中提示信息排序步骤的细化流程示意图;4 is a schematic flowchart of a step of sorting the prompt information in the second embodiment of the third embodiment of the application prompt information display method according to the present invention;
图5为本发明应用提示信息显示装置第一实施例的功能模块示意图;5 is a schematic diagram of functional modules of a first embodiment of an application prompt information display device according to the present invention;
图6为本发明应用提示信息显示装置第二实施例中判断模块的细化功能模块示意图;6 is a schematic diagram of a refinement function module of a judging module in a second embodiment of the application prompt information display device of the present invention;
图7为本发明应用提示信息显示装置第三实施例的第一实施方式中排序模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of a sorting module in a first embodiment of a third embodiment of an application prompt information display device according to the present invention;
图8为本发明应用提示信息显示装置第三实施例的第二实施方式中排序模块的细化功能模块示意图。FIG. 8 is a schematic diagram of a refinement function module of a sorting module in a second embodiment of the third embodiment of the application prompt information display device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种应用提示信息显示方法,参照图1,在一实施例中,该应用提示信息显示方法包括以下步骤:The present invention provides an application prompt information display method. Referring to FIG. 1, in an embodiment, the application prompt information display method includes the following steps:
步骤S10:获取电子设备所安装应用的提示信息;Step S10: Acquire prompt information of an application installed by the electronic device.
本实施例中,获取电子设备所安装应用的提示信息,即为信息推送技术,这种信息推送技术是一种基于客户端-服务器机制,由服务器主动地将信息发送给客户端的技术,让信息主动地去寻找客户端,其优势在于信息的主动性和及时性,通过该技术,可以尽快地将信息推送给用户。In this embodiment, the prompt information of the application installed by the electronic device is obtained, which is an information push technology, and the information push technology is a technology based on a client-server mechanism, and the server actively sends information to the client, so that the information is Actively looking for a client, its advantage lies in the initiative and timeliness of information, through which technology can be pushed to users as soon as possible.
可以理解的是,电子设备通常会安装有多个应用,电子设备会定期或不定期地接收到所安装应用的提示信息,以提醒用户该应用的最新更新、定制信息、程序升级等信息,用以提升该应用的活跃度。本实施例中,所述电子设备可以是手机、平板电脑等智能设备。It can be understood that the electronic device usually has multiple applications installed, and the electronic device periodically or irregularly receives the prompt information of the installed application to remind the user of the latest update, customization information, program upgrade, and the like of the application. To increase the activity of the app. In this embodiment, the electronic device may be a smart device such as a mobile phone or a tablet computer.
步骤S20:根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;Step S20: determining whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device;
具体地,所述加速度传感器为三轴加速度传感器,即所述加速度传感器的加速度值包括X轴、Y轴和Z轴上的加速度值。当所述加速度传感器X轴、Y轴和Z轴中至少一者加速度值发生变化,通过特定的函数算法,对特定时间内所获取的加速度值进行有效地计算和选取,用以判断所述电子设备是否被摇晃。Specifically, the acceleration sensor is a three-axis acceleration sensor, that is, the acceleration value of the acceleration sensor includes acceleration values on the X-axis, the Y-axis, and the Z-axis. When the acceleration value of at least one of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor changes, the acceleration value obtained in a specific time is effectively calculated and selected by a specific function algorithm to determine the electronic Whether the device is shaken.
需要说明的是,上述特定的函数算法,可以是对特定时间内获取的加速度值进行求和、求差、求积、求平均值等各类函数算法中的一种或是几种的结合;所述特定时间包括至少一个特定时长,另外,该步骤中可以还包括预先设置一特定的加速度值并存储,该特定的加速度值用以与上述通过特定的函数算法的加速度值比较得出有效加速度值,该有效加速度值用以判断所述电子设备是否被摇晃。It should be noted that the specific function algorithm may be one or a combination of various function algorithms for summing, difference, quadrature, and averaging acceleration values acquired in a specific time; The specific time includes at least one specific duration. In addition, the step may further include: presetting a specific acceleration value and storing the specific acceleration value to obtain an effective acceleration compared with the acceleration value by using the specific function algorithm. The value of the effective acceleration value is used to determine whether the electronic device is shaken.
步骤S30:当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;Step S30: When the electronic device is shaken, the prompt information is sorted according to the preset priority of each application;
具体地,当判定所述电子设备被摇晃时,则根据电子设备预设的各应用的优先权重对所述提示信息进行排序。可以理解的是,所述优先权重可以有多种确定方法,如可以根据各应用的访问量的大小、访问时间的长短、提示信息的格式大小等来确定,进而通过上述方法预设的优先权重对所述提示信息进行排序。Specifically, when it is determined that the electronic device is shaken, the prompt information is reordered according to the priority of each application preset by the electronic device. It can be understood that the priority can be determined by multiple determination methods, such as the size of the access amount of each application, the length of the access time, the format size of the prompt information, and the like, and the priority determined by the above method is heavy. Sorting the prompt information.
步骤S40:控制所述电子设备显示排序后的提示信息。Step S40: Control the electronic device to display the sorted prompt information.
可以理解的是,现有的电子设备通常会为各个应用提示信息的推送进行统一的管理机制,在该机制中,各应用可以委托电子设备操作系统提供的信息管理体系来完成信息的推送。此时,各应用推送的提示信息,也就是各应用委托电子设备的操作系统向用户推送的提示信息,该类推送提示信息通常显示于电子设备的特定的显示界面,以方便用户能第一时间查看和处理。It can be understood that the existing electronic device generally performs a unified management mechanism for pushing each application prompt information. In this mechanism, each application can entrust an information management system provided by the operating system of the electronic device to complete the information push. At this time, the prompt information pushed by each application, that is, the prompt information pushed by the operating system of each application to the user, is generally displayed on a specific display interface of the electronic device, so that the user can be the first time. View and process.
例如,在一种实施方式中,所述特定的显示界面为电子设备的主界面(一般用以显示电子设备中的系统程序以及各个安装应用的图标),当接收到某应用的推送的提示信息时,该提示信息会显示于电子设备的主界面,方便用户直接查看和处理。For example, in an embodiment, the specific display interface is a main interface of the electronic device (generally used to display a system program in the electronic device and an icon of each installed application), and when receiving the push information of an application The prompt information is displayed on the main interface of the electronic device, which is convenient for the user to directly view and process.
在另一实施方式中,所述特定的显示界面为电子设备的锁屏状态界面(在屏幕被激活但在执行解锁操作之前向用户显示的界面),当接收到某应用的提示消息时,可以在电子设备的锁屏状态界面中显示该提示信息。可以理解的是,上述显示于锁屏状态界面的提示信息,通常是以信息摘要列表的形式进行显示,在用户对屏幕执行解锁操作之后,该类信息会直接显示于电子设备的主界面,以方便用户进一步查看和处理。In another embodiment, the specific display interface is a lock screen status interface of the electronic device (an interface displayed to the user before the screen is activated but before the unlocking operation is performed), when receiving a prompt message of an application, The prompt information is displayed in the lock screen status interface of the electronic device. It can be understood that the prompt information displayed on the lock screen status interface is usually displayed in the form of a message summary list. After the user performs an unlock operation on the screen, the information is directly displayed on the main interface of the electronic device. It is convenient for users to further view and process.
本发明提供的应用提示信息显示方法通过在获取电子设备所安装应用的提示信息后,根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;当所述电子设备被摇晃时,根据各应用预设的优先级对所述提示信息进行排序;进而控制所述电子设备显示排序后的提示信息。通过对应用提示信息进行的优先排序,能将常用应用的提示信息或是客户指定应用的提示信息优先显示于电子设备,使得用户不再需要对大量的提示信息一条条进行阅读和查找,方便用户使用,提高了电子设备的智能化程度。The application prompt information display method provided by the present invention determines whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device after acquiring the prompt information of the application installed by the electronic device; when the electronic device is shaken And sorting the prompt information according to a preset priority of each application; and further controlling the electronic device to display the sorted prompt information. By prioritizing the application prompt information, the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
进一步地,参照图2,基于上述实施例,在本实施例中,上述步骤S20包括:Further, referring to FIG. 2, based on the foregoing embodiment, in the embodiment, the foregoing step S20 includes:
步骤S21,每隔第一预设时长获取所述加速度传感器的加速度值;Step S21, acquiring an acceleration value of the acceleration sensor every first preset time length;
步骤S22,每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;Step S22, the average value of the maximum value and the minimum value is obtained according to the acquired acceleration value every second time period, and the acceleration value greater than the average value is sequentially extracted; the second time length is greater than the first time length;
步骤S23,当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。In step S23, when it is determined that the difference between the two adjacent acceleration values is greater than the preset value, it is determined that the electronic device is shaken.
本实施例中,所述第一预设时长为100ms,即每间隔100ms获取加速度传感器X轴、Y轴和Z轴的加速度值,并保存于第一存储区中。In this embodiment, the first preset duration is 100 ms, that is, the acceleration values of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor are acquired every 100 ms, and are stored in the first storage area.
具体地,每隔第二时长根据存储于第一存储区中的加速度值获取最大值与最小值的平均值,将所述第一存储区中的加速度值与所述平均值对比,并依次提取大于所述平均值的加速度值,保存于第二存储区中。Specifically, an average value of the maximum value and the minimum value is obtained according to the acceleration value stored in the first storage area every second time period, and the acceleration value in the first storage area is compared with the average value, and sequentially extracted An acceleration value greater than the average value is stored in the second storage area.
可以理解的是,所述第二时长大于第一时长,即所述第二时长大于100ms。It can be understood that the second duration is greater than the first duration, that is, the second duration is greater than 100 ms.
本实施例中,所述预设值为1并保存于第二存储区中,根据存储于第二存储区中的加速度值,依次提取相邻的两加速度值的差值,当判断提取的加速度值中存在相邻的两加速度值的差值大于1时,则判定所述电子设备被摇晃;当判断提取的加速度值中不存在相邻的两加速度值的差值大于1时,则判定所述电子设备未被摇晃。In this embodiment, the preset value is 1 and is stored in the second storage area, and the difference between the adjacent two acceleration values is sequentially extracted according to the acceleration value stored in the second storage area, and the extracted acceleration is determined. If the difference between the two adjacent acceleration values is greater than 1, the electronic device is determined to be shaken; when it is determined that the difference between the two adjacent acceleration values is greater than 1 in the extracted acceleration value, the determination is performed. The electronic device is not shaken.
应当说明的是,所述提示信息的类型可以有多种形式,如图片类型或文本类型等,具体地,本实施例将通过以下三种实施方式对提示信息的不同类型进行进一步说明。It should be noted that the type of the prompt information may be in various forms, such as a picture type or a text type. Specifically, the present embodiment further describes different types of prompt information by using the following three implementation manners.
在第一实施方式中,当所述提示信息的类型为图片类型时,请参照图3,则所述步骤S30包括:In the first embodiment, when the type of the prompt information is a picture type, referring to FIG. 3, the step S30 includes:
步骤S311,当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;Step S311, when the electronic device is shaken, acquiring the priority of the application corresponding to the current prompt information and the clarity weight of the image;
步骤S312,根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;Step S312, calculating a priority of the current prompt information according to the priority weight and the sharpness weight of the picture;
步骤S313,根据所述优先级对当前提示信息进行排序处理。Step S313, sorting the current prompt information according to the priority.
需要说明的是,所述优先权重可以是根据电子设备所安装各应用中访问量最大或各应用中访问时间最长等数据得出。本实施例中,所述优先权重是根据电子设备所安装各应用中访问量最大的数据得出,根据用户的访问记录,从而判断得出用户对各应用的喜好程度,进而设定每个应用显示的优先等级;也就是应用访问量最大、图片越清晰的优先排列。具体地为:It should be noted that the priority may be obtained according to data such as the largest number of visits in each application installed in the electronic device or the longest access time in each application. In this embodiment, the priority is obtained according to the data with the largest amount of access in each application installed in the electronic device, and according to the access record of the user, the user's preference for each application is determined, and then each application is set. The priority level of the display; that is, the application has the most traffic and the clearer the picture. Specifically:
Pic_Resolution(x1) = 5 //应用1,提醒4K图片清晰预览消息;Pic_Resolution(x1) = 5 //Apply 1, reminding 4K pictures to clearly preview the message;
Pic_Resolution(x2) =4 //应用2,提醒图片高清预览消息;Pic_Resolution(x2) =4 //Apply 2 to remind the picture HD preview message;
Touch_Num(x1) = 5//应用1,点击率超过1亿以上的人;Touch_Num(x1) = 5//Application 1, people with a click rate of more than 100 million;
Weight_Num(x1) = Pic_Resolution(x1)*
Touch_Num(x1)=5*5 =25//应用1 ,提醒4K图片,自动生成优先级25;Weight_Num(x1) = Pic_Resolution(x1)*
Touch_Num (x1) = 5 * 5 = 25 / / application 1, remind 4K picture, automatically generate priority 25;
Weight_Num(x2) = Pic_Resolution(x2)*
Touch_Num(x1)=4*5 =20//应用2,高清预览消息自动生成优先级20;Weight_Num(x2) = Pic_Resolution(x2)*
Touch_Num(x1)=4*5=20//Application 2, HD preview message automatically generates priority 20;
应用1的图片提示信息自动优先显示。The picture prompt information of application 1 is automatically displayed first.
在第二实施方式中,本实施方式与上述第一实施方式的不同之处在于:当所述提示信息的类型为文本类型时,请参照图4,则所述步骤S30包括:In the second embodiment, the difference between the present embodiment and the first embodiment is that when the type of the prompt information is a text type, refer to FIG. 4, and the step S30 includes:
步骤S321,当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;In step S321, when the electronic device is shaken, the priority weight of the application corresponding to the current prompt information and the character length weight of the text are obtained;
步骤S322,根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;Step S322, calculating a priority of the current prompt information according to the priority weight and a character length weight of the text;
步骤S323,根据所述优先级对当前提示信息进行排序处理。Step S323, sorting the current prompt information according to the priority.
需要说明的是,所述优先权重可以根据电子设备所安装各应用云端服务器字符的访问量、访问时间长短等数据得出。It should be noted that the priority may be obtained according to data such as the access amount of each application cloud server character installed in the electronic device, the length of the access time, and the like.
本实施方式中,所述优先权重根据各应用云端服务器字符访问量的数据得出,即应用的访问量越大,则权重越大;所述获取的文本的字符长度权重的确定则为,获取的文本字符的长度越长,权重越小;根据通过上述方式设定的优先权重与获取的文本的字符长度权重相乘以判断各应用的优先等级,即乘积越大的优先排列。具体地为:In this embodiment, the priority is determined according to the data of the cloud access value of each application cloud server, that is, the larger the access amount of the application is, the larger the weight is; the weight of the character length of the obtained text is determined, and the weight is obtained. The longer the length of the text character, the smaller the weight; the priority weight set by the above method is multiplied by the weight length weight of the acquired text to determine the priority level of each application, that is, the larger the priority of the product. Specifically:
Cloud_Text_Weight(x1) = 5 //应用1,点击率访问率超过1亿以上的人;Cloud_Text_Weight(x1) = 5 //App1, people with a click-through rate of more than 100 million;
Cloud_Text_Weight(x2) = 4 //应用2,点击率访问率超过5千万以下的人;Cloud_Text_Weight(x2) = 4 //App 2, people with a CTR access rate of more than 50 million;
Cloud_Text_Lenth(x1) =2//应用1,文本1,字符长度超过500;Cloud_Text_Lenth(x1) = 2//Application 1, text 1, character length exceeds 500;
Cloud_Text_Lenth(x2) =3//应用2,文本2,字符长度小于200;Cloud_Text_Lenth(x2) =3//Application 2, text 2, character length less than 200;
Text_Weight(x1)= Cloud_Text_Lenth(x1)*
Cloud_Text_Weight(x1) = 5*2 = 10//应用1的文本优先权重:10;Text_Weight(x1)= Cloud_Text_Lenth(x1)*
Cloud_Text_Weight(x1) = 5*2 = 10//The text priority of application 1 is: 10;
Text_Weight(x1)= Cloud_Text_Lenth(x2)*
Cloud_Text_Weight(x2) =4*3 = 12//应用2的文本优先权重:12;Text_Weight(x1)= Cloud_Text_Lenth(x2)*
Cloud_Text_Weight(x2) = 4*3 = 12//The text priority of application 2 is: 12;
应用2的文本提示信息自动优先显示。The text prompt information of application 2 is automatically displayed first.
在第三实施方式中,本实施方式与上述第一实施方式及第二实施方式的不同之处在于:所述提示信息的类型既包括图片类型,也包括文本类型,当所述电子设备被摇晃时,则获取当前提示信息对应的应用的优先权重以及图片的清晰度权重和文本的字符长度权重;根据所述优先权重以及图片的清晰度权重和文本的字符长度权重计算所述当前提示信息的优先级;根据所述优先级对当前提示信息进行排序处理。In the third embodiment, the present embodiment is different from the first embodiment and the second embodiment in that the type of the prompt information includes both a picture type and a text type, when the electronic device is shaken. And acquiring the priority weight of the application corresponding to the current prompt information, the clarity weight of the image, and the character length weight of the text; calculating the current prompt information according to the priority weight and the clarity weight of the image and the character length weight of the text. Priority; sorting the current prompt information according to the priority.
需要说明的是,本实施方式中,所述优先权重以及图片的清晰度权重和文本的字符长度权重的确定参考上述第一实施方式和第二实施方式中提供的方法,在此不再一一赘述。It should be noted that, in this embodiment, the determination of the weight of the priority and the weight of the picture and the weight of the character length of the text are determined by referring to the methods provided in the foregoing first embodiment and the second embodiment, and are not further herein. Narration.
本发明还提供一种应用提示信息显示装置,参照图5,在一实施例中,本发明提供的应用提示信息显示装置包括:The present invention also provides an application prompt information display device. Referring to FIG. 5, in an embodiment, the application prompt information display device provided by the present invention includes:
获取模块10,用于获取电子设备所安装应用的提示信息;The obtaining module 10 is configured to obtain prompt information of an application installed by the electronic device;
其中,所述获取模块10获取电子设备所安装应用的提示信息,即为信息推送技术,这种信息推送技术是一种基于客户端-服务器机制,由服务器主动地将信息发送给客户端的技术,让信息主动地去寻找客户端,其优势在于信息的主动性和及时性,通过该技术,可以尽快地将信息推送给用户。The obtaining module 10 acquires the prompt information of the application installed by the electronic device, that is, the information pushing technology, and the information pushing technology is a technology based on the client-server mechanism, and the server actively sends the information to the client. Let the information actively seek the client, the advantage is the initiative and timeliness of the information, through which the information can be pushed to the user as soon as possible.
可以理解的是,电子设备通常会安装有多个应用,电子设备会定期或不定期地接收到所安装应用的推送信息,以提醒用户该应用的最新更新、定制信息、程序升级等信息,用以提升该应用的活跃度。本实施例中,所述电子设备可以是手机、平板电脑等智能设备。It can be understood that an electronic device usually has multiple applications installed, and the electronic device periodically or irregularly receives the push information of the installed application to remind the user of the latest update, customization information, program upgrade, and the like of the application. To increase the activity of the app. In this embodiment, the electronic device may be a smart device such as a mobile phone or a tablet computer.
判断模块20,用于根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;The determining module 20 is configured to determine, according to the acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken;
具体地,所述加速度传感器为三轴加速度传感器,即所述加速度传感器的加速度值包括X轴、Y轴和Z轴上的加速度值。当所述加速度传感器X轴、Y轴和Z轴中至少一者加速度值发生变化,通过特定的函数算法,对特定时间内所获取的加速度值进行有效地计算和选取,用以判断所述电子设备是否被摇晃。Specifically, the acceleration sensor is a three-axis acceleration sensor, that is, the acceleration value of the acceleration sensor includes acceleration values on the X-axis, the Y-axis, and the Z-axis. When the acceleration value of at least one of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor changes, the acceleration value obtained in a specific time is effectively calculated and selected by a specific function algorithm to determine the electronic Whether the device is shaken.
需要说明的是,上述特定的函数算法,可以是对特定时间内获取的加速度值进行求和、求差、求积、求平均值等各类函数算法中的一种或是几种的结合;所述特定时间包括至少一个特定时长,另外,该步骤中可以还包括预先设置一特定的加速度值并存储,该特定的加速度值用以与上述通过特定的函数算法的加速度值比较得出有效加速度值,该有效加速度值用以判断所述电子设备是否被摇晃。It should be noted that the specific function algorithm may be one or a combination of various function algorithms for summing, difference, quadrature, and averaging acceleration values acquired in a specific time; The specific time includes at least one specific duration. In addition, the step may further include: presetting a specific acceleration value and storing the specific acceleration value to obtain an effective acceleration compared with the acceleration value by using the specific function algorithm. The value of the effective acceleration value is used to determine whether the electronic device is shaken.
排序模块30,用于当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;The sorting module 30 is configured to: when the electronic device is shaken, reorder the prompt information according to a preset priority of each application;
具体地,当判定所述电子设备被摇晃时,则根据电子设备安装的各应用的优先级对所述提示信息进行排序。可以理解的是,所述优先级可以有多种确定方法,如可以根据各应用的访问量的大小、访问时间的长短、提示信息的格式大小等来确定,进而通过上述方法预设的优先级对所述提示信息进行排序。Specifically, when it is determined that the electronic device is shaken, the prompt information is sorted according to priorities of respective applications installed by the electronic device. It can be understood that the priority may be determined by multiple determination methods, such as the size of the access volume of each application, the length of the access time, the format size of the prompt information, and the like, and the priority preset by the foregoing method. Sorting the prompt information.
显示模块40,用于控制所述电子设备显示排序后的提示信息。The display module 40 is configured to control the electronic device to display the sorted prompt information.
可以理解的是,现有的电子设备通常会为各个应用的信息推送进行统一的管理机制,在该机制中,各应用可以委托电子设备操作系统提供的信息管理体系来完成信息的推送。此时,各应用推送的信息,也就是各应用委托电子设备的操作系统向用户推送的推送信息,该类推送信息通常显示于电子设备的特定的显示界面,以方便用户能第一时间查看和处理。It can be understood that the existing electronic device usually performs a unified management mechanism for information push of each application. In this mechanism, each application can entrust an information management system provided by the operating system of the electronic device to complete the information push. At this time, the information pushed by each application, that is, the push information pushed by the operating system of each application to the user, is usually displayed on a specific display interface of the electronic device, so that the user can view and view the first time. deal with.
例如,在一种实施方式中,所述特定的显示界面为电子设备的主界面(一般用以显示电子设备中的系统程序以及各个安装应用的图标),当接收到某应用的推送信息时,该推送信息会显示于电子设备的主界面,方便用户直接查看和处理。For example, in an embodiment, the specific display interface is a main interface of the electronic device (generally used to display system programs in the electronic device and icons of each installed application), when receiving push information of an application, The push information is displayed on the main interface of the electronic device, which is convenient for the user to directly view and process.
在另一实施方式中,所述特定的显示界面为电子设备的锁屏状态界面(在屏幕被激活但在执行解锁操作之前向用户显示的界面),当接收到某应用的推送消息时,可以在电子设备的锁屏状态界面中显示该推送信息。可以理解的是,上述显示于锁屏状态界面的推送信息,通常是以信息摘要列表的形式进行显示,在用户对屏幕执行解锁操作之后,该类信息会直接显示于电子设备的主界面,以方便用户进一步查看和处理。In another embodiment, the specific display interface is a lock screen status interface of the electronic device (an interface displayed to the user before the screen is activated but before the unlocking operation is performed), when receiving a push message of an application, The push information is displayed in the lock screen status interface of the electronic device. It can be understood that the above-mentioned push information displayed on the lock screen status interface is usually displayed in the form of a list of information digests. After the user performs an unlock operation on the screen, the information is directly displayed on the main interface of the electronic device. It is convenient for users to further view and process.
本发明提供的应用提示信息显示装置通过获取电子设备所安装应用的提示信息后,根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;当所述电子设备被摇晃时,根据各应用预设的优先级对所述提示信息进行排序;进而控制所述电子设备显示排序后的提示信息。通过对应用提示信息进行的优先排序,能将常用应用的提示信息或是客户指定应用的提示信息优先显示于电子设备,使得用户不再需要对大量的提示信息一条条进行阅读和查找,方便用户使用,提高了电子设备的智能化程度。After obtaining the prompt information of the application installed by the electronic device, the application prompt information display device determines whether the electronic device is shaken according to the acceleration value output by the acceleration sensor of the electronic device; when the electronic device is shaken And sorting the prompt information according to a preset priority of each application; and further controlling the electronic device to display the sorted prompt information. By prioritizing the application prompt information, the prompt information of the common application or the prompt information of the client-specific application can be preferentially displayed on the electronic device, so that the user no longer needs to read and search a large number of prompt information, which is convenient for the user. Use, to improve the intelligence of electronic devices.
进一步地,请参照图6,基于上述实施例,在本实施例中,所述应用提示信息显示装置的判断模块包括:Further, referring to FIG. 6, based on the foregoing embodiment, in the embodiment, the determining module of the application prompt information display device includes:
获取单元21,用于每隔第一预设时长获取所述加速度传感器的加速度值;The acquiring unit 21 is configured to acquire an acceleration value of the acceleration sensor every first preset time length;
提取单元22,用于每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;The extracting unit 22 is configured to calculate an average value of the maximum value and the minimum value according to the acquired acceleration value every second time period, and sequentially extract an acceleration value greater than the average value; the second time length is greater than the first time length;
判断单元23,用于当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。The determining unit 23 is configured to determine that the electronic device is shaken when it is determined that the difference between the two adjacent acceleration values is greater than a preset value.
本实施例中,所述第一预设时长为100ms,即每间隔100ms获取加速度传感器X轴、Y轴和Z轴的加速度值,并保存于第一存储区中。In this embodiment, the first preset duration is 100 ms, that is, the acceleration values of the X-axis, the Y-axis, and the Z-axis of the acceleration sensor are acquired every 100 ms, and are stored in the first storage area.
具体地,每隔第二时长根据存储于第一存储区中的加速度值获取最大值与最小值的平均值,将所述第一存储区中的加速度值与所述平均值对比,并依次提取大于所述平均值的加速度值,保存于第二存储区中。Specifically, an average value of the maximum value and the minimum value is obtained according to the acceleration value stored in the first storage area every second time period, and the acceleration value in the first storage area is compared with the average value, and sequentially extracted An acceleration value greater than the average value is stored in the second storage area.
可以理解的是,所述第二时长大于第一时长,即所述第二时长大于100ms。It can be understood that the second duration is greater than the first duration, that is, the second duration is greater than 100 ms.
本实施例中,所述预设值为1并保存于第二存储区中,根据存储于第二存储区中的加速度值,依次提取相邻的两加速度值的差值,当判断提取的加速度值中存在相邻的两加速度值的差值大于1时,则判定所述电子设备被摇晃;当判断提取的加速度值中不存在相邻的两加速度值的差值大于1时,则判定所述电子设备未被摇晃。In this embodiment, the preset value is 1 and is stored in the second storage area, and the difference between the adjacent two acceleration values is sequentially extracted according to the acceleration value stored in the second storage area, and the extracted acceleration is determined. If the difference between the two adjacent acceleration values is greater than 1, the electronic device is determined to be shaken; when it is determined that the difference between the two adjacent acceleration values is greater than 1 in the extracted acceleration value, the determination is performed. The electronic device is not shaken.
应当说明的是,所述提示信息的类型可以有多种形式,如图片类型或文本类型等,具体地,本实施例将通过以下两种实施方式对提示信息的不同类型进行进一步说明。It should be noted that the type of the prompt information may be in various forms, such as a picture type or a text type. Specifically, the present embodiment further describes different types of prompt information by using the following two implementation manners.
在第一实施方式中,当所述提示信息的类型为图片类型时,请参照图7,所述排序模块30包括:In the first embodiment, when the type of the prompt information is a picture type, referring to FIG. 7, the sorting module 30 includes:
第一获取单元311,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;The first obtaining unit 311 is configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a clarity weight of the image;
第一计算单元312,用于根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;The first calculating unit 312 is configured to calculate a priority of the current prompt information according to the priority weight and the sharpness weight of the picture;
第一排序单元313,根据所述优先级对当前提示信息进行排序处理。The first sorting unit 313 performs sorting processing on the current prompt information according to the priority.
需要说明的是,所述优先权重可以是根据电子设备所安装各应用中访问量最大或各应用中访问时间最长等数据得出。本实施例中,所述优先权重是根据电子设备所安装各应用中访问量最大的数据得出,根据用户的访问记录,从而判断得出用户对各应用的喜好程度,进而设定每个应用显示的优先等级;也就是应用访问量最大、图片越清晰的优先排列。具体地为:It should be noted that the priority may be obtained according to data such as the largest number of visits in each application installed in the electronic device or the longest access time in each application. In this embodiment, the priority is obtained according to the data with the largest amount of access in each application installed in the electronic device, and according to the access record of the user, the user's preference for each application is determined, and then each application is set. The priority level of the display; that is, the application has the most traffic and the clearer the picture. Specifically:
Pic_Resolution(x1) = 5 //应用1,提醒4K图片清晰预览消息;Pic_Resolution(x1) = 5 //Apply 1, reminding 4K pictures to clearly preview the message;
Pic_Resolution(x2) =4 //应用2,提醒图片高清预览消息;Pic_Resolution(x2) =4 //Apply 2 to remind the picture HD preview message;
Touch_Num(x1) = 5//应用1,点击率超过1亿以上的人;Touch_Num(x1) = 5//Application 1, people with a click rate of more than 100 million;
Weight_Num(x1) = Pic_Resolution(x1)*
Touch_Num(x1)=5*5 =25//应用1 ,提醒4K图片,自动生成优先级25;Weight_Num(x1) = Pic_Resolution(x1)*
Touch_Num (x1) = 5 * 5 = 25 / / application 1, remind 4K picture, automatically generate priority 25;
Weight_Num(x2) = Pic_Resolution(x2)*
Touch_Num(x1)=4*5 =20//应用2,高清预览消息自动生成优先级20;Weight_Num(x2) = Pic_Resolution(x2)*
Touch_Num(x1)=4*5=20//Application 2, HD preview message automatically generates priority 20;
应用1的图片提示信息自动优先显示。The picture prompt information of application 1 is automatically displayed first.
在第二实施方式中,本实施方式与上述第一实施方式的不同之处在于:当所述提示信息的类型为文本类型时,请参照图8,所述排序模块30包括:In the second embodiment, the present embodiment is different from the first embodiment in that, when the type of the prompt information is a text type, referring to FIG. 8 , the sorting module 30 includes:
第二获取单元321,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;The second obtaining unit 321 is configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a character length weight of the text;
第二计算单元322,用于根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;a second calculating unit 322, configured to calculate a priority of the current prompt information according to the priority weight and a character length weight of the text;
第二排序单元323,用于根据所述优先级对当前提示信息进行排序处理。The second sorting unit 323 is configured to perform sorting processing on the current prompt information according to the priority.
需要说明的是,所述优先权重可以根据电子设备所安装各应用云端服务器字符的访问量、访问时间长短等数据得出。It should be noted that the priority may be obtained according to data such as the access amount of each application cloud server character installed in the electronic device, the length of the access time, and the like.
本实施方式中,所述优先权重根据各应用云端服务器字符访问量的数据得出,即应用的访问量越大,则权重越大;所述获取的文本的字符长度权重的确定则为,获取的文本字符的长度越长,权重越小;根据通过上述方式设定的优先权重与获取的文本的字符长度权重相乘以判断各应用的优先等级,即乘积越大的优先排列。具体地为:In this embodiment, the priority is determined according to the data of the cloud access value of each application cloud server, that is, the larger the access amount of the application is, the larger the weight is; the weight of the character length of the obtained text is determined, and the weight is obtained. The longer the length of the text character, the smaller the weight; the priority weight set by the above method is multiplied by the weight length weight of the acquired text to determine the priority level of each application, that is, the larger the priority of the product. Specifically:
Cloud_Text_Weight(x1) = 5 //应用1,点击率访问率超过1亿以上的人;Cloud_Text_Weight(x1) = 5 //App1, people with a click-through rate of more than 100 million;
Cloud_Text_Weight(x2) = 4 //应用2,点击率访问率超过5千万以下的人;Cloud_Text_Weight(x2) = 4 //App 2, people with a CTR access rate of more than 50 million;
Cloud_Text_Lenth(x1) =2//应用1,文本1,字符长度超过500;Cloud_Text_Lenth(x1) = 2//Application 1, text 1, character length exceeds 500;
Cloud_Text_Lenth(x2) =3//应用2,文本2,字符长度小于200;Cloud_Text_Lenth(x2) =3//Application 2, text 2, character length less than 200;
Text_Weight(x1)= Cloud_Text_Lenth(x1)*
Cloud_Text_Weight(x1) = 5*2 = 10//应用1的文本优先权重:10;Text_Weight(x1)= Cloud_Text_Lenth(x1)*
Cloud_Text_Weight(x1) = 5*2 = 10//The text priority of application 1 is: 10;
Text_Weight(x1)= Cloud_Text_Lenth(x2)*
Cloud_Text_Weight(x2) =4*3 = 12//应用2的文本优先权重:12;Text_Weight(x1)= Cloud_Text_Lenth(x2)*
Cloud_Text_Weight(x2) = 4*3 = 12//The text priority of application 2 is: 12;
应用2的文本提示信息自动优先显示。The text prompt information of application 2 is automatically displayed first.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (18)
- 一种应用提示信息显示方法,其特征在于,所述应用提示信息显示方法包括以下步骤: An application prompt information display method, wherein the application prompt information display method comprises the following steps:获取电子设备所安装应用的提示信息;Obtaining prompt information of an application installed on the electronic device;根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;Determining whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device;当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;When the electronic device is shaken, the prompt information is sorted according to the preset priority of each application;控制所述电子设备显示排序后的提示信息。Controlling the electronic device to display the sorted prompt information.
- 如权利要求1所述的应用提示信息显示方法,其特征在于,所述根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃的步骤包括:The application prompt information display method according to claim 1, wherein the step of determining whether the electronic device is shaken according to an acceleration value output by the acceleration sensor of the electronic device comprises:每隔第一预设时长获取所述加速度传感器的加速度值;Acquiring the acceleration value of the acceleration sensor every first preset time length;每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;Calculating an average value of the maximum value and the minimum value according to the acquired acceleration every second time period, and sequentially extracting an acceleration value greater than the average value; the second time length is greater than the first time length;当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。When it is judged that the difference between the two adjacent acceleration values is greater than the preset value, it is determined that the electronic device is shaken.
- 如权利要求2所述的应用提示信息显示方法,其特征在于,所述提示信息的类型包括图片类型和文本类型。The application prompt information display method according to claim 2, wherein the type of the prompt information comprises a picture type and a text type.
- 如权利要求3所述的应用提示信息显示方法,其特征在于,当所述提示信息的类型为图片类型时,所述当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序的步骤还包括:The application prompt information display method according to claim 3, wherein when the type of the prompt information is a picture type, when the electronic device is shaken, the priority is reset according to the preset priority of each application. The steps of sorting the prompt information further include:当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;When the electronic device is shaken, acquiring the priority of the application corresponding to the current prompt information and the clarity weight of the image;根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;Calculating a priority of the current prompt information according to the priority weight and a sharpness weight of the picture;根据所述优先级对当前提示信息进行排序处理。Sorting the current prompt information according to the priority.
- 如权利要求4所述的应用提示信息显示方法,其特征在于,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。The application prompt information display method according to claim 4, wherein the acceleration value includes an acceleration value on the X-axis, an acceleration value on the Y-axis, and an acceleration value on the Z-axis.
- 如权利要求4所述的应用提示信息显示方法,其特征在于,所述各应用预设的优先权重根据对应的访问量进行设定。The application prompt information display method according to claim 4, wherein the priority of each application preset is set according to a corresponding access amount.
- 如权利要求3所述的应用提示信息显示方法,其特征在于,当所述提示信息的类型为文本类型时,所述当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序的步骤还包括:The application prompt information display method according to claim 3, wherein when the type of the prompt information is a text type, when the electronic device is shaken, the priority is reset according to the preset priority of each application. The steps of sorting the prompt information further include:当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;When the electronic device is shaken, obtaining a priority weight of an application corresponding to the current prompt information and a character length weight of the text;根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;Calculating a priority of the current prompt information according to the priority weight and a character length weight of the text;根据所述优先级对当前提示信息进行排序处理。Sorting the current prompt information according to the priority.
- 如权利要求7所述的应用提示信息显示方法,其特征在于,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。The application prompt information display method according to claim 7, wherein the acceleration value includes an acceleration value on the X-axis, an acceleration value on the Y-axis, and an acceleration value on the Z-axis.
- 如权利要求7所述的应用提示信息显示方法,其特征在于,所述各应用预设的优先权重根据对应的访问量进行设定。The application prompt information display method according to claim 7, wherein the priority of each application preset is set according to a corresponding access amount.
- 一种应用提示信息显示装置,其特征在于,所述应用提示信息显示装置包括:An application prompt information display device, wherein the application prompt information display device comprises:获取模块,用于获取电子设备所安装应用的提示信息;The obtaining module is configured to obtain prompt information of an application installed by the electronic device;判断模块,用于根据所述电子设备的加速度传感器输出的加速度值判断所述电子设备是否被摇晃;a determining module, configured to determine, according to an acceleration value output by the acceleration sensor of the electronic device, whether the electronic device is shaken;排序模块,用于当所述电子设备被摇晃时,根据各应用预设的优先权重对所述提示信息进行排序;a sorting module, configured to: when the electronic device is shaken, reorder the prompt information according to a preset priority of each application;显示模块,用于控制所述电子设备显示排序后的提示信息。And a display module, configured to control the electronic device to display the sorted prompt information.
- 如权利要求10所述的应用提示信息显示装置,其特征在于,所述判断模块包括:The application prompt information display device according to claim 10, wherein the determining module comprises:获取单元,用于每隔第一预设时长获取所述加速度传感器的加速度值;An acquiring unit, configured to acquire an acceleration value of the acceleration sensor every first preset duration;提取单元,用于每隔第二时长根据获取的所述加速度值得出最大值与最小值的平均值,并依次提取大于所述平均值的加速度值;所述第二时长大于第一时长;The extracting unit is configured to calculate an average value of the maximum value and the minimum value according to the acquired acceleration value every second time period, and sequentially extract an acceleration value greater than the average value; the second time length is greater than the first time length;判断单元,用于当判断提取的加速度值中存在相邻的两加速度值的差值大于预设值时,则判定所述电子设备被摇晃。The determining unit is configured to determine that the electronic device is shaken when it is determined that the difference between the two adjacent acceleration values is greater than a preset value.
- 如权利要求11所述的应用提示信息显示装置,其特征在于,所述提示信息的类型包括图片类型和文本类型。The application prompt information display device according to claim 11, wherein the type of the prompt information comprises a picture type and a text type.
- 如权利要求12所述的应用提示信息显示装置,其特征在于,当所述提示信息的类型为图片类型时,所述排序模块包括:The application prompt information display device according to claim 12, wherein when the type of the prompt information is a picture type, the sorting module comprises:第一获取单元,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及图片的清晰度权重;a first obtaining unit, configured to acquire, when the electronic device is shaken, a priority weight of an application corresponding to the current prompt information and a sharpness weight of the image;第一计算单元,用于根据所述优先权重以及图片的清晰度权重计算所述当前提示信息的优先级;a first calculating unit, configured to calculate a priority of the current prompt information according to the priority weight and a sharpness weight of the picture;第一排序单元,用于根据所述优先级对当前提示信息进行排序处理。The first sorting unit is configured to perform sorting processing on the current prompt information according to the priority.
- 如权利要求13所述的应用提示信息显示装置,其特征在于,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。The application prompt information display device according to claim 13, wherein the acceleration value includes an acceleration value on the X-axis, an acceleration value on the Y-axis, and an acceleration value on the Z-axis.
- 如权利要求13所述的应用提示信息显示装置,其特征在于,所述各应用预设的优先权重根据对应的访问量进行设定。The application prompt information display device according to claim 13, wherein the priority of each application preset is set according to a corresponding access amount.
- 如权利要求12所述的应用提示信息显示装置,其特征在于,当所述提示信息的类型为文本类型时,所述排序模块包括:The application prompt information display device according to claim 12, wherein when the type of the prompt information is a text type, the sorting module comprises:第二获取单元,用于当所述电子设备被摇晃时,获取当前提示信息对应的应用的优先权重以及文本的字符长度权重;a second acquiring unit, configured to: when the electronic device is shaken, acquire a priority weight of an application corresponding to the current prompt information and a character length weight of the text;第二计算单元,用于根据所述优先权重以及文本的字符长度权重计算所述当前提示信息的优先级;a second calculating unit, configured to calculate a priority of the current prompt information according to the priority weight and a character length weight of the text;第二排序单元,用于根据所述优先级对当前提示信息进行排序处理。And a second sorting unit, configured to perform sorting processing on the current prompt information according to the priority.
- 如权利要求16所述的应用提示信息显示装置,其特征在于,所述加速度值包括X轴上的加速度值、Y轴上的加速度值和Z轴上的加速度值。The application prompt information display device according to claim 16, wherein the acceleration value includes an acceleration value on the X-axis, an acceleration value on the Y-axis, and an acceleration value on the Z-axis.
- 如权利要求16所述的应用提示信息显示装置,其特征在于,所述各应用预设的优先权重根据对应的访问量进行设定。 The application prompt information display device according to claim 16, wherein the priority of each application preset is set according to a corresponding access amount.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610602148.1 | 2016-07-27 | ||
CN201610602148.1A CN106293420B (en) | 2016-07-27 | 2016-07-27 | Application prompt information display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018018680A1 true WO2018018680A1 (en) | 2018-02-01 |
Family
ID=57662740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095910 WO2018018680A1 (en) | 2016-07-27 | 2016-08-18 | Display method and apparatus for application prompt information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106293420B (en) |
WO (1) | WO2018018680A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113159838A (en) * | 2021-04-09 | 2021-07-23 | 上海掌门科技有限公司 | Method, apparatus, medium, and program product for pushing target presentation information |
CN117193682A (en) * | 2022-05-31 | 2023-12-08 | 广州星际悦动股份有限公司 | Display control method, display control device, storage medium and oral care system |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107247539A (en) * | 2017-06-16 | 2017-10-13 | 珠海市魅族科技有限公司 | A kind of information displaying method and device, computer installation and readable storage medium storing program for executing |
CN108390997A (en) * | 2018-01-26 | 2018-08-10 | 维沃移动通信有限公司 | A kind of display methods and mobile terminal of unread message |
CN108877732A (en) * | 2018-06-29 | 2018-11-23 | 厦门直播星电子科技有限公司 | A kind of method for realizing that screen shows jitter compensation on motion carrier |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118168A (en) * | 2012-12-26 | 2013-05-22 | 珠海市魅族科技有限公司 | Display control method and terminal of unprocessed information |
US20140179377A1 (en) * | 2012-12-20 | 2014-06-26 | Pantech Co., Ltd. | Mobile electronic device having program notification function and program notification method thereof |
US20140229880A1 (en) * | 2012-06-27 | 2014-08-14 | Google Inc. | Systems and methods for prioritizing notifications on mobile devices |
CN104503884A (en) * | 2014-12-30 | 2015-04-08 | 中科创达软件股份有限公司 | Prompting method and system for unprocessed message |
CN104572942A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Push message display method and push message display device |
CN104764491A (en) * | 2015-04-08 | 2015-07-08 | 深圳市康康网络技术有限公司 | Equipment use state recognizing method and electronic equipment |
CN105228116A (en) * | 2015-10-27 | 2016-01-06 | 努比亚技术有限公司 | A kind of intelligent prompt device, method and mobile terminal distinguishing information priorities |
CN105763952A (en) * | 2016-01-29 | 2016-07-13 | 浪潮软件集团有限公司 | Information prompting method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678406B (en) * | 2012-09-24 | 2018-09-28 | 腾讯科技(深圳)有限公司 | The method and mobile terminal be ranked up to browser bookmark |
CN102968247A (en) * | 2012-11-29 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method and mobile terminal for realizing automatic alignment and sorting of desktop icons by shaking |
CN104765853A (en) * | 2015-04-20 | 2015-07-08 | 无锡天脉聚源传媒科技有限公司 | Search processing method and device |
CN105511727B (en) * | 2015-12-14 | 2019-02-15 | 魅族科技(中国)有限公司 | A kind of message treatment method and device |
-
2016
- 2016-07-27 CN CN201610602148.1A patent/CN106293420B/en active Active
- 2016-08-18 WO PCT/CN2016/095910 patent/WO2018018680A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140229880A1 (en) * | 2012-06-27 | 2014-08-14 | Google Inc. | Systems and methods for prioritizing notifications on mobile devices |
US20140179377A1 (en) * | 2012-12-20 | 2014-06-26 | Pantech Co., Ltd. | Mobile electronic device having program notification function and program notification method thereof |
CN103118168A (en) * | 2012-12-26 | 2013-05-22 | 珠海市魅族科技有限公司 | Display control method and terminal of unprocessed information |
CN104503884A (en) * | 2014-12-30 | 2015-04-08 | 中科创达软件股份有限公司 | Prompting method and system for unprocessed message |
CN104572942A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Push message display method and push message display device |
CN104764491A (en) * | 2015-04-08 | 2015-07-08 | 深圳市康康网络技术有限公司 | Equipment use state recognizing method and electronic equipment |
CN105228116A (en) * | 2015-10-27 | 2016-01-06 | 努比亚技术有限公司 | A kind of intelligent prompt device, method and mobile terminal distinguishing information priorities |
CN105763952A (en) * | 2016-01-29 | 2016-07-13 | 浪潮软件集团有限公司 | Information prompting method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113159838A (en) * | 2021-04-09 | 2021-07-23 | 上海掌门科技有限公司 | Method, apparatus, medium, and program product for pushing target presentation information |
CN117193682A (en) * | 2022-05-31 | 2023-12-08 | 广州星际悦动股份有限公司 | Display control method, display control device, storage medium and oral care system |
CN117193682B (en) * | 2022-05-31 | 2024-05-03 | 广州星际悦动股份有限公司 | Display control method, display control device, storage medium and oral care system |
Also Published As
Publication number | Publication date |
---|---|
CN106293420A (en) | 2017-01-04 |
CN106293420B (en) | 2019-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018018680A1 (en) | Display method and apparatus for application prompt information | |
WO2019019493A1 (en) | Data sharing method and device, and computer readable storage medium | |
WO2018166224A1 (en) | Target tracking display method and apparatus for panoramic video, and storage medium | |
WO2019114269A1 (en) | Method for resuming playing program, television device, and computer readable storage medium | |
WO2018120457A1 (en) | Data processing method, apparatus, device, and computer readable storage medium | |
WO2015127859A1 (en) | Sensitive text detecting method and apparatus | |
WO2019041851A1 (en) | Home appliance after-sales consulting method, electronic device and computer-readable storage medium | |
WO2017107388A1 (en) | Hdmi version switching method and display device | |
WO2017113614A1 (en) | Method and device for intercut playing of advertisement during video playing | |
WO2018227887A1 (en) | Video advertisement delivery method, video advertisement generation method, device, server and readable storage medium | |
WO2018233367A1 (en) | Case registration method and apparatus, terminal, and computer readable storage medium | |
WO2019024336A1 (en) | Data query method and device, and computer readable storage medium | |
WO2019019351A1 (en) | User behaviour data processing method and apparatus, and computer readable storage medium | |
WO2019071762A1 (en) | Floor positioning method and system, server and computer-readable storage medium | |
WO2018233221A1 (en) | Multi-window sound output method, television, and computer-readable storage medium | |
WO2019071771A1 (en) | Wireless signal fingerprint information calibration method, system, server and medium | |
WO2018149191A1 (en) | Method, apparatus and device for underwriting insurance policy, and computer-readable storage medium | |
WO2019042220A1 (en) | Intelligent system adjusting method and apparatus, and computer readable storage medium | |
WO2017181504A1 (en) | Method and television set for intelligently adjusting subtitle size | |
WO2019000800A1 (en) | Credential preparation method, apparatus, and device and computer readable storage medium | |
WO2018032679A1 (en) | Setting method and device for timed startup and shutoff of television | |
WO2017152527A1 (en) | Method for controlling slave device application of smart television, and smart television | |
WO2019056566A1 (en) | Air conditioning parameter determination method, air conditioning apparatus, and readable storage medium | |
WO2019061546A1 (en) | Mobile terminal photographing method, device and computer readable storage medium | |
WO2018201775A1 (en) | Method, apparatus and device for generating balance electronic blue invoice and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16910259 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 270619) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16910259 Country of ref document: EP Kind code of ref document: A1 |