Method and device for controlling notification content preview on mobile terminal, and storage medium
First Claim
Patent Images
1. A method for controlling a notification content preview on a mobile terminal, the method comprising:
- receiving a notification;
judging whether the mobile terminal is in a held state; and
in response to the mobile terminal is in the held state, generating a corresponding notification content preview according to the notification, and displaying the notification content preview on a screen of the mobile terminal,wherein generating a corresponding notification content preview according to the notification comprise;
extracting content of the notification, generating the corresponding notification content preview in terms of a preset format;
wherein the mobile terminal comprises a sensor;
judging whether the mobile terminal is in the held state comprises;
acquiring a capacitance value output by the sensor; and
comparing the capacitance value with a preset threshold value, and in response to the capacitance value is greater than the preset threshold value, recognizing that the mobile terminal is in the held state;
and wherein the sensor comprises a first sensor and a second sensor;
the first sensor and the second sensor are respectively arranged at two opposite long side edges of the mobile terminal or are respectively arranged at positions, adjacent to the two opposite long side edges, on a back of the mobile terminal;
comparing the capacitance value with the preset threshold value comprises;
acquiring a first capacitance value output by the first sensor and a second capacitance value output by the second sensor;
comparing the first capacitance value and the second capacitance value with a state threshold value to obtain contact states corresponding to the first capacitance value and the second capacitance value respectively; and
recognizing the held state of the mobile terminal according to the contact states;
and wherein the state threshold value comprises a first state threshold value and a second state threshold value, the contact states comprise a palm contact state and a finger contact state, the first state threshold value is corresponding to the palm contact state, the second state threshold value is corresponding to the finger contact state, and the first state threshold value is greater than the second state threshold value;
the held state comprises a one-handed held state and a two-handed held state; and
wherein comparing the first capacitance value and the second capacitance value with the state threshold value to obtain the contact states corresponding to the first capacitance value and the second capacitance value respectively, and recognizing the held state of the mobile terminal according to the contact states comprises;
comparing the first capacitance value with the first state threshold value and the second state threshold value respectively, determining that the first capacitance value is corresponding to the palm contact state in response to that the first capacitance value is greater than or equal to the first state threshold value, determining that the first capacitance value is corresponding to the finger contact state in response to that the first capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value;
comparing the second capacitance value with the first state threshold value and the second state threshold value respectively, determining that the second capacitance value is corresponding to the palm contact state in response to that the second capacitance value is greater than or equal to the first state threshold value, determining that the second capacitance value is corresponding to the finger contact state in response to that the second capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; and
determining that the mobile terminal is in the one-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are different, determining that the mobile terminal is in the two-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are the same.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and device for controlling a notification content preview on a mobile terminal, and storage medium include: receiving a notification; determining whether a mobile terminal is in a held state; and if so, then generating a corresponding notification content preview according to the notification, and displaying the notification content preview on a screen of the mobile terminal. A user can therefore learn about a received notification content in time via a simple and effective manner.
14 Citations
7 Claims
-
1. A method for controlling a notification content preview on a mobile terminal, the method comprising:
-
receiving a notification; judging whether the mobile terminal is in a held state; and in response to the mobile terminal is in the held state, generating a corresponding notification content preview according to the notification, and displaying the notification content preview on a screen of the mobile terminal, wherein generating a corresponding notification content preview according to the notification comprise; extracting content of the notification, generating the corresponding notification content preview in terms of a preset format; wherein the mobile terminal comprises a sensor;
judging whether the mobile terminal is in the held state comprises;acquiring a capacitance value output by the sensor; and comparing the capacitance value with a preset threshold value, and in response to the capacitance value is greater than the preset threshold value, recognizing that the mobile terminal is in the held state; and wherein the sensor comprises a first sensor and a second sensor;
the first sensor and the second sensor are respectively arranged at two opposite long side edges of the mobile terminal or are respectively arranged at positions, adjacent to the two opposite long side edges, on a back of the mobile terminal;
comparing the capacitance value with the preset threshold value comprises;acquiring a first capacitance value output by the first sensor and a second capacitance value output by the second sensor; comparing the first capacitance value and the second capacitance value with a state threshold value to obtain contact states corresponding to the first capacitance value and the second capacitance value respectively; and recognizing the held state of the mobile terminal according to the contact states; and wherein the state threshold value comprises a first state threshold value and a second state threshold value, the contact states comprise a palm contact state and a finger contact state, the first state threshold value is corresponding to the palm contact state, the second state threshold value is corresponding to the finger contact state, and the first state threshold value is greater than the second state threshold value;
the held state comprises a one-handed held state and a two-handed held state; andwherein comparing the first capacitance value and the second capacitance value with the state threshold value to obtain the contact states corresponding to the first capacitance value and the second capacitance value respectively, and recognizing the held state of the mobile terminal according to the contact states comprises; comparing the first capacitance value with the first state threshold value and the second state threshold value respectively, determining that the first capacitance value is corresponding to the palm contact state in response to that the first capacitance value is greater than or equal to the first state threshold value, determining that the first capacitance value is corresponding to the finger contact state in response to that the first capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; comparing the second capacitance value with the first state threshold value and the second state threshold value respectively, determining that the second capacitance value is corresponding to the palm contact state in response to that the second capacitance value is greater than or equal to the first state threshold value, determining that the second capacitance value is corresponding to the finger contact state in response to that the second capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; and determining that the mobile terminal is in the one-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are different, determining that the mobile terminal is in the two-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are the same. - View Dependent Claims (2, 3)
-
-
4. A device configured to control a notification content preview on a mobile terminal, the device comprising a processor and a memory for storing a set of instructions executable by the processor, wherein when the instructions are executed by the processor, the processor is configured to:
-
receive a notification; judge whether the mobile terminal is in a held state; and in response to the mobile terminal is in the held state, extract content of the notification, generate the corresponding notification content preview in terms of a preset format and display the notification content preview on a screen of the mobile terminal; wherein the mobile terminal comprises a sensor;
in judging whether the mobile terminal is in the held state, the processor is further configured to;acquire a capacitance value output by the sensor; and compare the capacitance value with a preset threshold value, and in response to the capacitance value is greater than the preset threshold value, recognize that the mobile terminal is in the held state; and wherein the sensor comprises a first sensor and a second sensor;
the first sensor and the second sensor are respectively arranged at two opposite long side edges of the mobile terminal or are respectively arranged at positions, adjacent to the two opposite long side edges, on a back of the mobile terminal; and
in comparing the capacitance value with the preset threshold value, the processor is further configured to;acquire a first capacitance value output by the first sensor and a second capacitance value output by the second sensor; compare the first capacitance value and the second capacitance value with a state threshold value to obtain contact states corresponding to the first capacitance value and the second capacitance value respectively; and recognize the held state of the mobile terminal according to the contact states; and wherein the state threshold value comprises a first state threshold value and a second state threshold value, the contact states comprise a palm contact state and a finger contact state, the first state threshold value is corresponding to the palm contact state, the second state threshold value is corresponding to the finger contact state, and the first state threshold value is greater than the second state threshold value;
the held state comprises a one-handed held state and a two-handed held state; andwherein in comparing the first capacitance value and the second capacitance value with the state threshold value to obtain the contact states corresponding to the first capacitance value and the second capacitance value respectively, and recognize the held state of the mobile terminal according to the contact states, the processor is further configured to; compare the first capacitance value with the first state threshold value and the second state threshold value respectively, determine that the first capacitance value is corresponding to the palm contact state in response to that the first capacitance value is greater than or equal to the first state threshold value, determine that the first capacitance value is corresponding to the finger contact state in response to that the first capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; compare the second capacitance value with the first state threshold value and the second state threshold value respectively, determine that the second capacitance value is corresponding to the palm contact state in response to that the second capacitance value is greater than or equal to the first state threshold value, determine that the second capacitance value is corresponding to the finger contact state in response to that the second capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; and determine that the mobile terminal is in the one-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are different, determine that the mobile terminal is in the two-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are the same. - View Dependent Claims (5, 6)
-
-
7. A non-transitory storage medium, comprising a set of instructions, wherein when the instructions are executed, at least one processor is caused to execute the following operations:
-
receiving a notification; judging whether the mobile terminal is in a held state; and
in response to the mobile terminal is in the held state, generating a corresponding notification content preview according to the notification, and displaying the notification content preview on a screen of the mobile terminal,wherein the generating a corresponding notification content preview according to the notification comprise; extracting content of the notification, generating the corresponding notification content preview in terms of a preset format; wherein the mobile terminal comprises a sensor;
the judging whether the mobile terminal is in the held state comprises;acquiring a capacitance value output by the sensor; and comparing the capacitance value with a preset threshold value, and in response to the capacitance value is greater than the preset threshold value, recognizing that the mobile terminal is in the held state; and wherein the sensor comprises a first sensor and a second sensor;
the first sensor and the second sensor are respectively arranged at two opposite long side edges of the mobile terminal or are respectively arranged at positions, adjacent to the two opposite long side edges, on a back of the mobile terminal; and
in the step of comparing the capacitance value with the preset threshold value, the method further comprises;acquiring a first capacitance value output by the first sensor and a second capacitance value output by the second sensor; comparing the first capacitance value and the second capacitance value with a state threshold value to obtain contact states corresponding to the first capacitance value and the second capacitance value respectively; and recognizing the held state of the mobile terminal according to the contact states; and wherein the state threshold value comprises a first state threshold value and a second state threshold value, the contact states comprise a palm contact state and a finger contact state, the first state threshold value is corresponding to the palm contact state, the second state threshold value is corresponding to the finger contact state, and the first state threshold value is greater than the second state threshold value;
the held state comprises a one-handed held state and a two-handed held state; andwherein comparing the first capacitance value and the second capacitance value with the state threshold value to obtain the contact states corresponding to the first capacitance value and the second capacitance value respectively, recognizing the held state of the mobile terminal according to the contact states comprises; comparing the first capacitance value with the first state threshold value and the second state threshold value respectively, determining that the first capacitance value is corresponding to the palm contact state in response to that the first capacitance value is greater than or equal to the first state threshold value, determining that the first capacitance value is corresponding to the finger contact state in response to that the first capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; comparing the second capacitance value with the first state threshold value and the second state threshold value respectively, determining that the second capacitance value is corresponding to the palm contact state in response to that the second capacitance value is greater than or equal to the first state threshold value, determining that the second capacitance value is corresponding to the finger contact state in response to that the second capacitance value is smaller than or equal to the second state threshold value and is greater than the preset threshold value; and determining that the mobile terminal is in the one-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are different, determining that the mobile terminal is in the two-handed held state in response to that the contact states respectively corresponding to the first capacitance value and the second capacitance value are the same.
-
Specification