CN112073576A - Instant message processing method and related equipment - Google Patents

Instant message processing method and related equipment Download PDF

Info

Publication number
CN112073576A
CN112073576A CN202010757349.5A CN202010757349A CN112073576A CN 112073576 A CN112073576 A CN 112073576A CN 202010757349 A CN202010757349 A CN 202010757349A CN 112073576 A CN112073576 A CN 112073576A
Authority
CN
China
Prior art keywords
application program
instant message
terminal
interface
current application
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.)
Pending
Application number
CN202010757349.5A
Other languages
Chinese (zh)
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.)
Shenzhen Xiuyuan Cultural Creative Co Ltd
Original Assignee
Shenzhen Xiuyuan Cultural Creative 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 Shenzhen Xiuyuan Cultural Creative Co Ltd filed Critical Shenzhen Xiuyuan Cultural Creative Co Ltd
Priority to CN202010757349.5A priority Critical patent/CN112073576A/en
Publication of CN112073576A publication Critical patent/CN112073576A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The application discloses an instant message processing method, which is used for a terminal to process an instant message without manually switching to an interface of a current application program by a user. When the method is applied to the terminal and an interface of an application program is displayed, the terminal receives the instant message; the terminal judges whether the interface of the current application program is the interface of a set fixed application program, if so, the instant message is displayed on the interface of the current application program, and the fixed application program is the application program with a preset fixed label; the terminal receives a request for processing the instant message on the current interface; and the terminal processes the instant message on the interface of the current application program according to the request.

Description

Instant message processing method and related equipment
Technical Field
The present application relates to the field of data processing, and in particular, to an instant message processing method and related device.
Background
Nowadays, each household generally uses a mobile phone, and as the functions of the mobile phone are more and more, the mobile phone can simultaneously run a plurality of applications in the background when a certain application is used, for example, when the mobile phone is used to watch videos, the background of the mobile phone can simultaneously run other applications such as WeChat, short messages, and novel.
However, in the prior art, when a mobile phone is used to watch a video, when an instant message, such as a WeChat message, a short message, or the like, is received, a mobile phone interface is displayed in a small window manner, but when the popup message is clicked, the mobile phone interface jumps into an application interface of a corresponding application program, and after the instant message is processed, the mobile phone interface needs to be manually switched to return to the previous application interface for watching the video.
Disclosure of Invention
The embodiment of the application provides an instant message processing method, which is used for enabling a terminal to process an instant message without manually switching to an interface of a current application program by a user.
A first aspect of the embodiments of the present application provides an instant message processing method, which, when applied to a terminal displaying an interface of an application program, includes:
the terminal receives the instant message;
the terminal judges whether the interface of the current application program is the interface of a set fixed application program, if so, the instant message is displayed on the interface of the current application program, and the fixed application program is the application program with a preset fixed label;
the terminal receives a request for processing the instant message on the current interface;
and the terminal processes the instant message in the current application program interface according to the request.
Optionally, after receiving the instant message and before displaying the instant message on the interface of the current application program, the method further includes:
the terminal judges the type of the instant message;
the displaying the instant message on the interface of the current application program comprises:
when the instant message is an incoming call message, the terminal displays the incoming call message on a first popup window on the instant message in the interface of the current application program;
and when the instant message is a character type message, displaying message content in a second popup window on the instant message in the interface of the current application program.
Optionally, when the instant message is an incoming message, the terminal displays the incoming message in a first pop-up window on the instant message in the interface of the current application program, and after the terminal receives a request for processing the instant message in the current interface, the method further includes:
the terminal judges whether the request is an answering request, if so, the terminal judges whether the current application program occupies a microphone, and if so, the terminal closes the microphone of the current application program according to the request.
Optionally, after the terminal closes the microphone of the current application according to the request, the method further includes:
and the terminal judges whether the current application program occupies a loudspeaker, and if so, the terminal controls earphones on two sides of the earphone to be used on the current application program interface according to the request.
Optionally, after the terminal determines whether the current application occupies the speaker, the method further includes:
when the terminal determines that the current application program does not occupy the loudspeaker, the terminal judges whether the current application program occupies a receiver; and if not, the terminal controls the receiver to use the current application program according to the request.
Optionally, the earphone is a headphone; after the terminal judges whether the current application program occupies a receiver, the method further comprises the following steps:
and when the terminal determines that the current application program occupies the earphone receiver, the terminal controls the earphone volume of one side of the earphone receiver at the current application program to be weakened and controls the earphone receiver of the other side of the earphone receiver to be used only in the application program corresponding to the instant message according to the request.
Optionally, when the instant message is a text character type message, after the instant message is displayed in a second popup window on the interface of the current application program, the method further includes:
and the terminal judges whether the instant message can be completely displayed on a second popup window, and if not, the terminal controls the popup window to display contents in a rolling mode.
Optionally, when the instant message is a text character type message, the processing, by the terminal, the instant message in the current application program interface according to the request includes:
and the terminal provides a corresponding processing mode according to the request to process the instant message in the current application program interface.
Optionally, the corresponding processing mode includes a text reply processing mode and a voice reply processing mode.
A second aspect of the embodiments of the present application provides a terminal, including:
a first receiving unit for receiving an instant message;
the judging unit is used for judging whether the interface of the current application program is the interface of the set fixed application program;
the display unit is used for displaying the instant message on the current interface when the judging unit determines that the current interface of the application program is the interface of a set fixed application program, wherein the fixed application program is the application program with a preset fixed label;
a second receiving unit, configured to receive, at the current interface, a request for processing the instant message;
and the processing unit is used for processing the instant message in the current application program interface according to the request.
Optionally, the terminal further includes:
the type judging unit is used for judging the type of the instant message;
the display unit includes:
the first display module is used for displaying the incoming message in a first popup window on the instant message in the interface of the current application program when the instant message is the incoming message;
and the second display module is used for displaying the message content of the instant message in a second popup window on the interface of the current application program when the instant message is a character type message.
Optionally, the current terminal further includes:
the request judging unit is used for judging whether the request is an answering request;
a microphone judging unit, configured to judge whether the current application occupies a microphone when the request judging unit determines that the request is an answer request;
and the microphone closing unit is used for closing the microphone of the current application program according to the request when the microphone judging unit determines that the current application program occupies the microphone.
Optionally, the terminal further includes:
the loudspeaker judging unit is used for judging whether the current application program occupies a loudspeaker;
the receiver control unit is used for controlling a receiver to be used in the current application program according to the request when the loudspeaker judgment unit determines that the current application program occupies the loudspeaker; and the receiver control unit is also used for controlling the receiver to use the current application program according to the request when the receiver judgment unit determines that the current application program does not occupy the receiver of the earphone.
Optionally, the terminal further includes:
and the receiver judging unit is used for judging whether the current application program occupies the receiver or not when the loudspeaker judging unit determines that the current application program does not occupy the loudspeaker.
Optionally, the earpiece control unit includes:
and the first earphone control module is used for controlling the earphone volume of one side of the earphone receiver in the current application program to be weakened and controlling the earphone receiver of the other side of the earphone receiver to be used only in the application program corresponding to the instant message according to the request.
And the second earphone control module is used for controlling the earphone to be used in the current application program according to the request.
Optionally, the terminal further includes:
the pop window judging unit is used for judging whether the instant message can be completely displayed on a second pop window or not;
and the rolling control unit is used for controlling the popup window to display contents in a rolling mode when the popup window judging unit determines that the instant message cannot be completely displayed on the second popup window.
A third aspect of the embodiments of the present application provides a terminal, including:
a processor, a memory, an input-output device, and a bus;
the processor is connected with the memory, the input and output equipment and the bus;
the terminal only wants to operate as follows:
receiving an instant message;
judging whether the current application program interface is a set fixed application program interface or not, if so, displaying the instant message on the current application program interface, wherein the fixed application program is an application program with a preset fixed label;
receiving a request for processing the instant message at the current interface;
and processing the instant message in the current application program interface according to the request.
Optionally, the processor is further configured to perform the operations of any of the alternatives of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium of an instant message processing method, including:
the computer-readable storage medium has stored thereon a program that, when executed on a computer, performs the aforementioned instant message processing method.
According to the technical scheme, the method has the following advantages: when the method is applied to the terminal and an interface of an application program is displayed, the terminal receives the instant message; the terminal judges whether the interface of the current application program is the interface of a set fixed application program, if so, the instant message is displayed on the interface of the current application program, and the fixed application program is the application program with a preset fixed label; the terminal receives a request for processing the instant message on the current interface; the terminal processes the instant message on the interface of the current application program according to the request; the terminal processes the instant message on the interface of the current application program according to the request; and the instant message is directly finished on the interface of the current application program, so that the terminal does not need to be manually switched to the interface of the current application program after processing the instant message.
Drawings
Fig. 1 is a schematic flowchart illustrating an embodiment of an instant message processing method according to an embodiment of the present application;
2-1 and 2-2 are schematic flow charts of another embodiment of an instant message processing method in the embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an instant message processing method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a terminal in the embodiment of the present application;
fig. 5 is a schematic structural diagram of another embodiment of a terminal in the embodiment of the present application.
Detailed Description
The application provides an instant message processing method, which is used for enabling a terminal to be not required to be manually switched to an interface of a current application program after the terminal processes an instant message.
Referring to fig. 1, an embodiment of an instant message processing method in the embodiment of the present application includes:
101. the terminal receives the instant message;
when the terminal is displaying an interface of an application program, because the terminal has the capability of simultaneously running at least two application programs, when any application program running on the terminal receives a message, the terminal receives an instant message, and the instant message includes a program identifier and an instant message type identifier of the application program corresponding to the instant message, for example: the terminal simultaneously runs the video playing application program and the wechat application program, when the terminal uses the video playing application program, the terminal receives the wechat instant message, the wechat instant message comprises a program identifier of the wechat application program, and the program identifier is used for the terminal to determine that the wechat instant message is the instant message received by the wechat application program.
In this embodiment, the set fixed application may be a video playing application interface or a music playing application interface, which is not specifically limited herein.
In this embodiment, the instant message may be a wechat instant message, a QQ instant message, a telephone instant message, and the like, and is not limited herein.
102. The terminal judges whether the interface of the current application program is the interface of the set fixed application program; if yes, go to step 103;
after the terminal receives the instant message, the terminal determines a current application program, and judges whether the current application program interface is a set fixed application program interface or not according to the application program of a preset fixed tag, wherein the fixed application program can be any application program of the preset fixed tag; and when the current application program is the application program with the preset fixed label, the terminal determines that the interface of the current application program is the interface of the set fixed application program.
For example: the method comprises the steps that a user sets all video playing application programs and game application programs as fixed label application programs at a terminal, when the terminal executes the video application programs, the terminal receives WeChat instant messages, an interface displayed by the terminal is the interface of the video playing application programs, the terminal obtains the current video playing application programs, the terminal judges whether the current video playing application programs are the interfaces of the application programs with the fixed labels or not, and if yes, the interface of the current application programs is determined to be the set fixed application program interface.
In this embodiment, the user sets all the video applications and the game applications as the applications with the fixed tags at the terminal, and when the applications with the fixed tags are executed and the terminal receives the instant message, the terminal performs processing according to the scheme.
103. The terminal displays the instant message on the interface of the current application program;
when the terminal determines that the interface of the current application program is the interface of the set fixed application program, the terminal displays the instant message on the interface of the current application program by using a window with lower interface visibility relative to the current application program, so that the display of the instant message by the terminal does not influence the interface display of the current application program.
The specific display can be shown in various ways, and the specific display mode is shown in the embodiment corresponding to fig. 2 and fig. 3.
104 the terminal receives a request for processing the instant message on the current interface;
after the terminal displays the instant message, the terminal receives a request for processing the instant message sent by a user, wherein the request comprises an application program identifier corresponding to the request, and the request is used for determining the instant message request of the application program corresponding to the request for processing the instant message according to the application program identifier.
For example: after the terminal displays the instant message of the WeChat, the terminal receives a request for processing the instant message of the WeChat sent by a user, the request comprises an identification of a WeChat application program, and the terminal determines that the request for processing the instant message is the request for processing the instant message of the WeChat according to the identification.
The terminal processes the WeChat information on the current application program interface according to the request; after the WeChat information is processed, the terminal processes the WeChat program into background running, and at the moment, the terminal does not need manual switching of a user and can always remain in the application program for watching the video.
105. And the terminal processes the instant message in the current application program interface according to the request.
And after the terminal receives the request for processing the instant message, the terminal processes the instant message in a display window with lower visibility relative to the current application program interface.
In this embodiment, the processing of the instant message by the terminal may be processing of text reply instant message, processing of voice reply instant message, processing of answer instant message, and processing of reject instant message, which is not specifically limited herein.
The terminal processes the instant message on the interface of the current application program according to the request; and the instant message is directly finished on the interface of the current application program, so that the terminal does not need to be manually switched to the interface of the current application program after processing the instant message.
Referring to fig. 2-1 and 2-2, another embodiment of the instant message processing method in the embodiment of the present application includes:
201. the terminal receives the instant message;
202. the terminal judges whether the interface of the current application program is the interface of the set fixed application program; if yes, go to step 203; if not, go to step 204;
steps 201 to 202 in this embodiment are similar to steps 101 to 102 in the previous embodiment, and are not described again here.
203. The terminal judges the type of the instant message;
when the terminal receives the instant message and the terminal determines that the interface of the current application program is the interface of the set fixed application program, the terminal judges the type of the instant message according to the instant message type identifier of the received instant message because the instant message also comprises the instant message type identifier, and when the instant message type identifier is an incoming call identifier, the terminal determines that the type of the instant message is the incoming call message; and when the instant message type identifier is a character type message, the terminal determines that the instant message is a character type message.
In this embodiment, the type of the instant message received by the terminal may be an incoming message, or may also be a text character type message, a news push type message, and the like, and is not specifically limited herein.
204. When the instant message is an incoming call message, the terminal displays the incoming call message on a first popup window on the instant message in the interface of the current application program;
when the terminal determines that the type of the instant message is an incoming call message, the terminal displays the content of the received instant message on an interface of a current application program by using a first popup window with lower visibility, and the terminal is provided with an answering control and a rejecting control for receiving and processing an instant message request in a second popup window, wherein the transparency of the answering control and the rejecting control is lower than that of the first popup window and higher than that of the interface of the current application program. The interface content of the current application program is not covered by the first popup when the interface of the current application program is displayed, and the positions of the answering control and the rejecting control can be found on the first popup window relatively easily.
In an embodiment, the display of the instant message content in the first pop-up window may include an incoming call number, an incoming call user name, or both, which is not specifically limited.
205. The terminal receives a request for processing the instant message on a current interface;
step 205 in this embodiment is similar to step 104 in the previous embodiment, and is not described herein again.
206. The terminal judges whether the request is an answering request or not; if yes, go to step 207; if not, go to step 214;
and after the terminal displays the incoming message in a first popup window, the terminal receives a request of processing the instant message by a user, wherein the request comprises a request type value, when the request type value is an answering preset value, the terminal determines that the request is an answering request, and when the request type is not the answering preset value, the terminal determines that the request is a refusing request. If the terminal determines that the request is an answering request, step 207 is executed; if the terminal determines that the request is not a listen request, step 214 is executed.
In this embodiment, the preset listening value may be 1, true, is, listen, etc., and is not specifically limited.
207. The terminal judges whether the current application program occupies a microphone; if yes, go to step 208; if not, go to step 209;
after the terminal determines that the request is an answering request, because the message needs to be transmitted out by using a microphone to answer the incoming call, the terminal judges whether the current application program occupies the microphone or not; the method comprises the steps that a terminal obtains a current application program of a current application program interface, the terminal obtains the microphone authority of the current application program, and when the microphone authority is closed, the terminal determines that the current application program does not occupy a microphone; when the microphone authority is opened, the terminal acquires whether the microphone of the current application program is opened, and when the terminal determines that the microphone in the current application program is opened, the terminal determines that the current application program occupies the microphone, and then step 208 is executed; when the terminal determines that the microphone in the current application is turned off and the terminal determines that the microphone is not occupied by the current application, step 209 is performed.
208. The terminal closes the microphone of the current application program according to the request;
when the terminal determines that the current application starts the microphone, the terminal closes the microphone of the current application program according to the answering request, so that when the even message (incoming call message) is processed into the answering request, a basis for answering the even message is provided for the application program corresponding to the even message.
209, the terminal judges whether the current application occupies the loudspeaker; if not, go to step 210; if yes, go to step 212;
after the terminal determines that the microphone is reserved even if the message is used, the terminal determines whether the current application occupies the speaker, the terminal acquires whether the speaker of the current application is opened, and when the terminal determines that the speaker of the current application is opened, the terminal determines that the current application occupies the speaker, step 212 is executed; when the terminal determines that the speaker is turned off in the current application and the terminal determines that the speaker is not occupied by the current application, step 210 is performed.
210. The terminal judges whether the current application program occupies a receiver; if yes, go to step 211; if not, go to step 212;
because the loudspeaker and the receiver cannot be occupied by the current application program at the same time, when the terminal determines that the loudspeaker is not occupied by the current application program, the terminal judges whether the current application program occupies the receiver. The method comprises the steps that a terminal obtains an occupation value of a current application program occupying a receiver and a receiver identification, wherein the receiver identification is used for the terminal to determine the type of the receiver; after determining the type of the receiver according to the receiver identification, the terminal determines whether the current application program occupies the receiver; when the occupation value is the preset occupation value, the terminal determines that the current application program occupies the receiver, and then step 211 is executed; when the occupancy value is not the preset occupancy value, the terminal determines that the current application program does not occupy the handset, and then directly executes step 212.
In this embodiment, the handset may include a terminal handset or a headset handset that establishes a connection with the terminal, and no specific pre-action is made here.
211. The terminal controls the volume of the earphone on one side of the earphone receiver to be reduced in the current application program and controls the earphone receiver on the other side of the earphone receiver to be used only by the application program corresponding to the instant message according to the request;
when the terminal determines that the earphone type is the earphone type according to the earphone identification, the volume of the earphone used on the current application program is reduced by the terminal, when the volume is reduced to the lowest volume preset value, the terminal closes the earphone on any one of two sides of the earphone to be used on the current application program, the earphone on the one side is enabled to be used only in the current application program according to the request, and the volume of the earphone on the one side is set to be adjustable.
For example, the earphone earphones connected with the terminal comprise a first earphone (left earphone) and a second earphone (right earphone); when the terminal uses a video playing application program, the terminal receives a WeChat incoming call instant message, the terminal receives an answering request initiated by a user, and the terminal reduces the volume of a first earphone and a second earphone to a preset value with minimum volume; when the terminal reduces the first earphone receiver and the second earphone receiver, closing the first earphone receiver or the second earphone receiver from being used in the video playing application program; when the first earphone receiver is closed to be used in the video playing application program, the terminal controls the second earphone receiver to be used in the WeChat application program; when the second earphone receiver is closed to be used on the video playing application program, the terminal controls the first earphone receiver to be used on the WeChat application program. This enables the user to continue the audio video playback while answering the WeChat call.
212. The terminal controls the receiver to use the current application program according to the request;
when the terminal determines that the current application program does not occupy the receiver or the terminal determines that the current application program occupies the loudspeaker, the terminal controls the controllable receiver to be used on the current application program and controls the loudspeaker to be used on the application program corresponding to the instant message; because the volume of the loudspeaker is higher than that of the receiver, the loudspeaker is controlled to be used on the application program corresponding to the instant message, and the user can receive clearer voice when processing the instant message by controlling the receiver to be used on the current application program.
In this embodiment, the terminal may further control the receiver to be used in the application corresponding to the instant message, and the speaker is used in the current application, because the volume of the speaker is higher than that of the receiver, when the user processes the instant message, the user can clearly receive the video and sound effects played by the video playing application.
In this embodiment, the volume of the receiver and the volume of the speaker may be fixed or adjustable, and are not specifically limited herein.
213. The terminal processes the instant message in the current application program interface according to the request;
step 213 in this embodiment is similar to step 105 in the previous embodiment, and is not described herein again.
214. And the terminal controls the background running of the application program corresponding to the instant message.
And when the terminal finishes processing the instant message on the current application program interface according to the request or determines that the request is a rejection request, the terminal closes the first popup window, quits the current application program interface, suspends the application program corresponding to the instant message and runs in a background. Therefore, after the instant message is processed, the current application program interface does not need to manually control the second popup window to exit the current application program interface after the instant message is processed.
Referring to fig. 3, another embodiment of the instant message processing method in the embodiment of the present application includes:
301. the terminal receives the instant message;
302. the terminal judges whether the interface of the current application program is the interface of the set fixed application program; if yes, go to step 303; if not, go to step 304;
303. the terminal judges the type of the instant message;
steps 301 to 303 in this embodiment are similar to steps 201 to 203 in the previous embodiment, and are not described again here.
304. When the instant message is a character type message, displaying message content in a second popup window of the instant message at the interface of the current application program;
when the terminal determines that the type of the instant message is a character type message, the terminal displays the content of the received instant message on an interface of a current application program by using a second popup window with lower visibility, a reply control for receiving and processing an instant message request is arranged in the second popup window, and the transparency of the reply control is lower than that of the second popup window and higher than that of the interface of the current application program. The second popup window does not cover the interface content of the current application program when the interface of the current application program is displayed, and the position of the reply control can be found on the second popup window relatively easily.
305. The terminal judges whether the instant message can be completely displayed on the second popup window; if yes, go to step 307; if not, go to step 306;
when the terminal displays the instant message on the second pop-up window, the content of the instant message is too much, but the second pop-up window cannot exceed the size of the current terminal interface, and the terminal needs to judge whether the instant message can be completely displayed on the second pop-up window. The terminal firstly acquires the content of the instant message and calculates the number of characters occupied by the content of the instant message; then acquiring the number of characters which can be displayed in the second pop-up window; the terminal compares the number of the characters occupied by the instant message content with the number of the characters which can be displayed on the second pop-up window, and when the number of the characters occupied by the instant message content is less than or equal to the number of the characters of the second pop-up window, the terminal determines that the instant message can be completely displayed on the second pop-up window; and when the characters occupied by the instant message content are larger than the number of the characters of the second popup window, the terminal determines that the instant message cannot be completely displayed on the second popup window.
In this embodiment, the second popup window may be a fixed-size second popup window, or may be a scalable second popup window according to the number of characters occupied by the instant message, and is not specifically limited herein.
306. The terminal controls the second popup window to display the content by rolling display;
when the terminal determines that the instant message cannot be completely displayed on the second popup window, the terminal sets the number of characters contained in the second popup window according to the calculated character size occupied by the instant message, and when the number of the characters contained in the second popup window is larger than the number of characters displayed on the current application program interface by the second popup window, the terminal sets the second popup window to vertically roll, so that when the terminal rolls upwards, the instant message content of the second popup window display interface which is not displayed on the interface of the second popup window fixed on the current application program can be displayed on the second popup window fixed on the second popup window display interface of the current application program interface; so that the user can browse the instant messages comprehensively.
In this embodiment, the terminal may set the second pop-up window to vertically scroll, and may also set the second pop-up window to horizontally scroll, which is not specifically limited herein.
307. The terminal receives a request for processing the instant message on a current interface;
308. and the terminal processes the instant message in the current application program interface according to the request.
Steps 307 to 308 in this embodiment are similar to steps 104 to 105 in the previous embodiment, and are not described again here.
Referring to fig. 4, an embodiment of a terminal according to the present application includes:
a first receiving unit 401, configured to receive an instant message;
a judging unit 402, configured to judge whether an interface of a current application is an interface of a set fixed application;
a display unit 403, configured to display the instant message on the interface of the current application program when the determining unit 402 determines that the interface of the current application program is the interface of the set fixed application program, where the fixed application program is an application program with a preset fixed tag;
a second receiving unit 404, configured to receive, at the current interface, a request for processing an instant message;
and the processing unit 405 is configured to process the instant message in the current application program interface according to the request.
In this embodiment, the terminal may further include:
a type determining unit 406, configured to determine a type of the instant message;
in this embodiment, display unit 403 may include a first display module 4031 and a second display module 4032.
A first display module 4031, configured to display, when the instant message is an incoming call message, the incoming call message on a first pop-up window on an interface of a current application program;
a second displaying module 4032, configured to display, when the instant message is a text character type message, message content of the instant message in a second popup window on an interface of the current application.
In this embodiment, the terminal may further include:
a request determining unit 407, configured to determine whether the request is an answering request;
a microphone judging unit 408, configured to, when the request judging unit 407 determines that the request is an answer request, judge whether the current application occupies a microphone;
a microphone closing unit 409, configured to close the microphone usage of the current application program according to the request when the microphone determination unit 408 determines that the current application program occupies the microphone.
In this embodiment, the terminal may further include:
a speaker determining unit 410, configured to determine whether the current application occupies a speaker;
and the earpiece control unit 411 is used for controlling the earpiece to be used in the current application program according to the request when the speaker judgment unit 410 determines that the current application program occupies the speaker. The earpiece control unit 411 is further configured to control the earpiece to be used in the current application program interface according to the request when the earpiece determination unit determines that the current application program does not occupy the earpiece.
In this embodiment, the terminal may further include:
a receiver determining unit 412, configured to determine whether the current application program occupies a receiver when the speaker determining unit 410 determines that the current application program does not occupy the speaker;
in this embodiment, the earpiece control unit 411 may include a first earpiece control module 4111 and a second earpiece control module 4112.
A first earpiece control module 4111, configured to control an earpiece volume of one side of the earpiece to be decreased in a current application program and control an earpiece of the other side of the earpiece to be used only by an application program corresponding to the instant message according to the request;
a second earpiece control module 4112, configured to control the earpiece to be used in the current application according to the request.
In this embodiment, the terminal may further include:
a pop-up window judging unit 413, configured to judge whether the instant message can be completely displayed on the second pop-up window;
a scroll control unit 414 for controlling the popup to use the scroll presentation when the popup judging unit 413 determines that the instant message cannot be completely presented on the second popup.
In this embodiment, the first receiving unit 401 receives an instant message, the type determining unit 406 determines the type of the instant message received by the first receiving unit 401, and the determining unit 402 determines whether the interface of the current application is the interface of the set fixed application; when the determining unit 402 determines that the interface of the current application program is the interface of the set fixed application program and the type determining unit 406 determines that the first receiving unit 401 receives the incoming call message, the first displaying module 4031 displays the incoming call message on the first popup window on the interface of the current application program; after receiving the request for processing the instant message at the current application program interface, the second receiving unit 404 determines that the instant message received by the first receiving unit 401 is an incoming message according to the type determining unit, the request determining unit 407 determines whether the request is an answering request, when the request determining unit 407 determines that the request is an answering request, the microphone determining unit 408 determines whether the current application program occupies a microphone, and if the current application program occupies a microphone, the microphone closing unit 409 closes the microphone of the current application program; after the microphone is turned off and the current application program is used, the speaker determining unit 410 determines whether the current application program occupies the speaker, and if the current application program occupies the speaker, the second earpiece control module 4112 controls the earpiece to be used in the current application program. If the current application program does not occupy the speaker, the receiver determining unit 412 determines whether the current application program occupies the receiver; if not, the second earpiece control module 4112 controls the earpiece to be used in the current application program according to the answer request; if yes, the first earpiece control module 4111 controls the earpiece volume of one side of the earpiece to decrease in the current application program and controls the earpiece of the other side of the earpiece to process the instant message only according to the application program interface corresponding to the instant message, and the processing unit 405 controls the mode of the earpiece to answer and the instant message processing by the request in the current application interface according to the earpiece control unit 411.
In this embodiment, it may also be that the first receiving unit 401 receives an instant message, the type determining unit 406 determines the type of the instant message received by the first receiving unit 401, and the determining unit 402 determines whether the interface of the current application program is the interface of the set fixed application program; when the determining unit 402 determines that the interface of the current application program is the interface of the set fixed application program and the type determining unit 406 determines that the instant message received by the first receiving unit 401 is a text character type message, the second displaying module 4032 displays the message content on the instant message on the second popup window on the interface of the current application program; when the second displaying module 4032 displays the message content in the second pop-up window, the pop-up window determining unit 413 determines whether the instant message can be completely displayed in the second pop-up window, when the pop-up window determining unit 413 determines that the instant message cannot be completely displayed in the second pop-up window, the scroll control unit 414 controls the pop-up window to display the content using the scroll display, the second receiving unit 404 receives a request for processing the instant message, and the processing unit 405 processes the instant message in the current application interface according to the request.
Referring to fig. 5, the yard terminal in the embodiment of the present application is described in detail below, and another embodiment of the terminal in the embodiment of the present application includes:
a processor 501, a memory 502, an input/output unit 503, and a bus 504;
the processor 501 is connected with the memory 502, the input/output unit 503 and the bus 504;
the processor 501 performs the following operations:
receiving an instant message;
judging whether the interface of the current application program is the interface of the set fixed application program, if so, displaying the instant message on the interface of the current application program, wherein the fixed application program is the application program with a preset fixed label;
receiving a request for processing the instant message at the current interface;
and the terminal processes the instant message in the current application program interface according to the request.
In this embodiment, the functions of the processor 501 correspond to the steps in the embodiments shown in fig. 1 to fig. 3, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. An instant message processing method applied to a terminal displaying an interface of an application program is characterized by comprising the following steps:
the terminal receives the instant message;
the terminal judges whether the interface of the current application program is the interface of a set fixed application program, if so, the instant message is displayed on the interface of the current application program, and the fixed application program is the application program with a preset fixed label;
the terminal receives a request for processing the instant message on the current interface;
and the terminal processes the instant message in the current application program interface according to the request.
2. The method of claim 1, wherein after the terminal receives the instant message and before the instant message is presented by the interface of the current application, the method further comprises:
the terminal judges the type of the instant message;
the displaying the instant message on the interface of the current application program comprises:
when the instant message is an incoming call message, the terminal displays the incoming call message on a first popup window on the instant message in the interface of the current application program;
and when the instant message is a character type message, displaying message content in a second popup window on the instant message in the interface of the current application program.
3. The method according to claim 2, wherein when the instant message is an incoming message, the terminal displays the incoming message in a first pop-up window on the interface of the current application program, and after the terminal receives a request for processing the instant message on the current interface, the method further comprises:
the terminal judges whether the request is an answering request, if so, the terminal judges whether the current application program occupies a microphone, and if so, the terminal closes the microphone of the current application program according to the request.
4. The method of claim 2, wherein after the terminal turns off microphone usage of the current application according to the request, the method further comprises:
and the terminal judges whether the current application program occupies a loudspeaker, and if so, the terminal controls earphones on two sides of the earphone to be used in the current application program according to the request.
5. The method of claim 4, wherein after the terminal determines whether the current application occupies a speaker, the method further comprises:
when the terminal determines that the current application program does not occupy the loudspeaker, the terminal judges whether the current application program occupies a receiver; and if not, the terminal controls the receiver to use the current application program according to the request.
6. The method of claim 5, wherein the earpiece is a headphone;
after the terminal judges whether the current application program occupies a receiver, the method further comprises the following steps:
and when the terminal determines that the current application program occupies the earphone receiver, the terminal controls the earphone volume of one side of the earphone receiver at the current application program to be weakened and controls the earphone receiver of the other side of the earphone receiver to be used only in the application program corresponding to the instant message according to the request.
7. The method of any one of claims 1 to 6, wherein when the instant message is a text character type message, after the instant message is presented in a second popup window by the interface of the current application, the method further comprises:
and the terminal judges whether the instant message can be completely displayed on a second popup window, and if not, the terminal controls the popup window to display contents in a rolling mode.
8. The method according to any one of claims 2 to 6, wherein, when the instant message is a text character type message, the terminal processing the instant message at the current application program interface according to the request comprises:
and the terminal provides a corresponding processing mode according to the request to process the instant message in the current application program interface.
9. The method of claim 8, wherein the corresponding processing modes include a text reply processing mode and a voice reply processing mode.
10. A terminal, comprising:
a first receiving unit for receiving an instant message;
the judging unit is used for judging whether the interface of the current application program is the interface of the set fixed application program;
the display unit is used for displaying the instant message on the interface of the current application program when the judging unit determines that the interface of the current application program is the interface of a set fixed application program, wherein the fixed application program is an application program with a preset fixed label;
a second receiving unit, configured to receive, at the current interface, a request for processing the instant message;
and the processing unit is used for processing the instant message in the current application program interface according to the request.
CN202010757349.5A 2020-07-31 2020-07-31 Instant message processing method and related equipment Pending CN112073576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010757349.5A CN112073576A (en) 2020-07-31 2020-07-31 Instant message processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010757349.5A CN112073576A (en) 2020-07-31 2020-07-31 Instant message processing method and related equipment

Publications (1)

Publication Number Publication Date
CN112073576A true CN112073576A (en) 2020-12-11

Family

ID=73656729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010757349.5A Pending CN112073576A (en) 2020-07-31 2020-07-31 Instant message processing method and related equipment

Country Status (1)

Country Link
CN (1) CN112073576A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047460A1 (en) * 2010-08-18 2012-02-23 Red Hat, Inc. Mechanism for inline response to notification messages
CN102932232A (en) * 2011-08-10 2013-02-13 腾讯科技(深圳)有限公司 Instant messaging terminal and method for displaying conversion message in real time
CN103248757A (en) * 2013-03-28 2013-08-14 北京小米科技有限责任公司 Method and device for message notification
CN106161724A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Audio output control method and device
CN107087072A (en) * 2017-04-25 2017-08-22 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN107395892A (en) * 2017-08-08 2017-11-24 北京奇安信科技有限公司 A kind of instant message processing method and processing device
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN107807767A (en) * 2017-09-27 2018-03-16 努比亚技术有限公司 A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN108111675A (en) * 2017-12-13 2018-06-01 维沃移动通信有限公司 Processing method, device and the mobile terminal of notification message
CN109104531A (en) * 2018-08-27 2018-12-28 Tcl移动通信科技(宁波)有限公司 A kind of incoming call volume processing method, storage medium and mobile terminal
CN110912806A (en) * 2019-11-22 2020-03-24 网易(杭州)网络有限公司 Message processing method, device, storage medium and electronic device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047460A1 (en) * 2010-08-18 2012-02-23 Red Hat, Inc. Mechanism for inline response to notification messages
CN102932232A (en) * 2011-08-10 2013-02-13 腾讯科技(深圳)有限公司 Instant messaging terminal and method for displaying conversion message in real time
CN103248757A (en) * 2013-03-28 2013-08-14 北京小米科技有限责任公司 Method and device for message notification
CN106161724A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Audio output control method and device
CN107087072A (en) * 2017-04-25 2017-08-22 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN107395892A (en) * 2017-08-08 2017-11-24 北京奇安信科技有限公司 A kind of instant message processing method and processing device
CN107807767A (en) * 2017-09-27 2018-03-16 努比亚技术有限公司 A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN108111675A (en) * 2017-12-13 2018-06-01 维沃移动通信有限公司 Processing method, device and the mobile terminal of notification message
CN109104531A (en) * 2018-08-27 2018-12-28 Tcl移动通信科技(宁波)有限公司 A kind of incoming call volume processing method, storage medium and mobile terminal
CN110912806A (en) * 2019-11-22 2020-03-24 网易(杭州)网络有限公司 Message processing method, device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US8549426B2 (en) Apparatus and method for configuring an on-screen image in a mobile telecommunication handset upon connection of earphone
CN108924361B (en) Audio playing and acquisition control method, system and computer readable storage medium
CN110505603B (en) Bluetooth phone privacy protection method and vehicle machine
US10951987B1 (en) In-vehicle passenger phone stand
CN112751971A (en) Voice playing method and device and electronic equipment
CN113078921B (en) Data processing method, device and storage medium
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
US9674329B2 (en) Mobile communication terminal for receiving call while running application and method for same
CN106804010B (en) Incoming call processing method and device based on virtual reality equipment and virtual reality equipment
CN112243142B (en) Method, device and storage medium for processing audio data
US10535360B1 (en) Phone stand using a plurality of directional speakers
CN113784001A (en) Audio data playing method and device, electronic equipment and storage medium
CN112702468A (en) Call control method and device
CN111277697B (en) Audio processing method and device, storage medium and electronic equipment
CN112073576A (en) Instant message processing method and related equipment
JP6375082B1 (en) Information guidance system, method and program
CN111510662B (en) Network call microphone state prompting method and system based on audio and video analysis
WO2021057858A1 (en) Method for answering incoming call in instant messaging application, mobile terminal and computer storage medium
US10021235B2 (en) Method for controlling electronic device
CN112135197B (en) Subtitle display method and device, storage medium and electronic equipment
CN113271385A (en) Call forwarding method
CN113691762A (en) Data transmission method and device for video conference and computer readable storage medium
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN109818979A (en) A kind of method, apparatus that realizing audio return, equipment and storage medium
CN111757195B (en) Information output method and device based on intelligent sound box

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211