CN106708895B - Method and device for displaying messages in mobile social application - Google Patents

Method and device for displaying messages in mobile social application Download PDF

Info

Publication number
CN106708895B
CN106708895B CN201510791558.0A CN201510791558A CN106708895B CN 106708895 B CN106708895 B CN 106708895B CN 201510791558 A CN201510791558 A CN 201510791558A CN 106708895 B CN106708895 B CN 106708895B
Authority
CN
China
Prior art keywords
page
displayed
identification
preset
social 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.)
Active
Application number
CN201510791558.0A
Other languages
Chinese (zh)
Other versions
CN106708895A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510791558.0A priority Critical patent/CN106708895B/en
Publication of CN106708895A publication Critical patent/CN106708895A/en
Application granted granted Critical
Publication of CN106708895B publication Critical patent/CN106708895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a method and a device for displaying messages in a mobile social application, wherein the method comprises the following steps: receiving a message from a contact; displaying an identification icon of a contact in a preset area in a page currently displayed by the mobile social application; detecting a preset operation on an identification icon displayed in a preset area; when the preset operation is detected, displaying a conversation page of the contact corresponding to the operated identification icon; and displaying the message from the contact corresponding to the operated identification icon in the conversation page. According to the method and the device for displaying the message in the mobile social application, provided by the invention, when the user operates the identification icon, the user can immediately enter the conversation page of the contact corresponding to the operated identification icon to display the message. The user only needs to operate the identification icon displayed in the currently displayed page of the mobile social application, and can enter the conversation page to check the message in time without passing through the conversation list page, so that the operation steps are simplified, and the operation convenience is improved.

Description

Method and device for displaying messages in mobile social application
Technical Field
The invention relates to the technical field of social networks, in particular to a method and a device for displaying messages in mobile social applications.
Background
The mobile social application is an application program based on a social network, and with the development of social network technology, the work and life of people can not be separated from the mobile social application, and the people can conveniently send messages to acquaintances or strangers and receive messages sent by the other party through the mobile social application by installing the mobile social application on the terminal. The message may include at least one of text, pictures, audio, or video.
An important function of mobile social applications is the reception and presentation of messages, which typically have a special conversation list page and a special portal into the conversation list page through which the conversation page with the contacts can be accessed. Referring to FIG. 1, a mobile social application defaults to a session list page that provides a user's session with each contact when turned on. The user clicks on a contact's conversation, say A, and enters a conversation page with contact A, where the mobile social application presents messages from the corresponding contact. The mobile social application in fig. 1 has a toolbar 102 at the bottom, and includes an entry 104 into the conversation list page, and the user can enter the conversation list page through the entry 104 if the toolbar 102 exists in other pages.
However, after receiving the message, the mobile social application needs the user to enter the session list page through the entrance first, and then select the session from the session list page to enter the corresponding session page to display the message.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for presenting a message in a mobile social application, aiming at the problem that the operation of presenting a message in a mobile social application is cumbersome at present.
A method of presenting messages in a mobile social application, the method comprising:
receiving a message from a contact;
displaying the identification icon of the contact in a preset area in a page currently displayed by the mobile social application;
detecting a preset operation on the identification icon displayed in the preset area;
when the preset operation is detected, displaying a conversation page of the contact corresponding to the operated identification icon;
and displaying the message from the contact corresponding to the operated identification icon in the conversation page.
An apparatus for presenting messages in a mobile social application, the apparatus comprising:
the message receiving module is used for receiving messages from the contacts;
the icon display module is used for displaying the identification icon of the contact in a preset area in a page currently displayed by the mobile social application;
the operation detection module is used for detecting the preset operation of the identification icon displayed in the preset area;
the page display module is used for displaying a conversation page of the contact corresponding to the operated identification icon when the preset operation is detected;
and the message display module is used for displaying the message from the contact corresponding to the operated identification icon in the conversation page.
According to the method and the device for displaying the messages in the mobile social application, after the messages from the contacts are received, the corresponding identification icons can be displayed in the current displayed page of the mobile social application, so that the messages from each contact can be independently notified. When the user operates the identification icon, the conversation page display message of the contact corresponding to the operated identification icon can be immediately entered. The user can directly enter the corresponding session page to check the message in time without passing through the session list page only by presetting the identification icon displayed in the currently displayed page of the mobile social application, so that the operation steps are simplified, the efficiency from notification to display of the message after the message is received is improved, and the operation convenience is improved.
Drawings
FIG. 1 is a schematic diagram of a session list page currently accessed through a mobile social application-specific portal;
FIG. 2 is a diagram of an application environment of a social network based message interaction system in one embodiment;
FIG. 3 is a schematic structural diagram of a mobile terminal for implementing the method for presenting messages in a mobile social application in one embodiment;
FIG. 4 is a flow diagram that illustrates a method for presenting messages in a mobile social application, in one embodiment;
FIG. 5 is a diagram that illustrates the display of an identification icon for a contact in a preset area of a page currently displayed by a mobile social application, under an embodiment;
FIG. 6 is a diagram illustrating a conversation page displaying a contact corresponding to an operated identification icon when a preset operation is detected in one embodiment;
FIG. 7 is a diagram illustrating re-entry into a conversation list page after a conversation page for a contact corresponding to an operated identification icon is displayed, in one embodiment;
FIG. 8 is a diagram of a UGC reading page in one embodiment;
fig. 9 is a diagram illustrating a conversation page of a contact corresponding to an operated identification icon when a preset operation on the identification icon displayed in a preset region of the UGC reading page is detected in one embodiment;
FIG. 10 is a diagram illustrating a return from a session page to a UGC read page in one embodiment;
FIG. 11 is a diagram that illustrates switching from one session page to another session page in one embodiment;
FIG. 12 is a flowchart illustrating the steps of displaying contact identification icons in a predetermined area of a page currently displayed by the mobile social application in one embodiment;
FIG. 13 is a block diagram that illustrates the architecture of a device that shows messages in a mobile social application, in one embodiment;
FIG. 14 is a block diagram showing an apparatus for presenting a message in a mobile social application according to another embodiment;
FIG. 15 is a block diagram showing an apparatus for displaying messages in a mobile social application in a further embodiment;
FIG. 16 is a block diagram showing the structure of an icon display module in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in FIG. 2, in one embodiment, a social network based message interaction system is provided and includes a mobile terminal 202 and a server 204. Where the mobile terminal 202 comprises at least one of a smartphone, a tablet, a Personal Digital Assistant (PDA), and a laptop portable computer, the server 204 may be a standalone physical server or a cluster of physical servers. The mobile terminal 202 runs a mobile social application suitable for the mobile terminal 202, and the mobile terminal 202 sends or receives messages through the mobile social application. The server 204 provides a mobile social application with a message relay service, and can send a message sent by one mobile terminal 202a to a specified other terminal 202 b. The server 204 also provides data services for the normal operation of mobile social applications.
As shown in fig. 3, in one embodiment, the mobile terminal 202 includes a processor, a non-volatile storage medium, an internal memory, a network interface, and a touch screen connected by a system bus. Wherein the processor has computing functionality and functionality to control the operation of the mobile terminal 202, the processor being configured to perform a method of presenting messages in a mobile social application. The non-volatile storage medium includes at least one of a magnetic storage medium, an optical storage medium, and a flash memory storage medium, and stores an operating system and a device for presenting messages in the mobile social application. The device for displaying the messages in the mobile social application is used for realizing a method for displaying the messages in the mobile social application. The network interface is for connecting to the server 204 for receiving messages from the network or sending messages to the network. The touch screen comprises at least one of a liquid crystal touch screen, a flexible touch screen and an electronic ink touch screen, and the touch screen comprises a display screen and a touch layer.
As shown in fig. 4, in an embodiment, a method for presenting messages in a mobile social application is provided, and this embodiment is illustrated by applying the method to the mobile terminal 202a in fig. 2. The method specifically comprises the following steps:
at step 402, a message from a contact is received.
Specifically, a mobile terminal used by a user has a mobile social application installed thereon, through which messages from one or more contacts are received. For convenience of description, the party receiving the message is called a user, and the contact from which the message originates is the other user. The mobile social application refers to a social application which can be installed on a mobile terminal to run, and the social application is an application for network social interaction based on a social network. The mobile social application generally has a contact search function and an instant messaging function, and may further have a User Generated Content (UGC) sharing function and a UGC comment function. The message may include at least one of text, a picture, audio, video, and a link address.
The contact is a session object for a user to perform a session, and may be a network social friend, a group member, an enterprise account, or a stranger, where the stranger is a user who has not established a network social relationship with the current user. A conversation is established between the user and the contact person, and the message corresponds to the conversation. Messages are initiated in the corresponding session and need to be presented in the corresponding session page.
The session may be a one-to-one double session or a group session. A two-person session may originate from any one of the user and the contact, a group session may originate from any group member in the corresponding group in which both the user and the contact are present. The group may be an instant messaging group, a temporarily established discussion group, or a discussion group established based on an existing group, etc.
Step 404, displaying an identification icon of the contact in a preset area in a page currently displayed by the mobile social application.
Specifically, the currently displayed page of the mobile social application is a page that is being displayed by the mobile social application when the mobile social application receives the message, and the page may be various pages that can be displayed after the mobile social application logs in, such as a session page, an information browsing page, or a setup page. In one embodiment, a layer with a preset size can be drawn in a preset area in a page currently displayed by the mobile social application, and identification icons of contacts are displayed in the layer.
The preset area may be a blank area specifically set in each page of the mobile social application, i.e., an identification icon specifically used to display a contact to which the received message belongs. The preset area may also be an area with a composite function in each page of the mobile social application, for example, the preset area may be used to display a pushed advertisement when no new message is received, and to display an identification icon of a contact to which the received message belongs when the message is received. The location of the preset area may be user-defined.
The positions of the preset areas in different pages can be the same or different. When the positions are the same, the positions of the preset areas in the pages are consistent, and the pages can be switched immediately without causing difficulty in operation; when the positions are different, the display device can be arranged in a differentiated mode according to the functions and the layout of each page, and therefore the positions of the icons of the display device are more reasonable.
The identification icon of the contact is an image with a certain identification property and a predefined specification, and the identification icon is not required to be capable of uniquely identifying the corresponding contact. The identification icon of the contact person may be an avatar icon, specifically, an avatar icon set by the contact person, a group avatar icon of a group to which the received message belongs to the session, or an avatar icon customized by the user for the contact person. The head portrait icon can be taken from the head portrait of the real portrait photo, can also be a cartoon head portrait, and can also be composed of at least one of any shape, pattern and color. The contact identification icon may also be an icon that is automatically generated based on the information of the contact, such as an icon that includes the name or a portion of the name of the contact may be generated as the contact identification icon.
In one embodiment, if the identification icons are already displayed in a preset area in the page currently displayed by the mobile social application, the identification icons may be arranged in descending order of message reception time. The identification icon of the contact to which the particular newly received message belongs may be displayed at the forefront of a group of identification icons.
For example, referring to fig. 5, if the currently displayed page of the mobile social application is a session list page, an identification icon 504 of a contact is displayed in the preset area 502. The preset area 502 is different from the system top notification bar 506, only the application icon of the mobile social application can be displayed in the system top notification bar 506, the interface of the operating system is called, and the application icon displayed in the system top notification bar 506 is not operable, and the details need to be viewed from the drop-down notification bar.
In one embodiment, step 404 includes: judging whether to start independent message notification; if yes, executing step 404 and the subsequent steps, and displaying a new message prompt on a session list page; and if not, only displaying a new message prompt on the conversation list page. In the embodiment, the user can customize the on and off of the independent message notification function, so that the new message notification is more flexible. The session list page is a message list page, and messages in the session list page are organized according to sessions.
In step 406, a preset operation on the identification icon displayed in the preset area is detected.
Specifically, the preset operation refers to a predefined operation that acts on the identification icon and is used to trigger entry into a session page of a contact corresponding to the operated identification icon. The preset operation may be any one of an operation of touching the identification icon at a single point, an operation of clicking the identification icon with a cursor, an operation of touching the identification icon at a single point a plurality of times continuously, and an operation of touching and holding the identification icon for a preset time period. The preset operation may be user-defined.
In one embodiment, a sliding operation on a preset area may be detected, and when the sliding operation is detected, an identification icon displayed in the preset area is switched. For example, if the predetermined area can accommodate only a predetermined number of identification icons, when the sliding operation is detected, a part of the identification icons may be hidden and identification icons other than the predetermined number of identification icons may be displayed. For example, the identification area may be divided into a plurality of identification icon groups according to the number of identification icons that can be accommodated in the preset area, and the switching may be performed between different identification icon groups when the sliding operation is detected.
And step 408, when the preset operation is detected, displaying a conversation page of the contact corresponding to the operated identification icon.
Specifically, when the mobile terminal detects the preset operation, the mobile terminal directly enters a session page with the corresponding contact. The session represented by the session page is a session between the user and the contact corresponding to the operated identification icon. The operated identification icon refers to an identification icon on which the detected preset operation acts.
In one embodiment, when a preset operation is detected, the operated identification icon is deleted, and the remaining identification icons are displayed in a preset area of the conversation page displayed when the preset operation is detected.
For example, when the user touches an identification icon 504 on the conversation list page as shown in fig. 5, the mobile social application will switch directly from the conversation list page to the conversation page as shown in fig. 6, which is the conversation page of contact a corresponding to the operated identification icon 504. And the identification icon 504 is deleted after being clicked, and the identification icons of the remaining contacts B to F are displayed in a preset area 602 of the conversation page with the contact a.
And step 410, displaying the message from the contact corresponding to the operated identification icon in the conversation page.
Specifically, the mobile terminal presents the newly received message in the conversation page, and displays other icons, from which the operated identification icon is deleted, in a preset area of the conversation page. The mobile terminal may also obtain a history of messages for display in a conversation page with the newly received message. For example, referring to FIG. 6, in the meeting contact A's session page, a text message "Hi!sent by contact A may be displayed! ".
In one embodiment, messages may be presented differently in the conversation page depending on the type of message. For example, if text is included in the message, the text content may be presented in a user-defined text form, such as font, font size, and text color. If audio is included in the message, the audio can be played automatically or triggered by the user, and the graphic representation of the audio being played is displayed when the audio is played, and the graphic representation of the audio being played is stopped when the audio is played. If the message includes a video, the video screenshot may be presented. If the message comprises the link address, the link address and/or a preview image of the resource corresponding to the link address can be displayed.
According to the method for displaying the messages in the mobile social application, after the messages from the contacts are received, the corresponding identification icons can be displayed in the currently displayed page of the mobile social application, so that the messages from each contact can be independently notified. When the user operates the identification icon, the conversation page display message of the contact corresponding to the operated identification icon can be immediately entered. And when messages from a plurality of contacts are received, the corresponding conversation page can be immediately switched to display the messages by operating any identification icon displayed in the currently displayed page. The user only needs to preset the identification icon displayed in the currently displayed page of the mobile social application, and can directly enter the corresponding session page to view the message in time without passing through the session list page, so that the operation steps are simplified, the efficiency from notification to display after the message is received is improved, and the operation convenience is improved.
In one embodiment, the identification icon displayed in the preset area is associated with a new message prompt in the conversation list page. Specifically, after the identification icon in the preset area is subjected to the preset operation, the operated identification icon is deleted from the preset area, and the new message prompt from the contact corresponding to the operated identification icon in the session list page is also cleared. Correspondingly, after the new message prompt in the session list page is cleared, the identification icon of the contact in the preset area, from which the new message prompt is cleared, is also deleted.
For example, in the session list page shown in fig. 5, a new message prompt "+ 1" is marked at the upper right corner of the icon for the head portrait of contact a, which indicates that the number of messages newly received from contact a is 1. After clicking on the identification icon 504 in the preset area 502, the user enters the conversation page with contact a as shown in fig. 6. In a preset area in the session page, the identification icon of contact a is deleted. At this point when the user re-enters the conversation list page, the mobile social application displays the conversation list page as shown in FIG. 7 with the new message prompt at the top right corner of the icon for contact A cleared.
In one embodiment, the method for displaying a message in a mobile social application further includes a step of returning to a previous page, and specifically includes the following steps: when the preset operation is detected, storing a currently displayed page of the mobile social application; after the conversation page is displayed, a return instruction triggered when the conversation page is displayed is detected, and the stored page is displayed according to the return instruction.
In particular, the structure and the page order of the pages in the mobile social application are fixed, which facilitates quick return to the main page of the mobile social application, so that if a return instruction is triggered in a conversation page, the return is usually to the upper page of the conversation page, that is, the conversation list page. The inventors contemplate that the user, after reading a new message, will return to the page that was being displayed when the message was received, as is more likely desired. Therefore, when the preset operation is detected, the currently displayed page of the mobile social application is stored. If the return instruction is detected when the session page is displayed, the stored page is returned according to the return instruction, so that the requirements of the user can be met better. The return instruction can be triggered by a physical key used for returning on the mobile terminal, or by the operation of a control or a link displayed in the conversation page and used for representing the return.
In one embodiment, the method further comprises: recording a source of the access session page, and if the source is accessed to the session page through the preset operation of the identification icon, displaying the stored page according to the return instruction when the return instruction is detected; and if the source does not enter the conversation page through the preset operation of the identification icon, displaying the upper-level page of the conversation page according to the return instruction and the fixed page return sequence of the mobile social application when the return instruction is detected.
For example, if the user enters the UGC reading page shown in fig. 8 through the UGC list page, the identification icon is displayed in the preset area 802 of the UGC reading page. After the user clicks the identification icon 804, the reading page shown in fig. 8 is stored, the mobile social application enters the conversation page with the contact E shown in fig. 9, and the identification icon of the contact E in the preset area in the conversation page is deleted at this time. When the session page with contact E is displayed, if the user presses the return key on the mobile terminal, the mobile social application returns to the previously stored reading page, as shown in fig. 10, the user may continue to view the previously interrupted UGC reading page. However, if the user enters the session page through the drop-down notification bar, the mobile social application will return to the session list page when the return key on the mobile terminal is pressed.
For another example, if the user touches the identification icon 902 in the page of the conversation with contact E as shown in fig. 9, the page of the conversation with contact C as shown in fig. 11 is entered. If the user presses the return key on the mobile terminal at this time, the conversation page with the contact person E is returned.
In one embodiment, the currently displayed page is a session page; the method for displaying the message in the mobile social application further comprises the following steps: allocating an independent thread for each conversation; and when the preset operation is detected, blocking the thread of the current ongoing conversation, and activating the thread of the conversation of the contact corresponding to the operated identification icon. And when the return instruction is detected, blocking a thread of a conversation of the contact corresponding to the operated identification icon, and activating the thread blocked when the preset operation is detected.
Specifically, the mobile terminal allocates an independent thread to each conversation, blocks the thread of the ongoing conversation when detecting a preset operation, stores the conversation page being displayed, and activates the thread of the conversation of the contact corresponding to the operated identification icon. And when a return instruction is detected, blocking the currently displayed conversation page and activating a thread of the conversation corresponding to the stored conversation page. Therefore, each thread is blocked or activated to switch among a plurality of sessions, so that the sessions can be not influenced mutually.
As shown in fig. 12, in an embodiment, step 404 specifically includes the following steps:
step 1202, obtaining the number of displayed identification icons in a preset area in a page currently displayed by the mobile social application.
Specifically, the number of displayed identification icons refers to the number of identification icons already displayed in the preset area, such as 6 in the preset area 502 in fig. 5 and 5 in the preset area 602 in fig. 6.
Step 1204, comparing the number of displayed identification icons with a preset number; the preset number is matched with the size of the preset area. If the number of displayed identification icons is less than the preset number, go to step 1206; if the number of displayed identification icons is greater than or equal to the preset number, step 1208 is executed.
Specifically, the preset number is the number of identification icons that can be accommodated in the preset area. The preset number is matched with the size of the preset area, and particularly, on the premise that the size of the identification icon is fixed, the larger the size of the preset area is, the larger the number of the preset number is. The preset number may be determined according to the size of the preset area and the size of the identification icon. For the preset regions of fig. 5 to 11, the preset number is 6. By comparing the number of displayed identification icons with the preset number, it can be determined whether the preset area can also accommodate the identification icons.
And step 1206, displaying the identification icon of the contact in the preset area.
Specifically, when the number of displayed identification icons is smaller than the preset number, it is indicated that the preset area can also accommodate new identification icons, and then the identification icons of the contacts can be directly displayed in the preset area. Specifically, the identification icons may be arranged in descending order according to the message receiving time, or the identification icon of the contact corresponding to the latest received message may be directly placed at the head of the identification icon sequence in the preset area. In one embodiment, if the identification icon of the contact already exists in the preset area, the identification icon of the contact is placed at the head of the identification icon sequence in the preset area.
And step 1208, deleting the identification icon with the earliest message receiving time in the preset area, and displaying the identification icon of the contact in the preset area.
Specifically, the message receiving time corresponding to each identification icon may be recorded, so that when it is determined that the number of displayed identification icons is greater than or equal to the preset number, the message receiving time of each identification icon is acquired and compared, and the identification icon whose corresponding message receiving time is the earliest is deleted. In one embodiment, if the identification icons in the preset area are arranged in descending order according to the message receiving time, the identification icon at the last position of the identification icon sequence in the preset area can be directly deleted, and the identification icon of the contact person is displayed at the first position of the identification icon sequence in the preset area.
In one embodiment, the mobile terminal may further add the identification icon with the earliest message receiving time in the preset area to the last-in first-out identification icon queue when the number of the displayed identification icons is greater than or equal to the preset number. And when the preset operation is detected, deleting the operated identification icon from the preset area, extracting the corresponding identification icon with the latest message receiving time from the identification icon queue, and displaying the identification icon in the preset area.
In this embodiment, by comparing the number of displayed identification icons in the preset area with the preset number, it can be known whether the preset area can accommodate a new identification icon, so that the identification icons in the preset area can be dynamically managed.
As shown in fig. 13, in one embodiment, an apparatus 1300 for presenting messages in a mobile social application is provided, which has functional modules for implementing the methods for presenting messages in a mobile social application of the foregoing embodiments. The device 1300 for presenting messages in a mobile social application comprises: a message receiving module 1301, an icon display module 1302, an operation detection module 1303, a page display module 1304, and a message presentation module 1305.
A message receiving module 1301, configured to receive a message from a contact.
Specifically, a mobile social application is installed on a mobile terminal used by a user, and the message receiving module 1301 is configured to receive messages from one or more contacts through the mobile social application. For convenience of description, the party receiving the message is called a user, and the contact from which the message originates is the other user. The mobile social application refers to a social application which can be installed on a mobile terminal to run, and the social application is an application for network social interaction based on a social network. The mobile social application generally has a contact search function and an instant messaging function, and may further have a UGC (User generated content) sharing function and a UGC comment function. The message may include at least one of text, a picture, audio, video, and a link address.
The contact is a session object for a user to perform a session, and may be a network social friend, a group member, an enterprise account, or a stranger, where the stranger is a user who has not established a network social relationship with the current user. A conversation is established between the user and the contact person, and the message corresponds to the conversation. Messages are initiated in the corresponding session and need to be presented in the corresponding session page.
The session may be a one-to-one double session or a group session. A two-person session may originate from any one of the user and the contact, a group session may originate from any group member in the corresponding group in which both the user and the contact are present. The group may be an instant messaging group, a temporarily established discussion group, or a discussion group established based on an existing group, etc.
An icon display module 1302, configured to display an identification icon of a contact in a preset area in a page currently displayed by the mobile social application.
Specifically, the currently displayed page of the mobile social application is a page that is being displayed by the mobile social application when the mobile social application receives the message, and the page may be various pages that can be displayed after the mobile social application logs in, such as a session page, an information browsing page, or a setup page. In one embodiment, the icon display module 1302 may be configured to draw a layer with a preset size in a preset area of a currently displayed page of the mobile social application, and display an identification icon of a contact in the layer.
The preset area may be a blank area specifically set in each page of the mobile social application, i.e., an identification icon specifically used to display a contact to which the received message belongs. The preset area may also be an area with a composite function in each page of the mobile social application, for example, the preset area may be used to display a pushed advertisement when no new message is received, and to display an identification icon of a contact to which the received message belongs when the message is received. The location of the preset area may be user-defined.
The positions of the preset areas in different pages can be the same or different. When the positions are the same, the positions of the preset areas in the pages are consistent, and the pages can be switched immediately without causing difficulty in operation; when the positions are different, the display device can be arranged in a differentiated mode according to the functions and the layout of each page, and therefore the positions of the icons of the display device are more reasonable.
The identification icon of the contact is an image with a certain identification property and a predefined specification, and the identification icon is not required to be capable of uniquely identifying the corresponding contact. The identification icon of the contact person may be an avatar icon, specifically, an avatar icon set by the contact person, a group avatar icon of a group to which the received message belongs to the session, or an avatar icon customized by the user for the contact person. The head portrait icon can be taken from the head portrait of the real portrait photo, can also be a cartoon head portrait, and can also be composed of at least one of any shape, pattern and color. The contact identification icon may also be an icon that is automatically generated based on the information of the contact, such as an icon that includes the name or a portion of the name of the contact may be generated as the contact identification icon.
In one embodiment, the icon display module 1302 may be configured to arrange the identification icons in descending order of message receiving time if the identification icons are already displayed in a preset area in a page currently displayed by the mobile social application. The identification icon of the contact to which the particular newly received message belongs may be displayed at the forefront of a group of identification icons.
For example, referring to fig. 5, if the currently displayed page of the mobile social application is a session list page, an identification icon 504 of a contact is displayed in the preset area 502. The preset area 502 is different from the system top notification bar 506, only the application icon of the mobile social application can be displayed in the system top notification bar 506, the interface of the operating system is called, and the application icon displayed in the system top notification bar 506 is not operable, and the details need to be viewed from the drop-down notification bar.
The operation detection module 1303 is configured to detect a preset operation on an identification icon displayed in a preset area.
Specifically, the preset operation refers to a predefined operation that acts on the identification icon and is used to trigger entry into a session page of a contact corresponding to the operated identification icon. The preset operation may be any one of an operation of touching the identification icon at a single point, an operation of clicking the identification icon with a cursor, an operation of touching the identification icon at a single point a plurality of times continuously, and an operation of touching and holding the identification icon for a preset time period. The preset operation may be user-defined.
In one embodiment, the operation detection module 1303 may be configured to detect a sliding operation on the preset area, and switch the identification icon displayed in the preset area when the sliding operation is detected. For example, if the predetermined area can accommodate only a predetermined number of identification icons, when the sliding operation is detected, a part of the identification icons may be hidden and identification icons other than the predetermined number of identification icons may be displayed. For example, the identification area may be divided into a plurality of identification icon groups according to the number of identification icons that can be accommodated in the preset area, and the switching may be performed between different identification icon groups when the sliding operation is detected.
And a page display module 1304, configured to display, when the preset operation is detected, a session page of the contact corresponding to the operated identification icon.
In particular, the page display module 1304 may be configured to directly enter a conversation page with a corresponding contact when a preset operation is detected. The session represented by the session page is a session between the user and the contact corresponding to the operated identification icon. The operated identification icon refers to an identification icon on which the detected preset operation acts.
In one embodiment, the page display module 1304 may be configured to delete the operated identification icon when the preset operation is detected, and display the remaining identification icons in a preset area of the session page displayed when the preset operation is detected.
For example, when the user touches an identification icon 504 on the conversation list page as shown in fig. 5, the mobile social application will switch directly from the conversation list page to the conversation page as shown in fig. 6, which is the conversation page of contact a corresponding to the operated identification icon 504. And the identification icon 504 is deleted after being clicked, and the identification icons of the remaining contacts B to F are displayed in a preset area 602 of the conversation page with the contact a.
And a message displaying module 1305, configured to display, in the session page, a message from the contact corresponding to the operated identification icon.
Specifically, the message displaying module 1305 is configured to display the newly received message in the conversation page, and display other icons in which the operated identification icon is deleted in a preset area of the conversation page. Message presentation module 1305 may also be used to retrieve historical message records for display in a conversation page with newly received messages.
In one embodiment, the message presentation module 1305 may be configured to present messages in different forms in a conversation page depending on the type of message. For example, if text is included in the message, the text content may be presented in a user-defined text form, such as font, font size, and text color. If audio is included in the message, the audio can be played automatically or triggered by the user, and the graphic representation of the audio being played is displayed when the audio is played, and the graphic representation of the audio being played is stopped when the audio is played. If the message includes a video, the video screenshot may be presented. If the message comprises the link address, the link address and/or a preview image of the resource corresponding to the link address can be displayed.
After receiving the message from the contact, the device 1300 for displaying the message in the mobile social application may display a corresponding identification icon in a currently displayed page of the mobile social application, so as to independently notify the message from each contact. When the user operates the identification icon, the conversation page display message of the contact corresponding to the operated identification icon can be immediately entered. And when messages from a plurality of contacts are received, the corresponding conversation page can be immediately switched to display the messages by operating any identification icon displayed in the currently displayed page. The user only needs to preset the identification icon displayed in the currently displayed page of the mobile social application, and can directly enter the corresponding session page to view the message in time without passing through the session list page, so that the operation steps are simplified, the efficiency from notification to display after the message is received is improved, and the operation convenience is improved.
In one embodiment, the identification icon displayed in the preset area is associated with a new message prompt in the conversation list page. Specifically, after the identification icon in the preset area is subjected to the preset operation, the operated identification icon is deleted from the preset area, and the new message prompt from the contact corresponding to the operated identification icon in the session list page is also cleared. Correspondingly, after the new message prompt in the session list page is cleared, the identification icon of the contact in the preset area, from which the new message prompt is cleared, is also deleted.
As shown in fig. 14, in one embodiment, the apparatus 1300 for presenting messages in a mobile social application further includes: a page storage module 1306 and a return instruction detection module 1307.
And a page storage module 1306, configured to store a page currently displayed by the mobile social application when the preset operation is detected.
A return instruction detection module 1307 is used to detect a return instruction triggered when the session page is displayed.
The page display module 1304 is also configured to display the stored page according to the return instruction.
In particular, the structure and the page order of the pages in the mobile social application are fixed, which facilitates quick return to the main page of the mobile social application, so that if a return instruction is triggered in a conversation page, the return is usually to the upper page of the conversation page, that is, the conversation list page. The inventors contemplate that the user, after reading a new message, will return to the page that was being displayed when the message was received, as is more likely desired. Therefore, when the preset operation is detected, the currently displayed page of the mobile social application is stored. If the return instruction is detected when the session page is displayed, the stored page is returned according to the return instruction, so that the requirements of the user can be met better. The return instruction can be triggered by a physical key used for returning on the mobile terminal, or by the operation of a control or a link displayed in the conversation page and used for representing the return.
In one embodiment, page storage module 1306 is further configured to record a source of the incoming session page; the page display module 1304 is further configured to display a stored page according to the return instruction when the return instruction is detected if the source enters the session page through a preset operation on the identification icon; and if the source does not enter the conversation page through the preset operation of the identification icon, displaying the upper-level page of the conversation page according to the return instruction and the fixed page return sequence of the mobile social application when the return instruction is detected.
As shown in FIG. 15, in one embodiment, the currently displayed page is a session page; the apparatus 1300 for presenting messages in a mobile social application further comprises:
a thread assignment module 1308 for assigning an independent thread for each session.
The thread management module 1309 is configured to, when the preset operation is detected, block a thread of a currently ongoing conversation and activate a thread of a conversation of a contact corresponding to the operated identification icon. And when the return instruction is detected, blocking a thread of a conversation of the contact corresponding to the operated identification icon, and activating the thread blocked when the preset operation is detected.
As shown in FIG. 16, in one embodiment, the icon display module 1302 includes: an identification icon number acquisition module 1302a, a comparison module 1302b, a first processing module 1302c, and a second processing module 1302d are displayed.
The displayed identification icon number obtaining module 1302a is configured to obtain the number of displayed identification icons in a preset area in a page currently displayed by the mobile social application. Specifically, the number of displayed identification icons refers to the number of identification icons that have been displayed in the preset area.
A comparing module 1302b for comparing the number of displayed identification icons with a preset number; the preset number is matched with the size of the preset area. Specifically, the preset number is the number of identification icons that can be accommodated in the preset area. The preset number is matched with the size of the preset area, and particularly, on the premise that the size of the identification icon is fixed, the larger the size of the preset area is, the larger the number of the preset number is. The preset number may be determined according to the size of the preset area and the size of the identification icon. By comparing the number of displayed identification icons with the preset number, it can be determined whether the preset area can also accommodate the identification icons.
The first processing module 1302c is configured to display the identification icons of the contacts in a preset area when the number of the displayed identification icons is less than the preset number. Specifically, when the number of displayed identification icons is smaller than the preset number, it is indicated that the preset area can also accommodate new identification icons, and then the identification icons of the contacts can be directly displayed in the preset area. Specifically, the identification icons may be arranged in descending order according to the message receiving time, or the identification icon of the contact corresponding to the latest received message may be directly placed at the head of the identification icon sequence in the preset area. In one embodiment, the first processing module 1302c is further configured to, if the identification icon of the contact already exists in the preset area, place the identification icon of the contact at the head of the sequence of identification icons in the preset area.
The second processing module 1302d is configured to delete the identification icon with the earliest message receiving time in the preset area and display the identification icon of the contact in the preset area when the number of the displayed identification icons is greater than or equal to the preset number. Specifically, the message receiving time corresponding to each identification icon may be recorded, so that when it is determined that the number of displayed identification icons is greater than or equal to the preset number, the message receiving time of each identification icon is acquired and compared, and the identification icon whose corresponding message receiving time is the earliest is deleted. In one embodiment, if the identification icons in the preset area are arranged in descending order according to the message receiving time, the identification icon at the last position of the identification icon sequence in the preset area can be directly deleted, and the identification icon of the contact person is displayed at the first position of the identification icon sequence in the preset area.
In an embodiment, the second processing module 1302d may be further configured to add the identification icon with the earliest message receiving time in the preset area to a last-in first-out identification icon queue when the number of displayed identification icons is greater than or equal to a preset number. The icon display module 1302 is further configured to delete the operated identification icon from the preset area when the preset operation is detected, and extract the corresponding identification icon with the latest message receiving time from the identification icon queue to display in the preset area.
In this embodiment, by comparing the number of displayed identification icons in the preset area with the preset number, it can be known whether the preset area can accommodate a new identification icon, so that the identification icons in the preset area can be dynamically managed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method of presenting messages in a mobile social application, the method comprising:
receiving a message from a contact when a page of a mobile social application is displayed after logging in the mobile social application; the page of the mobile social application comprises one of a session page, an information browsing page or a setting page;
displaying the identification icon of the contact in a preset area in a page currently displayed by the mobile social application;
detecting a preset operation on the identification icon displayed in the preset area;
when the preset operation is detected, displaying a conversation page of the contact corresponding to the operated identification icon, and storing a currently displayed page of the mobile social application;
displaying the message from the contact corresponding to the operated identification icon in the conversation page;
after the conversation page is displayed, a return instruction triggered when the conversation page is displayed is detected, and the stored page is displayed according to the return instruction.
2. The method of claim 1, further comprising:
recording a source of entering the session page;
if the source enters the session page through the preset operation of the identification icon, displaying the stored page according to the return instruction when the return instruction is detected;
and if the source does not enter the conversation page through the preset operation of the identification icon, displaying an upper level page of the conversation page according to the return instruction and a fixed page return sequence of the mobile social application when the return instruction is detected.
3. The method of claim 1, wherein the currently displayed page is a conversation page; the method further comprises the following steps:
allocating an independent thread for each conversation;
and when the preset operation is detected, blocking the thread of the current ongoing conversation, and activating the thread of the conversation of the contact corresponding to the operated identification icon.
4. The method of claim 1, wherein displaying the contact's identification icon in a preset area of a page currently displayed by a mobile social application comprises:
acquiring the number of displayed identification icons in a preset area in a currently displayed page of the mobile social application;
comparing the number of the displayed identification icons with a preset number; the preset number is matched with the size of the preset area;
and when the number of the displayed identification icons is smaller than the preset number, displaying the identification icons of the contact persons in the preset area.
5. The method of claim 4, further comprising:
and when the number of the displayed identification icons is larger than or equal to the preset number, deleting the identification icon corresponding to the preset area and having the earliest message receiving time, and displaying the identification icon of the contact person in the preset area.
6. An apparatus for presenting messages in a mobile social application, the apparatus comprising:
the message receiving module is used for receiving messages from contacts when a page of the mobile social application is displayed after the mobile social application is logged in; the page of the mobile social application comprises one of a session page, an information browsing page or a setting page;
the icon display module is used for displaying the identification icon of the contact in a preset area in a page currently displayed by the mobile social application;
the operation detection module is used for detecting the preset operation of the identification icon displayed in the preset area;
the page display module is used for displaying a conversation page of a contact corresponding to the operated identification icon when the preset operation is detected, and storing the currently displayed page of the mobile social application;
the message display module is used for displaying the message from the contact corresponding to the operated identification icon in the conversation page;
and the page display module is also used for detecting a return instruction triggered when the session page is displayed after the session page is displayed, and displaying the stored page according to the return instruction.
7. The apparatus of claim 6, further comprising:
the page storage module is used for recording the source of the session page;
the page display module is further used for displaying the stored page according to the return instruction when the return instruction is detected if the source enters the session page through the preset operation of the identification icon; and if the source does not enter the conversation page through the preset operation of the identification icon, displaying an upper level page of the conversation page according to the return instruction and a fixed page return sequence of the mobile social application when the return instruction is detected.
8. The apparatus of claim 6, wherein the currently displayed page is a conversation page; the device further comprises:
the thread allocation module is used for allocating independent threads for each session;
and the thread management module is used for blocking the thread of the current ongoing conversation and activating the thread of the conversation of the contact corresponding to the operated identification icon when the preset operation is detected.
9. The apparatus of claim 6, wherein the icon display module comprises:
the displayed identification icon quantity acquisition module is used for acquiring the quantity of the displayed identification icons in a preset area in a page currently displayed by the mobile social application;
the comparison module is used for comparing the number of the displayed identification icons with a preset number; the preset number is matched with the size of the preset area;
and the first processing module is used for displaying the identification icons of the contact persons in the preset area when the number of the displayed identification icons is less than the preset number.
10. The apparatus of claim 9, further comprising:
and the second processing module is used for deleting the corresponding identification icon with the earliest message receiving time in the preset area and displaying the identification icon of the contact in the preset area when the number of the displayed identification icons is larger than or equal to the preset number.
11. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 5 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201510791558.0A 2015-11-17 2015-11-17 Method and device for displaying messages in mobile social application Active CN106708895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510791558.0A CN106708895B (en) 2015-11-17 2015-11-17 Method and device for displaying messages in mobile social application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510791558.0A CN106708895B (en) 2015-11-17 2015-11-17 Method and device for displaying messages in mobile social application

Publications (2)

Publication Number Publication Date
CN106708895A CN106708895A (en) 2017-05-24
CN106708895B true CN106708895B (en) 2020-06-02

Family

ID=58933229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510791558.0A Active CN106708895B (en) 2015-11-17 2015-11-17 Method and device for displaying messages in mobile social application

Country Status (1)

Country Link
CN (1) CN106708895B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678811B (en) * 2017-09-07 2022-04-01 福建网龙计算机网络信息技术有限公司 Message prompting method and terminal
CN107678544B (en) * 2017-09-25 2020-09-11 北京小米移动软件有限公司 Message processing method and device
CN107911561A (en) * 2017-12-11 2018-04-13 口碑(上海)信息技术有限公司 The interactive display method and device that more people individually chat
CN113157366A (en) * 2021-04-01 2021-07-23 北京达佳互联信息技术有限公司 Animation playing method and device, electronic equipment and storage medium
CN115278275B (en) * 2022-06-21 2024-05-07 北京字跳网络技术有限公司 Information display method, apparatus, device, storage medium, and program product
CN114780268B (en) * 2022-06-21 2022-11-08 荣耀终端有限公司 Notification message display method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578952A (en) * 2001-09-28 2005-02-09 美国在线服务公司 Passive personalization of buddy lists
CN101882089A (en) * 2009-05-07 2010-11-10 中兴通讯股份有限公司 Method for processing business conversational application with multi-thread and device thereof
CN102081502A (en) * 2011-01-24 2011-06-01 中兴通讯股份有限公司 Method for managing icons on standby interface of mobile terminal and mobile terminal
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104539791A (en) * 2014-12-04 2015-04-22 天津三星通信技术研究有限公司 Method and device for performing instant messaging in communication terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578952A (en) * 2001-09-28 2005-02-09 美国在线服务公司 Passive personalization of buddy lists
CN101882089A (en) * 2009-05-07 2010-11-10 中兴通讯股份有限公司 Method for processing business conversational application with multi-thread and device thereof
CN102081502A (en) * 2011-01-24 2011-06-01 中兴通讯股份有限公司 Method for managing icons on standby interface of mobile terminal and mobile terminal
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104539791A (en) * 2014-12-04 2015-04-22 天津三星通信技术研究有限公司 Method and device for performing instant messaging in communication terminal

Also Published As

Publication number Publication date
CN106708895A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106708895B (en) Method and device for displaying messages in mobile social application
US10877826B2 (en) Message processing method and apparatus, storage medium, and computer device
US10156966B2 (en) Device, method, and graphical user interface for presenting and installing applications
US10564824B1 (en) Initiating communications based on interactions with images
CN111885258B (en) Unread message display method and device, electronic equipment and storage medium
EP3371693B1 (en) Method and electronic device for managing operation of applications
CN107040453B (en) Information processing method and device for instant messaging application
KR20140120673A (en) Mobile terminal and method for processing notification information
CN111510439B (en) Session reminding method, device, computer equipment and storage medium
CN107168974B (en) Display control method and device for displaying related content of item and message in social application
CN107102786B (en) Information processing method and client
US10331327B2 (en) Message display method, apparatus and terminal
CN107733769B (en) Method and device for displaying user information
US20230350551A1 (en) Connecting users to entities based on recognized objects
CN106775208B (en) Operation method and device for application individuation and terminal
CN112533072A (en) Image sending method and device and electronic equipment
US11843815B2 (en) Interfacing a television with a second device
CN111756556B (en) Message pushing method and device and terminal
CN104537049A (en) Picture browsing method and device
CN109582187B (en) File sending method and device, computer equipment and storage medium
EP3316110A1 (en) Communication terminal, management system, communication system, display method and program
CN112235412A (en) Message processing method and device
US20150200889A1 (en) System and method for sending messages
CN107145286B (en) Browsing interaction processing method and device
CN115412634B (en) Message display method and device

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