CN107566607A - One kind notice display methods, mobile terminal and computer-readable recording medium - Google Patents
One kind notice display methods, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107566607A CN107566607A CN201710640510.9A CN201710640510A CN107566607A CN 107566607 A CN107566607 A CN 107566607A CN 201710640510 A CN201710640510 A CN 201710640510A CN 107566607 A CN107566607 A CN 107566607A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- display location
- notification message
- target display
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses one kind to notify display methods, and methods described includes:Receive the notification message of background application;Obtain the data of the gravity sensor detection of the mobile terminal;The mobile terminal state in which is determined according to the data that the gravity sensor detects;Target display location is determined according to the mobile terminal state in which;The notification message is included in the target display location.In addition, invention additionally discloses a kind of mobile terminal and computer-readable recording medium.The display location of notification message can be adjusted according to the mobile terminal state in which by such scheme, facilitates user to carry out one-handed performance, it is singlehanded convenient using mobile terminal offer to user.
Description
Technical field
The present invention relates to mobile terminal display technology field, more particularly to a kind of notice display methods, mobile terminal and meter
Calculation machine readable storage medium storing program for executing.
Background technology
With the continuous development of electronic technology, mobile terminal (such as smart mobile phone, tablet personal computer etc.) gives the life of people
And work brings very big convenience.When an application program is in running background, in order to avoid user omit important messages, one
As the message of the application program can be included in user interface in the form of banner, use will not be also interrupted while user is notified
Family.
In the prior art, banner notice is shown in the top of mobile terminal display screen curtain, however, due to mobile whole
The display screen at end is increasing, in the case of one-handed performance, if user, which needs to click on, checks the specific interior of banner notice
When holding, or the option of banner notice being operated, it is difficult to click the banner notice on screen top.
It can be seen that banner notice of the prior art does not utilize one-handed performance, the use to user brings inconvenience.
The content of the invention
In view of this, the present invention proposes a kind of notice display methods, mobile terminal and computer-readable recording medium, with solution
Certainly above-mentioned technical problem.
First, to achieve the above object, the present invention proposes a kind of notice display methods, applied to mobile terminal, the side
Method includes:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, institute
State the non-interface top in default display location.
Alternatively, if the mobile terminal remains static, shown it is determined that default display location is the target
Position, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included to move down the notice on interface top, and according to the reversal rate of the mobile terminal
Message.
Alternatively, the reversal rate according to the mobile terminal moves down the notification message, including:
The notification message is moved down with the speed directly proportional to the reversal rate of the mobile terminal.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory,
At least one processor and be stored on the memory and can at least one program of at least one computing device,
Following steps are realized when at least one program is by least one computing device:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, institute
State the non-interface top in default display location.
Alternatively, if the mobile terminal remains static, shown it is determined that default display location is the target
Position, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included to move down the notice on interface top, and according to the reversal rate of the mobile terminal
Message.
Further, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer
Readable storage medium storing program for executing is stored with the executable at least one program of computer, and at least one program is performed by the computer
When the computer is performed the step in the above method.
Compared to prior art, notice display methods proposed by the invention receives the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;The shifting is determined according to the data that the gravity sensor detects
Dynamic terminal state in which;Target display location is determined according to the mobile terminal state in which;The notification message is shown
Show in the target display location.So, notice display methods provided in an embodiment of the present invention can be according to the mobile terminal
State in which adjusts the display location of notification message, facilitates user to carry out one-handed performance, and mobile terminal is used to user's one hand
It is convenient to provide.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet for notifying display methods provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet for notifying display methods provided in an embodiment of the present invention;
Fig. 5 is a kind of user interface schematic diagram provided in an embodiment of the present invention;
Fig. 6 is another user interface schematic diagram provided in an embodiment of the present invention;
Fig. 7 is another user interface schematic diagram provided in an embodiment of the present invention;
Fig. 8 is another user interface schematic diagram provided in an embodiment of the present invention;
Fig. 9 is the schematic flow sheet of another notice display methods provided in an embodiment of the present invention;
Figure 10 is a kind of high-level schematic functional block diagram of mobile terminal provided in an embodiment of the present invention;
Figure 11 is the high-level schematic functional block diagram of another mobile terminal provided in an embodiment of the present invention;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111, the number of the processor 110 is at least one.Ability
Field technique personnel are appreciated that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, and mobile terminal can
With including than illustrating more or less parts, either combining some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and at least one element that the input received is transferred in mobile terminal 100 or can use
In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing
Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located
Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on the above-mentioned hardware configuration of mobile terminal 100 and communications network system, each embodiment of the inventive method is proposed.
Refering to Fig. 3, Fig. 3 be it is provided in an embodiment of the present invention it is a kind of notify display methods step flow chart, methods described
Applied in a mobile terminal, as shown in figure 3, methods described includes:
Step 301, the notification message for receiving background application.
In the step, methods described receives the notification message of background application, and the background application is any energy
Enough application programs in running background, the notification message can be any notification message of the background application.Citing
For, the background application can be MSN, and the notification message is what the MSN received
Message.
It is understood that due to be background application notification message, the notification message that is previously mentioned of the present invention is
The notification message shown in the form of banner.
Step 302, obtain the data that the gravity sensor of the mobile terminal detects.
In the step, when methods described receives the notification message of background application, methods described obtains the shifting
The data of the gravity sensor detection of dynamic terminal.
Step 303, the data detected according to the gravity sensor determine the mobile terminal state in which.
In the step, shape of the methods described according to residing for the data that the gravity sensor detects determine the mobile terminal
State.In the embodiment of the present invention, methods described can continuously obtain the data of the gravity sensor detection, Ran Hougen at least twice
The mobile terminal state in which is determined according to the continuous data obtained at least twice.Specifically, methods described can be sentenced
Whether the disconnected continuous data obtained at least twice change, if the data at least obtained twice in succession do not occur
Change, methods described determine that the mobile terminal remains static;If the data at least obtained twice in succession become
Change, methods described determines that the mobile terminal is in rollover states.
In some embodiments of the invention, if the data at least obtained twice in succession do not change, the side
After method determines that the mobile terminal remains static, the data that methods described is further got according to judge the shifting
Dynamic terminal is in erectility and is in horizontality.
Step 304, target display location determined according to the mobile terminal state in which.
In the step, methods described determines target display location according to the mobile terminal state in which.It is of the invention real
Apply in example, if the mobile terminal remains static, methods described can determine that default display location is target display location,
The default display location can be with the optional position on right and wrong interface top.For example, the default display location can be institute
Stating user's one-handed performance that mobile terminal production firm determines according to the display size of the display screen of the mobile terminal can touch
Position or user according to oneself use habit position set in advance (such as the display size according to display screen
And the size setting of the hand of user), it can also be interface centre or interface bottom.
Specifically, in some embodiments of the invention, when the mobile terminal is in erectility, methods described can be with
It is the target display location to determine interface bottom, and when the mobile terminal is in horizontality, methods described can determine
It is the target display location among interface.
If the mobile terminal is in rollover states, methods described can first determine that interface top is target display location,
Then control the notification message to followed by the upset of the mobile terminal to move on the interface.
Step 305, by the notification message include in the target display location.
In the step, methods described includes the notification message in the target display location.Specifically, when the shifting
When dynamic terminal remains static, methods described includes the notification message in the default display location on non-interface top, example
Such as when the mobile terminal is in erectility, the notification message is included in interface bottom position, when described mobile whole
When end is in horizontality, the notification message is included in interface centre position.
When the mobile terminal is in rollover states, the notification message is included showing in the target by methods described
Position, and the notification message is moved down according to the reversal rate of the mobile terminal.
In the embodiment, the notice display methods receives the notification message of background application;Obtain described mobile whole
The data of the gravity sensor detection at end;Shape according to residing for the data that the gravity sensor detects determine the mobile terminal
State;Target display location is determined according to the mobile terminal state in which;The notification message is included showing in the target
Show position.So, notice display methods provided in an embodiment of the present invention can adjust according to the mobile terminal state in which
The display location of notification message, user is facilitated to carry out one-handed performance, it is singlehanded convenient using mobile terminal offer to user.
Referring to Fig. 4, Fig. 4 is the schematic flow sheet of another notice display methods provided in an embodiment of the present invention, such as Fig. 4 institutes
Show, methods described includes:
Step 401, the notification message for receiving background application.
In the step, methods described receives the notification message of background application, and the background application is any energy
Enough application programs in running background, the notification message can be any notification message of the background application.Citing
For, the background application can be MSN, and the notification message is what the MSN received
Message.
It is understood that due to be background application notification message, the notification message that is previously mentioned of the present invention is
The notification message shown in the form of banner.
Step 402, obtain the data that the gravity sensor of the mobile terminal detects.
In the step, when methods described receives the notification message of background application, methods described obtains the shifting
The data of the gravity sensor detection of dynamic terminal.
Step 403, the data detected according to the gravity sensor determine the mobile terminal state in which.
In the step, shape of the methods described according to residing for the data that the gravity sensor detects determine the mobile terminal
State.In the embodiment of the present invention, methods described can continuously obtain the data of the gravity sensor detection, Ran Hougen at least twice
The mobile terminal state in which is determined according to the continuous data obtained at least twice.Specifically, methods described can be sentenced
Whether the disconnected continuous data obtained at least twice change, if the data at least obtained twice in succession do not occur
Change, methods described determine that the mobile terminal remains static;If the data at least obtained twice in succession become
Change, methods described determines that the mobile terminal is in rollover states.
In some embodiments of the invention, if the data at least obtained twice in succession do not change, the side
After method determines that the mobile terminal remains static, the data that methods described is further got according to judge the shifting
Dynamic terminal is in erectility and is in horizontality, and the data detected according to gravity sensor judge that mobile terminal is in straight
Vertical state is in horizontality and belongs to prior art category, and here is omitted.
If step 404, the mobile terminal remain static, it is determined that default display location, which is the target, shows position
Put, wherein, the default non-interface top in display location.
In the step, if the mobile terminal remains static, methods described determines that default display location shows for target
Show position, the default display location can be with the optional position on right and wrong interface top.For example, the default display location can
To be user's one-handed performance energy that the mobile terminal production firm determines according to the display size of the display screen of the mobile terminal
The position enough touched or user are according to oneself use habit position set in advance (such as according to the aobvious of display screen
Show the size setting of size and the hand of user), it can also be interface centre or interface bottom.
Specifically, in some embodiments of the invention, when the mobile terminal is in erectility, methods described can be with
It is the target display location to determine interface bottom, and when the mobile terminal is in horizontality, methods described can determine
It is the target display location among interface.
Step 405, by the notification message include in the target display location.
In the step, methods described includes the notification message in the target display location.Specifically, when the shifting
When dynamic terminal remains static, methods described includes the notification message in the default display location on non-interface top, example
Such as optional position as shown in Figures 5 to 7.In some embodiments of the invention, when the mobile terminal is in erectility,
Methods described includes the notification message in interface bottom position as shown in Figure 7, when the mobile terminal is in horizontal
During state, methods described includes the notification message in interface centre position as shown in Figure 6.
It should be noted that in some embodiments of the invention, the notification message includes message content and operation choosing
, when the notification message includes option of operation, methods described includes the option of operation under the message content,
As shown in figure 8, user is facilitated to operate the option of operation.
In the embodiment, the notice display methods receives the notification message of background application;Obtain described mobile whole
The data of the gravity sensor detection at end;Shape according to residing for the data that the gravity sensor detects determine the mobile terminal
State;If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, it is described pre-
If the non-interface top in display location;The notification message is included in the target display location.So, the embodiment of the present invention carries
The notice display methods of confession can adjust the display location of notification message according to the mobile terminal state in which, facilitate user
One-handed performance is carried out, it is singlehanded convenient using mobile terminal offer to user.
Alternatively, if the mobile terminal remains static, shown it is determined that default display location is the target
Position, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
Referring to Fig. 9, Fig. 9 is the schematic flow sheet of another notice display methods provided in an embodiment of the present invention, such as Fig. 9 institutes
Show, methods described includes:
Step 901, the notification message for receiving background application.
In the step, methods described receives the notification message of background application, and the background application is any energy
Enough application programs in running background, the notification message can be any notification message of the background application.Citing
For, the background application can be MSN, and the notification message is what the MSN received
Message.
It is understood that due to be background application notification message, the notification message that is previously mentioned of the present invention is
The notification message shown in the form of banner.
Step 902, obtain the data that the gravity sensor of the mobile terminal detects.
In the step, when methods described receives the notification message of background application, methods described obtains the shifting
The data of the gravity sensor detection of dynamic terminal.
Step 903, the data detected according to the gravity sensor determine the mobile terminal state in which.
In the step, shape of the methods described according to residing for the data that the gravity sensor detects determine the mobile terminal
State.In the embodiment of the present invention, methods described can continuously obtain the data of the gravity sensor detection, Ran Hougen at least twice
The mobile terminal state in which is determined according to the continuous data obtained at least twice.Specifically, methods described can be sentenced
Whether the disconnected continuous data obtained at least twice change, if the data at least obtained twice in succession do not occur
Change, methods described determine that the mobile terminal remains static;If the data at least obtained twice in succession become
Change, methods described determines that the mobile terminal is in rollover states.
If step 904, the mobile terminal are in rollover states, it is target display location to determine interface top.
In the step, if the mobile terminal is in rollover states, methods described can first determine that interface top is target
Display location, then control the notification message to followed by the upset of the mobile terminal and moved on the interface.
Step 905, the notification message included moving down on interface top, and according to the reversal rate of the mobile terminal
The notification message.
In the step, when the mobile terminal is in rollover states, methods described includes the notification message in institute
Target display location is stated, and the notification message is moved down according to the reversal rate of the mobile terminal.Specifically, methods described can
The reversal rate of the mobile terminal is calculated with the data that are detected according to the gravity sensor, then with the mobile terminal
The directly proportional speed of reversal rate move down the notification message.The data detected according to gravity sensor calculate mobile terminal
Reversal rate belongs to prior art category, and here is omitted.
In the embodiment, the notice display methods receives the notification message of background application;Obtain described mobile whole
The data of the gravity sensor detection at end;Shape according to residing for the data that the gravity sensor detects determine the mobile terminal
State;If the mobile terminal is in rollover states, it is target display location to determine interface top;The notification message is included
Interface top, and the notification message is moved down according to the reversal rate of the mobile terminal.So, it is provided in an embodiment of the present invention
Notify display methods to adjust the display location of notification message according to the mobile terminal state in which, facilitate user to carry out
One-handed performance, it is singlehanded convenient using mobile terminal offer to user.
Alternatively, the reversal rate according to the mobile terminal moves down the notification message, including:
The notification message is moved down with the speed directly proportional to the reversal rate of the mobile terminal.
Referring to Figure 10, such as 10 be a kind of high-level schematic functional block diagram of mobile terminal provided in an embodiment of the present invention, such as Figure 10
Shown, the mobile terminal 1000 includes:
Receiving module 1001, for receiving the notification message of background application;
Acquisition module 1002, the data that the gravity sensor for obtaining the mobile terminal detects;
First determining module 1003, residing for the data for being detected according to the gravity sensor determine the mobile terminal
State;
Second determining module 1004, for determining target display location according to the mobile terminal state in which;
Display module 1005, for the notification message to be included in the target display location.
Alternatively, second determining module 1004, is specifically used for:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, institute
State the non-interface top in default display location.
Alternatively, referring to Figure 11, Figure 11 is the functional module signal of another mobile terminal provided in an embodiment of the present invention
Figure, as shown in figure 11, second determining module 1004 includes:
First determining unit 10041, if being in erectility for the mobile terminal, it is the mesh to determine interface bottom
Mark display location;
Second determining unit 10042, if being in horizontality for the mobile terminal, determine that among interface be the mesh
Mark display location.
Alternatively, second determining module 1004, is specifically used for:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
The display module 1005, is specifically used for:
The notification message is included to move down the notice on interface top, and according to the reversal rate of the mobile terminal
Message.
Mobile terminal 1000 can mobile terminal is realized in above-described embodiment each process, to avoid repeating, herein not
Repeat again.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
Completed by the related hardware of at least one programmed instruction, at least one program can be stored in shifting as shown in Figure 1
In the memory 109 of dynamic terminal 100, and it can be performed by the processor 110, at least one program is by the processor
110 realize following steps when performing:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, institute
State the non-interface top in default display location.
Alternatively, if the mobile terminal remains static, shown it is determined that default display location is the target
Position, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included to move down the notice on interface top, and according to the reversal rate of the mobile terminal
Message.
Alternatively, the reversal rate according to the mobile terminal moves down the notification message, including:
The notification message is moved down with the speed directly proportional to the reversal rate of the mobile terminal.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
Completed by the related hardware of at least one programmed instruction, at least one program can be stored in one and computer-readable deposit
In storage media, at least one program upon execution, comprises the following steps:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, institute
State the non-interface top in default display location.
Alternatively, if the mobile terminal remains static, shown it is determined that default display location is the target
Position, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
Alternatively, it is described that target display location is determined according to the mobile terminal state in which, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included to move down the notice on interface top, and according to the reversal rate of the mobile terminal
Message.
Alternatively, the reversal rate according to the mobile terminal moves down the notification message, including:
The notification message is moved down with the speed directly proportional to the reversal rate of the mobile terminal.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. one kind notice display methods, applied to mobile terminal, it is characterised in that methods described includes:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
2. the method as described in claim 1, it is characterised in that described that target is determined according to the mobile terminal state in which
Display location, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, it is described pre-
If the non-interface top in display location.
3. method as claimed in claim 2, it is characterised in that if the mobile terminal remains static, it is determined that in advance
If display location is the target display location, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
4. the method as described in claim 1, it is characterised in that described that target is determined according to the mobile terminal state in which
Display location, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included on interface top, and the notice is moved down according to the reversal rate of the mobile terminal and disappeared
Breath.
5. method as claimed in claim 4, it is characterised in that described in the reversal rate according to the mobile terminal moves down
Notification message, including:
The notification message is moved down with the speed directly proportional to the reversal rate of the mobile terminal.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, at least one processor and is stored in institute
State on memory and can at least one program of at least one computing device, at least one program by it is described extremely
Following steps are realized during a few computing device:
Receive the notification message of background application;
Obtain the data of the gravity sensor detection of the mobile terminal;
The mobile terminal state in which is determined according to the data that the gravity sensor detects;
Target display location is determined according to the mobile terminal state in which;
The notification message is included in the target display location.
7. mobile terminal as claimed in claim 6, it is characterised in that described to be determined according to the mobile terminal state in which
Target display location, including:
If the mobile terminal remains static, it is determined that default display location is the target display location, wherein, it is described pre-
If the non-interface top in display location.
8. mobile terminal as claimed in claim 7, it is characterised in that if the mobile terminal remains static, really
Surely default display location is the target display location, including:
If the mobile terminal is in erectility, it is the target display location to determine interface bottom;
If the mobile terminal is in horizontality, determine that among interface be the target display location.
9. mobile terminal as claimed in claim 6, it is characterised in that described to be determined according to the mobile terminal state in which
Target display location, including:
If the mobile terminal is in rollover states, it is target display location to determine interface top;
It is described to include the notification message in the target display location, including:
The notification message is included on interface top, and the notice is moved down according to the reversal rate of the mobile terminal and disappeared
Breath.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer executable at least
One program, it is characterised in that at least one program makes the computer perform above-mentioned power when being performed by the computer
Profit requires the step in the method described in 1~5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710640510.9A CN107566607B (en) | 2017-07-31 | 2017-07-31 | Notification display method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710640510.9A CN107566607B (en) | 2017-07-31 | 2017-07-31 | Notification display method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107566607A true CN107566607A (en) | 2018-01-09 |
CN107566607B CN107566607B (en) | 2020-11-10 |
Family
ID=60974100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710640510.9A Active CN107566607B (en) | 2017-07-31 | 2017-07-31 | Notification display method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107566607B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108549511A (en) * | 2018-03-30 | 2018-09-18 | 努比亚技术有限公司 | A kind of bracelet interaction regulation and control method, equipment and computer readable storage medium |
CN110958350A (en) * | 2019-11-12 | 2020-04-03 | 维沃移动通信有限公司 | Notification message processing method and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750188A (en) * | 2015-03-26 | 2015-07-01 | 小米科技有限责任公司 | Mobile terminal |
EP2687968A3 (en) * | 2012-07-20 | 2015-09-02 | BlackBerry Limited | A handheld device with ergonomic display features |
CN105117095A (en) * | 2008-08-28 | 2015-12-02 | 高通股份有限公司 | Notifying a user of events in a computing device |
CN105450505A (en) * | 2015-11-03 | 2016-03-30 | 北京金山安全软件有限公司 | Notification message processing method and device and terminal equipment |
CN106227488A (en) * | 2016-07-29 | 2016-12-14 | 维沃移动通信有限公司 | The display packing of a kind of reminder message and mobile terminal |
CN106375555A (en) * | 2016-08-25 | 2017-02-01 | 维沃移动通信有限公司 | Information display method and mobile terminal |
CN106843629A (en) * | 2015-12-07 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of suspended window methods of exhibiting and device |
CN106909376A (en) * | 2017-02-17 | 2017-06-30 | 北京小米移动软件有限公司 | Informing methods of exhibiting and device |
-
2017
- 2017-07-31 CN CN201710640510.9A patent/CN107566607B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117095A (en) * | 2008-08-28 | 2015-12-02 | 高通股份有限公司 | Notifying a user of events in a computing device |
EP2687968A3 (en) * | 2012-07-20 | 2015-09-02 | BlackBerry Limited | A handheld device with ergonomic display features |
CN104750188A (en) * | 2015-03-26 | 2015-07-01 | 小米科技有限责任公司 | Mobile terminal |
CN105450505A (en) * | 2015-11-03 | 2016-03-30 | 北京金山安全软件有限公司 | Notification message processing method and device and terminal equipment |
CN106843629A (en) * | 2015-12-07 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of suspended window methods of exhibiting and device |
CN106227488A (en) * | 2016-07-29 | 2016-12-14 | 维沃移动通信有限公司 | The display packing of a kind of reminder message and mobile terminal |
CN106375555A (en) * | 2016-08-25 | 2017-02-01 | 维沃移动通信有限公司 | Information display method and mobile terminal |
CN106909376A (en) * | 2017-02-17 | 2017-06-30 | 北京小米移动软件有限公司 | Informing methods of exhibiting and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108549511A (en) * | 2018-03-30 | 2018-09-18 | 努比亚技术有限公司 | A kind of bracelet interaction regulation and control method, equipment and computer readable storage medium |
CN110958350A (en) * | 2019-11-12 | 2020-04-03 | 维沃移动通信有限公司 | Notification message processing method and electronic equipment |
WO2021093772A1 (en) * | 2019-11-12 | 2021-05-20 | 维沃移动通信有限公司 | Notification message processing method and electronic device |
CN110958350B (en) * | 2019-11-12 | 2022-02-11 | 维沃移动通信有限公司 | Notification message processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107566607B (en) | 2020-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052302A (en) | Association display methods, terminal and the computer readable storage medium of double-sided screen | |
CN107133092A (en) | Multi-thread synchronization processing method, terminal and computer-readable recording medium | |
CN107219974A (en) | A kind of method, mobile terminal and storage medium for showing application software | |
CN107517494A (en) | A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium | |
CN107463481A (en) | Data interactive method, mobile terminal and storage medium | |
CN107566635A (en) | Screen intensity method to set up, mobile terminal and computer-readable recording medium | |
CN107329682A (en) | Edge exchange method and mobile terminal | |
CN107682627A (en) | A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium | |
CN107844763A (en) | A kind of face identification method, mobile terminal and computer-readable recording medium | |
CN107809536A (en) | Display screen fingerprint recognition processing method, mobile terminal and storage medium | |
CN107181700A (en) | Control method, mobile terminal and the storage medium of application program for mobile terminal | |
CN107844231A (en) | A kind of interface display method, mobile terminal and computer-readable recording medium | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN107844230A (en) | A kind of advertisement page method of adjustment, mobile terminal and computer-readable recording medium | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107566605A (en) | A kind of interactive interface processing method, equipment and computer-readable recording medium | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107229410A (en) | Interactive operation method, mobile terminal and computer-readable recording medium | |
CN107613206A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107423065A (en) | Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else | |
CN107506468A (en) | Application program searching method, terminal, server, computer-readable recording medium | |
CN107613130A (en) | A kind of application management method, mobile terminal and computer-readable recording medium | |
CN107239218A (en) | Control method, mobile terminal and the computer-readable recording medium of mobile terminal | |
CN107222525A (en) | Data network connection status display methods, terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |