×

Method and device for controlling notification content preview on mobile terminal, and storage medium

  • US 10,404,845 B2
  • Filed: 01/19/2016
  • Issued: 09/03/2019
  • Est. Priority Date: 05/14/2015
  • Status: Active Grant
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×