CN107317919B - Communication message reply method and device and mobile terminal - Google Patents

Communication message reply method and device and mobile terminal Download PDF

Info

Publication number
CN107317919B
CN107317919B CN201710400370.8A CN201710400370A CN107317919B CN 107317919 B CN107317919 B CN 107317919B CN 201710400370 A CN201710400370 A CN 201710400370A CN 107317919 B CN107317919 B CN 107317919B
Authority
CN
China
Prior art keywords
message
communication
communication message
application
reply
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
CN201710400370.8A
Other languages
Chinese (zh)
Other versions
CN107317919A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century 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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710400370.8A priority Critical patent/CN107317919B/en
Publication of CN107317919A publication Critical patent/CN107317919A/en
Application granted granted Critical
Publication of CN107317919B publication Critical patent/CN107317919B/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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/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
    • H04M1/72436User 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 for text messaging, e.g. SMS or e-mail

Abstract

The embodiment of the invention provides a reply method, a reply device and a mobile terminal of a communication message, wherein the method comprises the following steps: when the mobile terminal is in a screen locking state, displaying a first communication message received by the communication application in a notification bar; loading a reply window independent of the messaging application on the first messaging message; receiving a second communication message input by a user in the reply window; and calling the communication application to send the second communication message so as to reply the first communication message. The embodiment of the invention realizes the message reply in the screen locking state, the user does not need to perform unlocking reply, especially the message is received discontinuously, the unlocking frequency is greatly reduced, the simplicity and convenience of the reply message are improved, meanwhile, the hook operation is performed in the background of the operating system, the user is invisible, the influence on the front-end operation is reduced, and the user experience is ensured.

Description

Communication message reply method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a device for replying a communication message and a mobile terminal.
Background
With the development of mobile communication technology, mobile terminals such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people.
Users often install various applications, such as browsers, communication applications, news applications, video applications, etc., in mobile terminals to meet the needs of learning, work, entertainment, etc.
When the mobile terminal is in a screen locking state, if the communication application receives a message, the user needs to unlock the mobile terminal, and then the communication application is started to reply, so that the operation is complicated, and especially the message is received discontinuously, so that the unlocking is frequently performed.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a reply method of a communication message and a corresponding reply device of a communication message, a mobile terminal, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for replying a communication message, including:
when the mobile terminal is in a screen locking state, displaying a first communication message received by the communication application in a notification bar;
loading a reply window independent of the messaging application on the first messaging message;
receiving a second communication message input by a user in the reply window;
and calling the communication application to send the second communication message so as to reply the first communication message.
In one possible design, the step of displaying the first communication message received by the communication application in the notification bar includes:
acquiring a message received by an application in a notification bar;
if the application is a communication application and the message is a session message, determining that the message is a first communication message;
and displaying the first communication message in a notification bar.
In a possible design, the step of invoking the communication application to send the second communication message to reply to the first communication message includes:
hooking a message processing interface of the communication application and receiving the first communication message;
inputting the second communication message in the message processing interface;
and simulating user operation in the message processing interface to reply the second communication message.
In one possible design, the step of hooking the message processing interface of the communication application, which receives the first communication message, includes:
hooking a search interface in the communication application, wherein the search interface is provided with a search box;
inputting the information of the communication object for sending the first communication message into the search box;
triggering search operation, and searching in the target application by taking the information in the search box as a keyword to obtain a search result;
and simulating to click the search result to open a conversation window for receiving the first communication message, wherein the conversation window is used as a message processing interface.
In one possible design, the step of hooking the search interface in the communication application includes:
loading the communication application into a specified virtual machine;
and hooking a function corresponding to the search interface in the virtual machine.
In one possible design, the conversation window has an input window or a recording control;
the step of entering the second communication message in the message handling interface comprises:
writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
simulating long-time pressing of the recording control and recording audio data;
replacing the audio data with the second communication message.
In one possible design, the input window has a corresponding send control;
the step of simulating user operation in the message processing interface to reply the second communication message comprises:
simulating and clicking the sending control to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
acquiring the duration of the second communication message;
and when the time length is reached, stopping simulating long-time pressing of the recording control so as to send the second communication message replacing the audio data.
In a second aspect, an embodiment of the present invention provides a device for replying to a communication message, including:
the first communication message display module is used for displaying a first communication message received by the communication application in the notification bar when the screen is locked;
a reply window loading module, configured to load a reply window independent from the communication application on the first communication message;
the second communication message receiving module is used for receiving a second communication message input by a user in the reply window;
and the second communication message sending module is used for calling the communication application to send the second communication message so as to reply to the first communication message.
In one possible design, the first communication message display module includes:
the message receiving submodule is used for acquiring the message received by the application in the notification bar;
the message attribute confirming submodule is used for confirming that the message is a first communication message if the application is a communication application and the message is a session message;
and the notification bar display submodule is used for displaying the first communication message in the notification bar.
In one possible design, the second communication message sending module includes:
the message processing interface hooking submodule is used for hooking the message processing interface of the communication application and receiving the first communication message;
the second communication message input submodule is used for inputting the second communication message in the message processing interface;
and the user operation simulation submodule is used for simulating user operation in the message processing interface so as to reply the second communication message.
In one possible design, the message handling interface hooking sub-module includes:
the search interface hooking unit is used for hooking a search interface in the communication application, and the search interface is provided with a search frame;
an object information input unit for inputting information of a communication object which transmits the first communication message into the search box;
the search operation triggering unit is used for triggering search operation, searching in the target application by taking the information in the search box as a keyword, and obtaining a search result;
and the search result simulation click unit is used for simulating and clicking the search result so as to open a conversation window for receiving the first communication message and serve as a message processing interface.
In one possible design, the search interface hooking unit includes:
the communication application loading subunit is used for loading the communication application into a specified virtual machine;
and the function hooking unit is used for hooking the function corresponding to the search interface in the virtual machine.
In one possible design, the conversation window has an input window or a recording control;
the second communication message input sub-module includes:
an input window input unit for writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
the recording control simulation long-time pressing unit is used for simulating long-time pressing of the recording control and recording audio data;
an audio data replacing unit for replacing the audio data with the second communication message.
In one possible design, the input window has a corresponding send control;
the user operation simulation submodule comprises:
the sending control simulation clicking unit is used for simulating and clicking the sending control so as to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
a duration obtaining unit, configured to obtain a duration of the second communication message;
and the long-press stopping simulation unit is used for stopping simulating long-press of the recording control when the time length is reached so as to send the second communication message replacing the audio data.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory;
the memory is used for storing a program supporting the execution of the reply method of the communication message;
the processor is configured to execute programs stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the mobile terminal, which includes a program designed for the mobile terminal to execute the above aspect.
When the embodiment of the invention is in the screen locking state, the first communication message received by the communication application is displayed in the notification bar, the reply window independent from the communication application is loaded, the second communication message input by the user is received in the reply window, and the communication application is called to send the second communication message so as to reply to the first communication message, so that the message is replied in the screen locking state, the user does not need to perform unlocking reply, especially the message is discontinuously received, the unlocking frequency is greatly reduced, the simplicity of message reply is improved, meanwhile, the hook operation is performed in the background of the operating system, the user is invisible, the influence on the front-end operation is reduced, and the user experience is ensured.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating steps of a method for replying to a communication message according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of displaying a first communication message in a locked screen state according to an embodiment of the present invention;
FIG. 3 illustrates an exemplary diagram of a reply window in accordance with one embodiment of the present invention;
FIG. 4 illustrates an exemplary diagram of entering a second communication message in a reply window in accordance with one embodiment of the present invention;
FIG. 5 illustrates an exemplary diagram of a search interface of a messaging application, in accordance with one embodiment of the present invention;
FIG. 6 illustrates an exemplary diagram of a search result according to one embodiment of the invention;
FIG. 7 illustrates an exemplary diagram of a conversation window in accordance with one embodiment of the present invention;
FIG. 8 is an exemplary diagram illustrating sending a second communication message in accordance with one embodiment of the present invention;
FIG. 9 illustrates an exemplary view of a session window after sending a second communication message in accordance with one embodiment of the present invention;
FIG. 10 illustrates an exemplary diagram of a lock screen interface according to one embodiment of the invention;
fig. 11 is a block diagram illustrating a reply apparatus for a communication message according to an embodiment of the present invention; and
fig. 12 is a block diagram showing a partial structure of a cellular phone related to a terminal provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of a reply method for a communication message according to an embodiment of the present invention may specifically include the following steps:
step 101, when the mobile terminal is in a screen locking state, displaying a first communication message received by a communication application in a notification bar.
In specific implementation, the embodiments of the present invention may be applied to a mobile terminal, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch, etc.), and the like.
The operating systems of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows, and so on.
In an operating system, different types of system applications are usually preset for users to use, and in order to meet other needs of learning, work, entertainment and the like, the users usually install various types of third-party applications in the operating system, such as instant messenger, browsers, payment applications, news applications, video applications and the like.
If some applications (including system applications and third-party applications) provide communication functions to enable users to communicate with users (or groups), these applications may be referred to as communication applications.
For example, an instant messenger dedicated to communication between a user and a user (or group), a payment application providing a communication function on the basis of providing a payment function, and the like.
In the mobile terminal, the screen can be locked by means of a password, fingerprint data and the like, in the screen locking state, a small part of operations can be performed, for example, a camera is turned on to take a picture, an emergency call is made, a message of a notification bar is displayed, and the like, and the rest of operations are performed after the mobile terminal is unlocked by means of the password, the fingerprint data and the like.
Therefore, when the mobile terminal is in the screen locking state, if the communication application receives the communication message sent by other users, the communication message can be displayed in the notification bar.
For example, as shown in fig. 2, if the mobile terminal is in a screen-locked state, and if the user receives a message "cat food is lost" sent by the user who is "rich" and whose nickname is "chat", the message acquired by the notification bar is displayed on the screen-locked interface.
In one embodiment of the present invention, step 101 may comprise the following sub-steps:
in sub-step S11, the message received by the application is acquired in the notification bar.
And a substep S12, determining the message as a first communication message if the application is a communication application and the message is a session message.
And a substep S13 of displaying the first communication message in a notification bar.
The notification bar, a system message notification area of the mobile terminal, can show message prompts such as weather, software update, instant messaging, mail prompt, etc., and if the application receives the message and has the notification authority of the notification bar, the message can be reminded in the notification bar.
If a message of a certain application is received in the notification bar, the application can be identified, if the application is a communication application, the attribute of the message can be further identified, and if the message is a session message (i.e., a message sent and received in a certain session window), i.e., a message sent by other users, the message can be determined to be a first communication message.
In addition, if the message is a system message or a subscription message, the message is determined to be not the first communication message.
And 102, loading a reply window independent of the communication application on the first communication message.
In the screen locking interface, the position of the first communication message can be located, and based on the position, a reply window is loaded in the lower middle area.
It should be noted that the reply window is independent from the communication application, that is, the reply window is generated by other processes independent from the communication application and does not belong to the communication application itself.
For example, as shown in FIG. 3, a reply window 300 is loaded under a message received by the instant messenger.
And 103, receiving a second communication message input by the user in the reply window.
In the reply window, the user can input the second communication message to reply to the first communication message.
In a specific implementation, the reply window has an input box, a recording control, and the like, the input box may be used to input information such as text information, expression information, and the like as the second communication message, and the recording control may call a microphone to record audio data as the second communication message.
For example, as shown in fig. 4, if the user browses the first communication message "cat food is running out", the user may input the message "good, i.e. i wait to buy a point on the internet" in the input box of the reply window 300, and click the "send" control, and then the message may be determined to be the second communication message.
And 104, calling the communication application to send the second communication message so as to reply to the first communication message.
In the embodiment of the present invention, if the second communication message is obtained, the communication application may be called, and the second communication message is sent in a message processing manner of the communication application itself to reply to the first communication message.
In one embodiment of the present invention, step 104 may include the following sub-steps:
and a substep S21 of hooking the message processing interface of the communication application, which receives the first communication message.
The message processing interface may be an interface for performing processing such as sending and receiving of a message, and the message processing interface is configured to send the second communication message by using a Hook (Hook).
It should be noted that different communication applications have different service processing logics, and interfaces for processing messages are also different.
A hook, also known as a hook, on which an application can set a subroutine to monitor a certain message for a specified window, and the monitored window can be created by other processes, which process the message before the target window handles the function when it arrives.
In one embodiment of the present invention, the sub-step S21 further may include the following sub-steps:
and a substep S211 of hooking the search interface in the communication application.
Wherein, the search interface is provided with a search box;
the search interface belongs to a communication application and is an operation interface used for searching information, a search box is arranged in the search interface, a keyword can be input in the search box, and the communication application searches information related to the keyword.
In one embodiment of the invention, a communication application may be loaded into a designated virtual machine; and hooking a function corresponding to the search interface in the virtual machine.
In the embodiment of the present invention, the operating system may be modified, the virtual machine adapted to the application extension component may be customized, and the communication application may be loaded into the virtual machine to run, so that the application extension component may dynamically extend and repair the communication application, for example, cloud repair, cloud advertisement, module decoupling, black technology, and the like.
The application extension component comprises four parts of a running environment, an activity thread, an installation package and a component file.
The operation environment is responsible for providing core capability, the activity thread is responsible for constructing the operation environment, the installation package is responsible for providing management mechanisms such as a core interface and identity authentication, and the final functional characteristics are provided by the component files.
The runtime environment is a custom android runtime environment (e.g., ART) that provides the application extension component with the ability to adapt Java classes and methods (e.g., Hook).
The active thread is used to provide a set of mechanisms for determining and launching application extension components, thereby reducing the performance impact of the application extension components on the application.
Whether the application needs the component file to be loaded for capacity expansion can be determined by quickly judging whether the application needs the support of the application expansion component through the path.
The installation package is started using the provider signature, which carries the interfaces required by the underlying component files inside it. The Interface is a set of Application Programming Interfaces (APIs) and is used for reducing the memory occupation of the Application expansion component on the Application and reducing the influence on the Application performance when the component file is loaded.
The interface is a Jar package for use by developers in developing component files. The basic APIs commonly used are provided in the Jar package, enabling component files to dynamically modify Java classes and methods and some methods in Hook.
The component files are integrated by the inside of the installation package, so that version control is facilitated, and the size of the component files is reduced. More common base libraries as well as extension libraries can be developed based on the interface. The expansion library is not a specific function, but provides some necessary capabilities for realizing some specific functions, and can be shared by various modules.
The component files are bodies for implementing business functions, and each component file includes a plurality of class abstract objects and method abstract objects. Wherein a class abstract object may comprise a plurality of method abstract objects. The class abstract object is an abstraction of a class to be subjected to Hook, and the method abstract object is an abstraction of a method to be subjected to Hook, and a mapping relation is formed between the method abstract object and the method abstract object. A specific function is realized by a plurality of class abstract objects in a sharing mode after the information is acquired by a method abstract object.
And a substep S212, inputting the information of the communication object sending the first communication message into the search box.
In a specific implementation, the communication object that sends the first communication message may be a friend of the current user (represented by the first communication account) (represented by the second communication account, where the second communication account has a friend relationship with the first communication account), or may be a stranger (represented by the third communication account, where the second communication account does not have a friend relationship with the first communication account).
The information (such as nickname, remark name, head portrait, etc.) of the communication object is read from the notification bar, and the information (such as nickname, remark name, etc.) is input into the search bar.
And a substep S213, triggering a search operation, and searching in the target application by taking the information in the search box as a keyword to obtain a search result.
In a specific implementation, the search box has a corresponding search control, and a click event is simulated at the position of the search control, so that a search operation can be triggered in a search interface.
The communication application responds to the search operation, executes the search process of the communication application, and searches by taking the information of the communication object as a search keyword.
And a substep S214 of simulating and clicking the search result to open a conversation window for receiving the first communication message as a message processing interface.
The search result matched with the information of the corresponding object, related to the search scope thereof, may be limited to contacts, discussion groups, groups and the like, and may be expanded to chat records, music and the like.
Generally, the higher the matching degree of the search result and the information of the communication object, the higher the priority of presentation, so that a suitable conversation window can be opened by clicking the first N (N is a positive integer, for example, 1) search results, and the interface where the conversation window is located is used as a message processing interface.
For example, as shown in fig. 5, a search interface 500 of a communication application named "chat" may be hooked, and "wealth" is input in a search box 501 of the search interface 500, and a click search control 502 is simulated to trigger the communication application to search, as shown in fig. 6, the search result includes contacts 503, groups, and the like, and a click contact 503 is simulated, as shown in fig. 7, a session window 700 with "wealth" may be opened.
And a substep S22 of inputting the second communication message in the message processing interface.
Different communication applications may have different modes of inputting different types of messages, and the embodiment of the invention can be adapted to the communication applications and input the second communication messages into the communication applications in the message processing interface according to the input mode corresponding to the types of the second communication messages.
In one embodiment, the conversation window has a history message window for displaying history messages sent and/or received by the user and an input window for inputting messages to be sent.
In this embodiment, if the second communication message is information that can be written into the input window, such as text information and emotion information, the second communication message may be written into the input window of the conversation window.
In another embodiment, the conversation window has a record control for invoking a sound card device, such as a microphone, to record audio data.
In this embodiment, if the second communication message is audio data, the second communication message may replace the audio data by simulating a long-time pressing of the recording control and recording the audio data.
Of course, the above message input mode is only an example, and when implementing the embodiment of the present invention, other message input modes may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above message input method, a person skilled in the art may also use other message input methods according to actual needs, and the embodiment of the present invention is not limited thereto.
And a substep S23 of simulating a user operation in the message processing interface to reply to the second communication message.
Different communication applications may have different modes for sending different types of messages, and the embodiment of the invention can be adapted to the communication applications, simulate corresponding user operation in the message processing interface according to the sending mode corresponding to the type of the second communication message, and instruct the communication applications to send the second communication message.
In one embodiment, the input window has a corresponding sending control, and the position of the sending control can be located, and the click event is simulated at the position, namely the click sending control is simulated, so as to send the second communication message in the input window.
For example, as shown in fig. 8, a second communication message "good, i'm will go to buy a point on the internet" is written into the input box 701 of the conversation window, and then a click event is simulated at the position of the sending control 702, a click is simulated on the sending control 702, a communication message "is no cat food is sent in the input box 701? ".
As shown in fig. 9, the sent communication message "good, i.e., i'm waiting to buy a point on the network" is written into the history message window.
In another embodiment, the duration of the second communication message is obtained, and when the duration is reached, the simulation of long-time pressing of the recording control is stopped, so that the second communication message replacing the audio data is sent.
In this embodiment, it is ensured that the duration of the second communication message is consistent with the duration of the recorded audio data, and the communication application can correctly perform processing such as drawing of interface elements based on the duration.
Of course, the above-mentioned message sending method is only an example, and when implementing the embodiment of the present invention, other message sending methods may be set according to actual situations, which is not limited in this embodiment of the present invention. In addition, besides the above-mentioned message sending method, a person skilled in the art may also use other message sending methods according to actual needs, and the embodiment of the present invention is not limited to this.
It should be noted that the operations of hooking message processing interface (including hooking search interface, inputting information of communication object, triggering search operation, simulating clicking search result), writing second communication message, sending second communication message, etc. (i.e. substep S21 (including substep S211-substep S214), substep S22, substep S23, etc.) are usually performed in the background of the operating system, and are generally invisible to the user and still in the lock screen interface currently.
Of course, if the second communication message is successfully sent, the corresponding prompt message may be generated to prompt the user that the sending is successful, and the user may display the session window after the second communication message is successfully sent by clicking the prompt message.
For example, as shown in fig. 4, if the user inputs the second communication message in the reply window 300 and clicks the "send" control, at this time, the user enters the background to send the second communication message, and the processing procedures in fig. 5 to 9 are invisible, as shown in fig. 10, the mobile terminal keeps displaying the screen locking interface, cancels displaying the first communication message, and cancels loading the reply window.
When the embodiment of the invention is in the screen locking state, the first communication message received by the communication application is displayed in the notification bar, the reply window independent from the communication application is loaded, the second communication message input by the user is received in the reply window, and the communication application is called to send the second communication message so as to reply to the first communication message, so that the message is replied in the screen locking state, the user does not need to perform unlocking reply, especially the message is discontinuously received, the unlocking frequency is greatly reduced, the simplicity of message reply is improved, meanwhile, the hook operation is performed in the background of the operating system, the user is invisible, the influence on the front-end operation is reduced, and the user experience is ensured.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 11, a block diagram of a reply device of a communication message according to an embodiment of the present invention is shown, which may specifically include the following modules:
the first communication message display module 1101 is configured to display a first communication message received by the communication application in the notification bar when the screen is locked;
a reply window loading module 1102, configured to load a reply window independent from the messaging application on the first messaging message;
a second communication message receiving module 1103, configured to receive, in the reply window, a second communication message input by the user;
a second communication message sending module 1104, configured to invoke the communication application to send the second communication message, so as to reply to the first communication message.
In one embodiment of the present invention, the first communication message display module 1101 includes:
the message receiving submodule is used for acquiring the message received by the application in the notification bar;
the message attribute confirming submodule is used for confirming that the message is a first communication message if the application is a communication application and the message is a session message;
and the notification bar display submodule is used for displaying the first communication message in the notification bar.
In an embodiment of the present invention, the second communication message sending module 1104 includes:
the message processing interface hooking submodule is used for hooking the message processing interface of the communication application and receiving the first communication message;
the second communication message input submodule is used for inputting the second communication message in the message processing interface;
and the user operation simulation submodule is used for simulating user operation in the message processing interface so as to reply the second communication message.
In an embodiment of the present invention, the message processing interface hooking module includes:
the search interface hooking unit is used for hooking a search interface in the communication application, and the search interface is provided with a search frame;
an object information input unit for inputting information of a communication object which transmits the first communication message into the search box;
the search operation triggering unit is used for triggering search operation, searching in the target application by taking the information in the search box as a keyword, and obtaining a search result;
and the search result simulation click unit is used for simulating and clicking the search result so as to open a conversation window for receiving the first communication message and serve as a message processing interface.
In one embodiment of the present invention, the search interface hooking unit includes:
the communication application loading subunit is used for loading the communication application into a specified virtual machine;
and the function hooking unit is used for hooking the function corresponding to the search interface in the virtual machine.
In one example of embodiment of the present invention, the conversation window has an input window or a recording control;
the second communication message input sub-module includes:
an input window input unit for writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
the recording control simulation long-time pressing unit is used for simulating long-time pressing of the recording control and recording audio data;
an audio data replacing unit for replacing the audio data with the second communication message.
In one example of embodiment of the present invention, the input window has a corresponding send control;
the user operation simulation submodule comprises:
the sending control simulation clicking unit is used for simulating and clicking the sending control so as to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
a duration obtaining unit, configured to obtain a duration of the second communication message;
and the long-press stopping simulation unit is used for stopping simulating long-press of the recording control when the time length is reached so as to send the second communication message replacing the audio data.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
As shown in fig. 12, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 12 is a block diagram showing a partial structure of a cellular phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 12, the cellular phone includes: radio Frequency (RF) circuit 1210, memory 1220, input unit 1230, display unit 1240, sensor 1250, audio circuit 1260, wireless fidelity (WiFi) module 1270, processor 1280, and power supply 1290. Those skilled in the art will appreciate that the handset configuration shown in fig. 12 is not intended to be limiting and 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 phone in detail with reference to fig. 12:
the RF circuit 1210 is configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1280; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 1210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1210 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1220 may be used to store software programs and modules, and the processor 1280 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1220. The memory 1220 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 for 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 1220 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 input unit 1230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1230 may include a touch panel 1231 and other input devices 1232. The touch panel 1231, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1231 using any suitable object or accessory such as a finger, a stylus, etc.) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1231 may include two portions, 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, and sends the touch point coordinates to the processor 1280, and can receive and execute commands sent by the processor 1280. In addition, the touch panel 1231 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1230 may include other input devices 1232 in addition to the touch panel 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1240 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 1240 may include a Display panel 1241, and optionally, the Display panel 1241 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 1231 can overlay display panel 1241, and when touch panel 1231 detects a touch operation thereon or nearby, the touch panel 1231 can transmit the touch operation to processor 1280 to determine the type of the touch event, and then processor 1280 can provide a corresponding visual output on display panel 1241 according to the type of the touch event. Although in fig. 12, the touch panel 1231 and the display panel 1241 are implemented as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1231 and the display panel 1241 may be integrated to implement the input and output functions of the mobile phone.
The cell phone may also include at least one sensor 1250, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1241 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1241 and/or the backlight when the mobile phone moves 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1260, speaker 1261, and microphone 1262 can provide an audio interface between a user and a cell phone. The audio circuit 1260 can transmit the received electrical signal converted from the audio data to the speaker 1261, and the audio signal is converted into a sound signal by the speaker 1261 and output; on the other hand, the microphone 1262 converts the collected sound signals into electrical signals, which are received by the audio circuit 1260 and converted into audio data, which are processed by the audio data output processor 1280, and then passed through the RF circuit 1210 to be transmitted to, for example, another cellular phone, or output to the memory 1220 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1270, and provides wireless broadband internet access for the user. Although fig. 12 shows the WiFi module 1270, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1280 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby performing overall monitoring of the mobile phone. Optionally, processor 1280 may include one or more processing units; preferably, the processor 1280 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 is to be appreciated that the modem processor described above may not be integrated into the processor 1280.
The handset also includes a power supply 1290 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 1280 via a power management system, so that the power management system may manage the charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present invention, the processor 1280 included in the terminal further has the following functions:
when the mobile terminal is in a screen locking state, displaying a first communication message received by the communication application in a notification bar;
loading a reply window independent of the messaging application on the first messaging message;
receiving a second communication message input by a user in the reply window;
and calling the communication application to send the second communication message so as to reply the first communication message.
Optionally, the processor 1280 included in the terminal further has the following functions:
acquiring a message received by an application in a notification bar;
if the application is a communication application and the message is a session message, determining that the message is a first communication message;
and displaying the first communication message in a notification bar.
Optionally, the processor 1280 included in the terminal further has the following functions:
hooking a message processing interface of the communication application and receiving the first communication message;
inputting the second communication message in the message processing interface;
and simulating user operation in the message processing interface to reply the second communication message.
Optionally, the processor 1280 included in the terminal further has the following functions:
hooking a search interface in the communication application, wherein the search interface is provided with a search box;
inputting the information of the communication object for sending the first communication message into the search box;
triggering search operation, and searching in the target application by taking the information in the search box as a keyword to obtain a search result;
and simulating to click the search result to open a conversation window for receiving the first communication message, wherein the conversation window is used as a message processing interface.
Optionally, the processor 1280 included in the terminal further has the following functions:
loading the communication application into a specified virtual machine;
and hooking a function corresponding to the search interface in the virtual machine.
Optionally, the conversation window has an input window or a recording control; the processor 1280 included in the terminal also has the following functions:
writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
simulating long-time pressing of the recording control and recording audio data;
replacing the audio data with the second communication message.
Optionally, the input window has a corresponding sending control; the processor 1280 included in the terminal also has the following functions:
simulating and clicking the sending control to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
acquiring the duration of the second communication message;
and when the time length is reached, stopping simulating long-time pressing of the recording control so as to send the second communication message replacing the audio data.
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 embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. 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 invention 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.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the mobile terminal provided by the present invention has been described in detail, for those skilled in the art, the idea of the embodiment of the present invention may be changed in the specific implementation and application scope, and in summary, the content of the present description should not be construed as limiting the present invention.

Claims (9)

1. A reply method of a communication message comprises the following steps:
when the mobile terminal is in a screen locking state, displaying a first communication message received by the communication application in a notification bar;
loading a reply window independent of the messaging application on the first messaging message;
receiving a second communication message input by a user in the reply window;
hooking a search interface in the communication application, wherein the search interface is provided with a search box;
inputting the information of the communication object for sending the first communication message into the search box;
triggering search operation, and searching in the communication application by taking the information in the search box as a keyword to obtain a search result;
simulating to click the search result to open a conversation window for receiving the first communication message, wherein the conversation window is used as a message processing interface;
inputting the second communication message in the message processing interface;
simulating user operation in the message processing interface to reply the second communication message;
wherein the conversation window is provided with an input window or a recording control; the inputting the second communication message in the message processing interface includes:
writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
simulating long-time pressing of the recording control and recording audio data;
replacing the audio data with the second communication message.
2. The method of claim 1, wherein displaying the first communication message received by the communication application in the notification bar comprises:
acquiring a message received by an application in a notification bar;
if the application is a communication application and the message is a session message, determining that the message is a first communication message;
and displaying the first communication message in a notification bar.
3. The method of claim 1, wherein the step of hooking the search interface in the communication application comprises:
loading the communication application into a specified virtual machine;
and hooking a function corresponding to the search interface in the virtual machine.
4. The method of claim 1, wherein the input window has a corresponding send control;
the step of simulating user operation in the message processing interface to reply the second communication message comprises:
simulating and clicking the sending control to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
acquiring the duration of the second communication message;
and when the time length is reached, stopping simulating long-time pressing of the recording control so as to send the second communication message replacing the audio data.
5. A reply device for a communication message, comprising:
the first communication message display module is used for displaying a first communication message received by the communication application in the notification bar when the screen is locked;
a reply window loading module, configured to load a reply window independent from the communication application on the first communication message;
the second communication message receiving module is used for receiving a second communication message input by a user in the reply window;
the second communication message sending module comprises:
a message processing interface hooking sub-module comprising:
the search interface hooking unit is used for hooking a search interface in the communication application, and the search interface is provided with a search frame;
an object information input unit for inputting information of a communication object which transmits the first communication message into the search box;
the search operation triggering unit is used for triggering search operation, searching in the communication application by taking the information in the search box as a keyword, and obtaining a search result;
the search result simulation click unit is used for simulating and clicking the search result so as to open a conversation window for receiving the first communication message and serve as a message processing interface;
the second communication message input submodule is used for inputting the second communication message in the message processing interface;
the user operation simulation submodule is used for simulating user operation in the message processing interface so as to reply the second communication message;
wherein the conversation window is provided with an input window or a recording control;
the second communication message input sub-module includes:
an input window input unit for writing the second communication message into the input window;
alternatively, the first and second electrodes may be,
the recording control simulation long-time pressing unit is used for simulating long-time pressing of the recording control and recording audio data;
an audio data replacing unit for replacing the audio data with the second communication message.
6. The apparatus of claim 5, wherein the first communication message display module comprises:
the message receiving submodule is used for acquiring the message received by the application in the notification bar;
the message attribute confirming submodule is used for confirming that the message is a first communication message if the application is a communication application and the message is a session message;
and the notification bar display submodule is used for displaying the first communication message in the notification bar.
7. The apparatus of claim 5, wherein the search interface hooking unit comprises:
the communication application loading subunit is used for loading the communication application into a specified virtual machine;
and the function hooking unit is used for hooking the function corresponding to the search interface in the virtual machine.
8. The apparatus of claim 5, wherein the input window has a corresponding send control;
the user operation simulation submodule comprises:
the sending control simulation clicking unit is used for simulating and clicking the sending control so as to send the second communication message in the input window;
alternatively, the first and second electrodes may be,
a duration obtaining unit, configured to obtain a duration of the second communication message;
and the long-press stopping simulation unit is used for stopping simulating long-press of the recording control when the time length is reached so as to send the second communication message replacing the audio data.
9. A mobile terminal comprising a processor and a memory;
the memory is used for storing a program supporting execution of a reply method of the communication message according to any one of claims 1 to 5;
the processor is configured to execute programs stored in the memory.
CN201710400370.8A 2017-05-31 2017-05-31 Communication message reply method and device and mobile terminal Active CN107317919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710400370.8A CN107317919B (en) 2017-05-31 2017-05-31 Communication message reply method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710400370.8A CN107317919B (en) 2017-05-31 2017-05-31 Communication message reply method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107317919A CN107317919A (en) 2017-11-03
CN107317919B true CN107317919B (en) 2020-09-15

Family

ID=60183955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710400370.8A Active CN107317919B (en) 2017-05-31 2017-05-31 Communication message reply method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107317919B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169431A (en) * 2010-02-26 2011-08-31 国际商业机器公司 Method and device for generation of optimized user interface
CN104735257A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Quick message reply method and system
CN105930086A (en) * 2016-05-04 2016-09-07 北京奇虎科技有限公司 Content information display method and device under terminal standby state
CN105988795A (en) * 2015-02-11 2016-10-05 腾讯科技(深圳)有限公司 Message processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169431A (en) * 2010-02-26 2011-08-31 国际商业机器公司 Method and device for generation of optimized user interface
CN105988795A (en) * 2015-02-11 2016-10-05 腾讯科技(深圳)有限公司 Message processing method and device
CN104735257A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Quick message reply method and system
CN105930086A (en) * 2016-05-04 2016-09-07 北京奇虎科技有限公司 Content information display method and device under terminal standby state

Also Published As

Publication number Publication date
CN107317919A (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN106851010B (en) Interference processing method and terminal for target application
CN108845853B (en) Application program starting method and mobile terminal
CN108024019B (en) Message display method and device
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
CN104852885B (en) Method, device and system for verifying verification code
CN107329985B (en) Page collection method and device and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN109194818B (en) Information processing method and terminal
CN106303070B (en) notification message prompting method and device and mobile terminal
CN111124221B (en) File sending method and terminal equipment
US11658932B2 (en) Message sending method and terminal device
CN107423794B (en) Code scanning method and device for graphic coding and mobile terminal
CN109471690B (en) Message display method and terminal equipment
WO2018120905A1 (en) Message reminding method for terminal, and terminal
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN112148579B (en) User interface testing method and device
WO2018214748A1 (en) Method and apparatus for displaying application interface, terminal and storage medium
EP4020194A1 (en) Display control method and terminal device
CN108479066A (en) False-touch prevention method, mobile terminal and computer readable storage medium
CN103279272B (en) A kind of method and device starting application program in an electronic
US11582179B2 (en) Information search method, terminal, network device, and system
CN107765954B (en) Application icon updating method, mobile terminal and server
US11327639B2 (en) Split view exiting method, split view exiting device, and electronic device
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
CN109873901A (en) A kind of screenshot method for managing resource and terminal, 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