CN109462696B - Information prompting method, mobile terminal and computer readable storage medium - Google Patents

Information prompting method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109462696B
CN109462696B CN201811381239.2A CN201811381239A CN109462696B CN 109462696 B CN109462696 B CN 109462696B CN 201811381239 A CN201811381239 A CN 201811381239A CN 109462696 B CN109462696 B CN 109462696B
Authority
CN
China
Prior art keywords
view
information
window
prompted
mobile terminal
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.)
Active
Application number
CN201811381239.2A
Other languages
Chinese (zh)
Other versions
CN109462696A (en
Inventor
王照金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811381239.2A priority Critical patent/CN109462696B/en
Publication of CN109462696A publication Critical patent/CN109462696A/en
Application granted granted Critical
Publication of CN109462696B publication Critical patent/CN109462696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The application provides an information prompting method, which is applied to a mobile terminal and comprises the following steps: responding to the view self-defining instruction, and setting type parameters of a self-defining view corresponding to the information to be prompted; responding to the information prompt instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted; loading a corresponding custom view according to the type parameter; and displaying the information to be prompted through a window of a user-defined view on a display interface of the mobile terminal. The application also provides a mobile terminal and a computer readable storage medium. By the information prompting method, the mobile terminal and the computer readable storage medium, a user can customize the information prompting mode, and the view for displaying the message can be effectively prevented from being interrupted by other applications, prompts and other contents by defining the display level, the display duration and the relation between the foreground window and the focus window of the view for prompting the information.

Description

Information prompting method, mobile terminal and computer readable storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an information prompting method, a mobile terminal, and a computer-readable storage medium.
Background
When the mobile terminal responds to the operation such as the prompt of the application program or the system, the corresponding display mode or the prompt mode is determined according to the type of the prompt of the application program or the system by establishing the activity item (activity). At present, when a mobile terminal performs message prompting, a common message prompting method is to perform prompting by using a 'Toast'. However, the display duration of the Toast message prompt box is limited, and only 7s can be displayed at the longest, and in some application scenarios requiring the prompt message to be displayed for a long time, a timing task is usually established to perform cyclic splicing display to achieve the expected effect. Although the purpose of displaying the Toast prompt message in a splicing manner by adopting the timed task can be achieved for a long time, in some application scenarios, for example, when a status bar is pulled down or a low-power prompt box is popped up, the window focus of the Toast message prompt box is lost, and when the system framework detects that the window focus of the Toast type is lost, the window of the Toast type is removed, so that the Toast prompt message is interrupted.
The interruption can cause poor user experience of products in a common application interface, but can cause misunderstanding of workers if the interruption occurs in factory testing, the misunderstanding is that the testing fails, and in a severe case, the interruption can cause line stopping and seriously affects the production efficiency.
Disclosure of Invention
The present application mainly aims to provide an information prompting method, a mobile terminal, and a computer-readable storage medium, and aims to solve the problem that a system framework interrupts a prompt view window of a specific message when other types of operations or message prompts are detected because an existing mobile terminal cannot customize the prompt view window of the specific message.
In order to achieve the above object, the present application provides an information prompting method, which is applied to a mobile terminal, and the method includes: responding to the view self-defining instruction, and setting type parameters of a self-defining view corresponding to the information to be prompted; responding to an information prompt instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted; loading the corresponding custom view according to the type parameter; and displaying the information to be prompted on a display interface of the mobile terminal through the window of the user-defined view.
Optionally, the step of responding to the view customization instruction includes: providing a view custom interface in advance, wherein the view custom interface at least comprises the following parameter types: defining the corresponding relation between the view and the information to be prompted; receiving a setting operation acting on the view self-defining interface; and setting type parameters in the view self-defining interface according to the setting operation.
Optionally, the step of responding to the information prompt instruction includes: detecting touch operation acting on a display interface; determining a corresponding operation object according to the touch operation; and determining information to be displayed according to the operation object.
Optionally, the step of responding to the information prompt instruction includes: receiving an information prompt request of the process of the mobile terminal; and determining the information to be displayed according to the information prompt request.
Optionally, the step of determining the type parameter of the corresponding custom view according to the information to be prompted includes: determining the user-defined view through the corresponding relation according to the information to be prompted; and determining corresponding type parameters according to the custom view.
Optionally, before the step of loading the corresponding custom view according to the type parameter, the method further includes: and judging whether the custom view corresponding to the information to be prompted is established.
Optionally, the method comprises: when the user-defined view corresponding to the information to be prompted is established, the step of displaying the information to be prompted on a display interface of the mobile terminal through a window of the user-defined view is as follows: updating the content displayed in the window of the user-defined view according to the information to be prompted; and when the user-defined view corresponding to the information to be prompted is not established, loading the corresponding user-defined view according to the type parameter.
Optionally, the parameter types further include a window type parameter of a view, a layout parameter of a window, and a display mechanism parameter of a window, and the step of loading the corresponding custom view according to the type parameter includes: establishing the view window according to the window type parameter of the view; setting the layout of the view window according to the layout parameters of the window; and controlling the display of the self-defined view according to the display mechanism parameters of the window.
The present application further provides a mobile terminal, the mobile terminal including: a touch screen; a processor; and the memory is connected with the processor and comprises a control instruction, and when the processor reads the control instruction, the memory controls the mobile terminal to realize any one of the information prompting methods.
The present application also provides a computer-readable storage medium having one or more programs which are executed by one or more processors to implement any of the above-mentioned information presentation methods.
According to the information prompting method, the mobile terminal and the computer readable storage medium, the user-defined views used for displaying different information are predefined, when the mobile terminal detects that a user triggers or determines that information prompting is needed according to automatic detection of a system, the user-defined view corresponding to the information to be prompted is determined, the user-defined view is obtained, the corresponding user-defined view is loaded according to the type parameter, the information to be prompted is displayed through the user-defined view, the user can customize the information prompting mode through the mode, and the view used for displaying the information can be effectively prevented from being interrupted by other applications, prompting and other contents through defining the display level, the display time length and the relation between the foreground window and the focus window of the view used for prompting the information.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of an information prompting method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a flowchart of an embodiment of an information prompting method provided in the present application. Once the method of this embodiment is triggered by a user, the process in this embodiment automatically runs through a terminal, where each step may be performed sequentially according to the sequence in the flowchart, or may be performed simultaneously according to a plurality of steps in an actual situation, which is not limited herein. The information prompting method provided by the application comprises the following steps:
step S310, responding to a view self-defining instruction, and setting type parameters of a self-defining view corresponding to the information to be prompted;
step S320, responding to an information prompting instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted;
step S330, loading the corresponding custom view according to the type parameter;
and step S340, displaying the information to be prompted on a display interface of the mobile terminal through the window of the user-defined view.
Through the embodiment, the interface for customizing the view for information prompt by the user is provided, the user can customize the prompt modes of different messages through the customized interface, after the user customizes the prompt modes in advance, when the system of the mobile terminal detects that message prompt is needed, the type parameter of the customized view for displaying the messages is obtained, the corresponding view window is loaded by reading the type parameter, and then the content of the messages to be prompted is written into the view window and displayed, through the mode, the message prompt mode can be customized, and the interruption of some important messages by other prompts newly inserted into the display queue is avoided.
The above steps will be specifically described with reference to specific examples.
In step S310, in response to the view customization instruction, the type parameter of the customized view corresponding to the information to be prompted is set. The view self-defining instruction is an instruction for triggering setting of parameters of a self-defining view, in the embodiment, a corresponding view self-defining instruction is applied by inputting a corresponding operation to the setting interface, and in other embodiments, the view self-defining instruction can be triggered by inputting a preset touch gesture. In this embodiment, the response view customization instruction may be implemented by the following steps:
step S3101, providing a view customization interface in advance, wherein the view customization interface at least includes the following parameter types: defining the corresponding relation between the view and the information to be prompted;
step S3102, receiving a setting operation acting on the view customization interface;
step S3103, setting a type parameter in the view customization interface according to the setting operation.
Through the implementation mode, the user-defined interface of the type parameters of the view is provided in a visual setting interface mode, and the user can conveniently define the view window.
Specifically, in step S3101, in this embodiment, the view customization interface may be a window that is overlaid on the display interface of the mobile terminal, and the window has the settable parameters listed therein. In other embodiments, the parameters that can be set can be listed in a pop-up manner on the current display interface. Further, in this embodiment, the operation of triggering the display view customization interface may be performed in the following manner:
a, setting a system-level view self-defined interface to activate a touch gesture, wherein the touch gesture can be long-time pressing, heavy pressing, double clicking and the like without specific limitation;
b, responding to the activation touch gesture, acquiring a window object corresponding to the activation touch gesture, for example, when the activation touch gesture is detected, determining a current foreground window; or when the activation touch gesture is detected, acquiring a touch point of the activation touch gesture, and determining a window range in which the touch point falls;
and C, generating a corresponding view self-defining interface according to the window object, wherein the view self-defining interface comprises settable parameters corresponding to the window object.
Through the embodiment, the user can be enabled to quickly set the type parameter of the window currently being displayed.
In other embodiments, the operation of triggering the display of the view customization interface may be performed by setting a corresponding entry on the system setting interface, and when the corresponding entry of the trigger setting interface is detected, entering the corresponding view customization interface.
When determining the corresponding relationship between the custom view and the information to be prompted, the user-defined view may be associated with the custom view according to the source of the information to be prompted, may also be associated with the custom view according to the content of the information to be prompted, and may also be associated with the custom view according to other attributes of the information to be prompted.
In step S3102, a setting operation applied to the view customization interface is received, for example, by clicking a parameter item in the customization interface, a corresponding parameter value is input, where the parameter value may be selected as a pre-option or manually input as a specific value.
In step S320, in response to the information prompting instruction, determining the type parameter of the corresponding custom view according to the information to be prompted. The information prompting instruction may be an information prompting instruction triggered according to a touch operation input by a user, or may be a new prompting instruction triggered when the system detects that a preset condition is met, for example, when the system detects that the electric quantity is insufficient, the displayed electric quantity is insufficient.
In the present embodiment, the response information presentation instruction may be performed by:
step S3201 of detecting a touch operation applied to the display interface;
step S3202, determining a corresponding operation object according to the touch operation;
step S3203, determining information to be displayed according to the operation object.
Specifically, in step S3201, a touch operation input by the user may be detected through the currently running application, for example, a touch operation input by the user to view a photo sent by a friend is detected through a chat program, or a touch operation input by the user and a touch operation input by a drop-down notification bar input by the user are detected through an operation interface built in the mobile terminal.
In step S3202, when the touch operation is detected, the touch position of the touch operation is determined, and a corresponding operation object is determined by determining the touch position, where the operation object may be a specific application program, a local control of the application program, or another object that can be used to respond to the touch operation.
In step S3203, determining whether to-be-displayed information is determined according to the parameter of the judgment operation object, and when the parameter of the operation object meets a preset condition, determining corresponding to-be-displayed information, for example, when information for display exists in a control instruction corresponding to the operation object, determining that the information is to-be-displayed information, for example, checking a photo sent by a friend, and then the photo is to-be-displayed information; and when the parameter of the operation object does not meet the preset condition, determining that the information to be displayed does not exist, for example, when the operation object is a 'determination' control or a 'next' control, determining that the information to be displayed does not exist, and directly responding to the operation corresponding to the control.
In other embodiments, responding to the information prompt instruction may be performed by:
step S3204 of receiving an information prompt request of a process of the mobile terminal;
step S3205, determining information to be displayed according to the information prompt request.
Specifically, in step S3204, request data or current state parameters of the mobile terminal are monitored in real time through a background process of the application program or a background process of the system framework, and when a preset condition is met, an information prompt request is triggered, for example, when a chat program detects information pushed by a server, an information prompt request is triggered; or when the system judges that the current electric quantity is lower than the preset threshold value, triggering an information prompt request for prompting that the electric quantity is insufficient.
Through the embodiment, whether the information to be displayed exists can be detected in real time according to the operation of a user and an application program or a system, so that the corresponding custom view can be determined according to the information to be displayed.
Further, the step of determining the type parameter of the corresponding custom view according to the information to be prompted may be implemented by the following steps:
step S3205, determining the self-defined view according to the information to be prompted and the corresponding relation;
step S3206, determining a corresponding type parameter according to the custom view.
Specifically, in step S3205, after the information to be prompted is determined, it is determined whether the information to be prompted has a corresponding custom view, and in this embodiment, whether the information to be prompted has a corresponding custom view may be determined by querying a corresponding relationship between the information to be prompted and the custom view. In a specific implementation process, attributes are determined by obtaining sources, information contents and the like of information to be prompted, and further, the custom views corresponding to the attributes are determined in the corresponding relationship.
In step S3206, after the corresponding custom view is determined according to the information to be prompted, the type parameter corresponding to the custom view is obtained.
In step S330, the corresponding custom view is loaded according to the type parameter. Wherein the type parameters include, but are not limited to, a window type parameter of the view, a layout parameter of the window, and a display mechanism parameter of the window. In the present embodiment, the window TYPE of the view is a TYPE _ SYSTEM _ ALERT TYPE, and the level of the view is higher than the levels of the application interface and the dialog prompt box, and is also higher than the level of the status bar, so that when the information to be prompted is displayed through the TYPE _ SYSTEM _ ALERT TYPE view window, the information to be prompted is not covered by the popped up other TYPEs of interfaces and is displayed on the interfaces. Layout parameters of the window. The layout of the window refers to an information arrangement mode in the view window, the window supports a user-defined layout by providing layout setting of the window, and a user can arrange own display style in a user-defined mode according to own customized requirements. The display mechanism parameter of the window is a parameter for controlling a display mode of the window.
Specifically, the step of loading the corresponding custom view according to the type parameter may include the following steps:
step S3301, establishing the view window according to the window type parameter of the view;
step S3302, setting the layout of the view window according to the layout parameters of the window;
and S3303, controlling the display of the user-defined view according to the display mechanism parameters of the window.
In specific implementation, regarding step 3303, in this embodiment, the display mechanism of the window is a custom view attached to the corresponding application interface, and there is no direct association with the focus. In this way, since the user-defined view, its display and non-display are determined by the user himself, the system will not delete this view automatically, so even if the top view loses focus, it is still displayed on the display interface, which is different from the existing scheme that when the focus window loses focus, there is a new focus view for overlay display. When detecting that the application interface attached to the user-defined view does not exist in the current display interface, calling removeView of WindowManger to delete the view, and avoiding the prompt message of the previous application interface from being displayed on the interfaces of other applications. That is to say, the user-defined view provided by the application is a user-defined view which disappears after a period of time, and the user can input the display duration of the prompt box to perform customized display so as to adapt to the special requirements of some special interfaces, such as a photographing interface and a video recording interface of a camera, and is not suitable for displaying the prompt message for a long time. However, it should be noted that if the photographing interface or the video recording interface of the camera is not displayed in a full screen, that is, the camera interface and the application interface attached to the custom view can be simultaneously displayed through the current display interface, the custom view still exists.
Through the implementation mode, the user-defined view is not covered or interrupted by the information prompt interface of other applications or systems, and meanwhile, the display time of the user-defined view is adjusted according to different application scenes.
In step S340, the information to be prompted is displayed on the display interface of the mobile terminal through the window of the custom view. During specific implementation, the content of the message to be prompted is written into the function interface by calling a system API setText (), and then the window of the custom view is displayed in the display interface by calling addView of Windows manager. If the display is finished, calling removeView of WindowManger can cause it to cancel the display.
Further, before the step of loading the corresponding custom view according to the type parameter, the method further includes: judging whether a custom view corresponding to the information to be prompted is established; if the user-defined view corresponding to the information to be prompted is established, the step of displaying the information to be prompted on a display interface of the mobile terminal through a window of the user-defined view is as follows: updating the content displayed in the window of the user-defined view according to the information to be prompted;
and when the custom view corresponding to the information to be prompted is not established, loading the corresponding custom view according to the TYPE parameter, for example, defining the display size and the display position of the view and the display hierarchy of a window as a TYPE _ SYSTEM _ ALERT TYPE, and further loading user-defined layout, including display style, color, font size, interface layout and the like.
Through the implementation mode, a user can customize the information prompting mode, and the view for displaying the message can be effectively prevented from being interrupted by other applications, prompts and other contents by defining the display hierarchy, the display duration and the relation between the foreground window and the focus window of the view for prompting the information.
Fig. 4 is a schematic structural component diagram of the mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains a control instruction, and when the processor 110 reads the control instruction, the mobile terminal 100 is controlled to implement the following steps: responding to the view self-defining instruction, and setting type parameters of a self-defining view corresponding to the information to be prompted; responding to an information prompt instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted; loading the corresponding custom view according to the type parameter; and displaying the information to be prompted on a display interface of the mobile terminal through the window of the user-defined view.
Optionally, the step of responding to the view customization instruction includes: providing a view custom interface in advance, wherein the view custom interface at least comprises the following parameter types: defining the corresponding relation between the view and the information to be prompted; receiving a setting operation acting on the view self-defining interface; and setting type parameters in the view self-defining interface according to the setting operation.
Optionally, the step of responding to the information prompt instruction includes: detecting touch operation acting on a display interface; determining a corresponding operation object according to the touch operation; and determining information to be displayed according to the operation object.
Optionally, the step of responding to the information prompt instruction includes: receiving an information prompt request of the process of the mobile terminal; and determining the information to be displayed according to the information prompt request.
Optionally, the step of determining the type parameter of the corresponding custom view according to the information to be prompted includes: determining the user-defined view through the corresponding relation according to the information to be prompted; and determining corresponding type parameters according to the custom view.
Optionally, before the step of loading the corresponding custom view according to the type parameter, the method further includes: and judging whether the custom view corresponding to the information to be prompted is established.
Optionally, the method comprises: when the user-defined view corresponding to the information to be prompted is established, the step of displaying the information to be prompted on a display interface of the mobile terminal through a window of the user-defined view is as follows: updating the content displayed in the window of the user-defined view according to the information to be prompted; and when the user-defined view corresponding to the information to be prompted is not established, loading the corresponding user-defined view according to the type parameter.
Optionally, the parameter types further include a window type parameter of a view, a layout parameter of a window, and a display mechanism parameter of a window, and the step of loading the corresponding custom view according to the type parameter includes: establishing the view window according to the window type parameter of the view; setting the layout of the view window according to the layout parameters of the window; and controlling the display of the self-defined view according to the display mechanism parameters of the window.
Through the mobile terminal, a user can customize an information prompting mode, and the view for displaying the message can be effectively prevented from being interrupted by other applications, prompts and other contents by defining the display hierarchy, the display duration and the relation between the foreground window and the focus window of the view for prompting the information.
Embodiments of the present application also provide a computer-readable storage medium having one or more programs, where the one or more programs are executed by one or more processors to implement the following steps: responding to the view self-defining instruction, and setting type parameters of a self-defining view corresponding to the information to be prompted; responding to an information prompt instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted; loading the corresponding custom view according to the type parameter; and displaying the information to be prompted on a display interface of the mobile terminal through the window of the user-defined view.
Optionally, the step of responding to the view customization instruction includes: providing a view custom interface in advance, wherein the view custom interface at least comprises the following parameter types: defining the corresponding relation between the view and the information to be prompted; receiving a setting operation acting on the view self-defining interface; and setting type parameters in the view self-defining interface according to the setting operation.
Optionally, the step of responding to the information prompt instruction includes: detecting touch operation acting on a display interface; determining a corresponding operation object according to the touch operation; and determining information to be displayed according to the operation object.
Optionally, the step of responding to the information prompt instruction includes: receiving an information prompt request of the process of the mobile terminal; and determining the information to be displayed according to the information prompt request.
Optionally, the step of determining the type parameter of the corresponding custom view according to the information to be prompted includes: determining the user-defined view through the corresponding relation according to the information to be prompted; and determining corresponding type parameters according to the custom view.
Optionally, before the step of loading the corresponding custom view according to the type parameter, the method further includes: and judging whether the custom view corresponding to the information to be prompted is established.
Optionally, the method comprises: when the user-defined view corresponding to the information to be prompted is established, the step of displaying the information to be prompted on a display interface of the mobile terminal through a window of the user-defined view is as follows: updating the content displayed in the window of the user-defined view according to the information to be prompted; and when the user-defined view corresponding to the information to be prompted is not established, loading the corresponding user-defined view according to the type parameter.
Optionally, the parameter types further include a window type parameter of a view, a layout parameter of a window, and a display mechanism parameter of a window, and the step of loading the corresponding custom view according to the type parameter includes: establishing the view window according to the window type parameter of the view; setting the layout of the view window according to the layout parameters of the window; and controlling the display of the self-defined view according to the display mechanism parameters of the window.
Through the computer readable storage medium, a user can customize a message prompting mode, and the view for displaying messages can be effectively prevented from being interrupted by other applications, prompts and other contents by defining the display hierarchy, the display duration and the relation between the foreground window and the focus window of the view for prompting messages.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium herein stores one or more programs. Among other things, computer-readable storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The corresponding technical features in the above embodiments may be used with each other without causing contradiction in the schemes or without being implementable.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. An information prompting method is applied to a mobile terminal, and is characterized by comprising the following steps:
the method comprises the following steps of triggering a display view custom interface, wherein the triggering display view custom interface can be in at least one of the following modes: setting a system-level view self-defining interface to activate a touch gesture; responding to the activation touch gesture, acquiring a window object corresponding to the activation touch gesture, and generating a corresponding view self-defined interface according to the window object;
responding to the view self-defining instruction, and setting the type parameter of the self-defining view corresponding to the information to be prompted, wherein the step of responding to the view self-defining instruction and setting the type parameter of the self-defining view corresponding to the information to be prompted comprises the following steps: receiving a setting operation acted on the view self-defining interface, and setting type parameters in the view self-defining interface according to the setting operation, wherein the view self-defining interface is in at least one of the following forms: the method comprises the following steps that a window of a display interface of the mobile terminal is fully paved, and settable parameters are listed in the window; listing the parameters which can be set in a pop-up window mode on the current display interface; the view custom interface at least comprises the following parameter types: defining the corresponding relation between the view and the information to be prompted;
responding to an information prompt instruction, and determining the type parameter of the corresponding self-defined view according to the information to be prompted;
loading the corresponding custom view according to the type parameter;
displaying the information to be prompted on a display interface of the mobile terminal through the window of the user-defined view;
the step of loading the corresponding custom view according to the type parameter comprises the following steps:
establishing the view window according to the window TYPE parameter of the view, wherein the window TYPE is a TYPE _ SYSTEM _ ALERT TYPE, and when the information to be prompted is displayed through the TYPE _ SYSTEM _ ALERT TYPE view window, the information to be prompted cannot be covered by other popped interfaces;
setting the layout of the view window according to the layout parameters of the window;
and controlling the display of the custom view according to the display mechanism parameters of the window, wherein the display mechanism of the window is that the custom view is attached to a corresponding application interface and is not directly associated with a focus, and when detecting that the application interface to which the custom view is attached does not exist in the current display interface, calling removeView of WindowManger to delete the view, so as to avoid the prompt message of the previous application interface from being displayed to other application interfaces.
2. The method of claim 1, wherein the step of responding to the information prompt instruction comprises:
detecting touch operation acting on a display interface;
determining a corresponding operation object according to the touch operation;
and determining information to be displayed according to the operation object.
3. The method of claim 1, wherein the step of responding to the information prompt instruction comprises:
receiving an information prompt request of the process of the mobile terminal;
and determining the information to be displayed according to the information prompt request.
4. The method of claim 1, wherein the step of determining the type parameter of the corresponding custom view according to the information to be prompted comprises:
determining the user-defined view through the corresponding relation according to the information to be prompted;
and determining corresponding type parameters according to the custom view.
5. A method as recited in claim 1, wherein said step of loading a corresponding said custom view according to said type parameter is preceded by the step of:
and judging whether the custom view corresponding to the information to be prompted is established.
6. The method of claim 5, wherein the method comprises:
when the user-defined view corresponding to the information to be prompted is established, the step of displaying the information to be prompted on a display interface of the mobile terminal through a window of the user-defined view is as follows: updating the content displayed in the window of the user-defined view according to the information to be prompted;
and when the user-defined view corresponding to the information to be prompted is not established, loading the corresponding user-defined view according to the type parameter.
7. A mobile terminal, characterized in that the mobile terminal comprises:
a touch screen;
a processor;
the memory is connected with the processor and contains a control instruction, and when the processor reads the control instruction, the mobile terminal is controlled to realize the information prompting method of any one of claims 1 to 6.
8. A computer-readable storage medium having one or more programs thereon for execution by one or more processors to perform the information presentation method of any one of claims 1 to 6.
CN201811381239.2A 2018-11-20 2018-11-20 Information prompting method, mobile terminal and computer readable storage medium Active CN109462696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811381239.2A CN109462696B (en) 2018-11-20 2018-11-20 Information prompting method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811381239.2A CN109462696B (en) 2018-11-20 2018-11-20 Information prompting method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109462696A CN109462696A (en) 2019-03-12
CN109462696B true CN109462696B (en) 2022-01-14

Family

ID=65611033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811381239.2A Active CN109462696B (en) 2018-11-20 2018-11-20 Information prompting method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109462696B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110280018A (en) * 2019-06-21 2019-09-27 努比亚技术有限公司 Interface processing method, terminal and computer readable storage medium
CN110489250A (en) * 2019-08-26 2019-11-22 携程计算机技术(上海)有限公司 The execution operating method and system of configurableization based on event
CN110955482B (en) * 2019-11-27 2023-12-05 维沃移动通信有限公司 Popup window display method and device, electronic equipment and medium
CN111897523B (en) * 2020-06-29 2024-03-15 北京金茂绿建科技有限公司 Information display method and device
CN114721754A (en) * 2021-01-05 2022-07-08 武汉斗鱼网络科技有限公司 Method, device, equipment and storage medium for realizing information prompt view

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640114A (en) * 2009-12-04 2012-08-15 阿尔卡特朗讯公司 Method for directly manipulating incoming interactions in an instant communication client application
CN103955325A (en) * 2014-03-31 2014-07-30 可牛网络技术(北京)有限公司 Message view setting method and device
CN105045461A (en) * 2014-04-17 2015-11-11 黑莓有限公司 System and method for enabling customized notifications on an electronic device
CN105677313A (en) * 2015-11-06 2016-06-15 乐视移动智能信息技术(北京)有限公司 Display method, device and terminal equipment for notification messages
CN106648303A (en) * 2016-10-20 2017-05-10 武汉斗鱼网络科技有限公司 Android application display message prompt method and tool
WO2018027679A1 (en) * 2016-08-10 2018-02-15 华为技术有限公司 Notification message management method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694233B1 (en) * 2004-04-30 2010-04-06 Apple Inc. User interface presentation of information in reconfigured or overlapping containers
CN101610605A (en) * 2009-07-23 2009-12-23 中兴通讯股份有限公司南京分公司 A kind of method and system of avoiding focus loss for multi-task user interface interaction
US8418079B2 (en) * 2009-09-01 2013-04-09 James J. Nicholas, III System and method for cursor-based application management
CN105242834A (en) * 2015-11-17 2016-01-13 中科创达软件股份有限公司 Information reminding method and information reminding device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640114A (en) * 2009-12-04 2012-08-15 阿尔卡特朗讯公司 Method for directly manipulating incoming interactions in an instant communication client application
CN103955325A (en) * 2014-03-31 2014-07-30 可牛网络技术(北京)有限公司 Message view setting method and device
CN105045461A (en) * 2014-04-17 2015-11-11 黑莓有限公司 System and method for enabling customized notifications on an electronic device
CN105677313A (en) * 2015-11-06 2016-06-15 乐视移动智能信息技术(北京)有限公司 Display method, device and terminal equipment for notification messages
WO2018027679A1 (en) * 2016-08-10 2018-02-15 华为技术有限公司 Notification message management method and terminal
CN106648303A (en) * 2016-10-20 2017-05-10 武汉斗鱼网络科技有限公司 Android application display message prompt method and tool

Also Published As

Publication number Publication date
CN109462696A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN109462696B (en) Information prompting method, mobile terminal and computer readable storage medium
CN109151169B (en) Camera authority management method, mobile terminal and computer readable storage medium
CN109068167B (en) Screen recording interaction method, mobile terminal, wearable device and storage medium
CN112667340A (en) Screen refresh control method, mobile terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN108553896B (en) State information display control method, terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN113032065B (en) Screen refresh control method, mobile terminal and computer readable storage medium
CN110198379B (en) Mobile terminal control method, mobile terminal, and computer-readable storage medium
CN109683766B (en) Interactive interface control method, mobile terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN107861663B (en) Method and device for displaying dockbar under comprehensive screen
CN112631535A (en) Screen projection reverse control method and device, mobile terminal and storage medium
CN108322602B (en) Method, terminal and computer readable storage medium for processing application no response
CN112637410A (en) Method, terminal and storage medium for displaying message notification
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN109660666B (en) Data card switching method, mobile terminal and computer readable storage medium
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN112604281A (en) Game visual field control method, mobile terminal and computer readable storage medium
CN109561217B (en) Terminal incoming call answering method and device, mobile terminal and storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN115914719A (en) Screen projection display method, intelligent terminal and storage medium
CN112105013B (en) Method for managing device network mode, mobile terminal and computer readable storage medium
CN110069161B (en) Screen recognition method, mobile terminal and computer-readable storage 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