CN105718469B - Method and device for processing data in social application - Google Patents
Method and device for processing data in social application Download PDFInfo
- Publication number
- CN105718469B CN105718469B CN201410725531.7A CN201410725531A CN105718469B CN 105718469 B CN105718469 B CN 105718469B CN 201410725531 A CN201410725531 A CN 201410725531A CN 105718469 B CN105718469 B CN 105718469B
- Authority
- CN
- China
- Prior art keywords
- mode
- target area
- content
- interface
- user
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子设备应用领域,尤其涉及一种社交应用中数据处理的方法及装置。The invention relates to the application field of electronic equipment, and in particular, to a method and device for data processing in social applications.
背景技术Background technique
当今社会是一个信息化的社会,信息技术的发展影响着人们生活的方方面面。以人们之间的沟通方式为例,越来越多的人通过各种社交应用,如QQ、微信等进行信息的交互。Today's society is an information society, and the development of information technology affects all aspects of people's lives. Taking the way of communication between people as an example, more and more people are interacting with information through various social applications, such as QQ and WeChat.
一般而言,大多数社交应用都提供了用于发送即时消息的聊天模式,以及用于发表最近状况的虚拟空间模式。在聊天模式下,不同用户之间可以通过发送文字或者图片等进行即时沟通;在虚拟空间模式下,用户可以发布信息或对其他用户发布的信息进行评论以实现信息的交互。In general, most social applications provide a chat mode for sending instant messages, and a virtual space mode for posting recent situations. In the chat mode, different users can communicate instantly by sending text or pictures; in the virtual space mode, users can post information or comment on the information posted by other users to achieve information interaction.
然而,在移动终端的社交应用的使用过程中,经常会出现需要在虚拟空间模式下讨论聊天模式下的内容或者在聊天模式下讨论虚拟空间模式下的内容的情景,也即存在将一种模式下的内容整合到另一模式下的需求。目前,现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案。However, in the process of using the social application of the mobile terminal, there are often situations in which it is necessary to discuss the content in the chat mode in the virtual space mode or discuss the content in the virtual space mode in the chat mode, that is, there is a mode of Integrate the content under another mode into the needs of another mode. Currently, there is no technical solution for integrating content in one mode into another mode in the prior art.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种数据处理的方法及装置,以解决现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案的问题。Embodiments of the present invention provide a data processing method and apparatus to solve the problem that there is no technical solution for integrating content in one mode into another mode in the prior art.
为达到上述目的,本发明的实施例采用如下技术方案:To achieve the above object, the embodiments of the present invention adopt the following technical solutions:
一方面,本发明提供了一种社交应用中数据处理的方法,该社交应用包括第一模式和第二模式,所述第一模式为用户当前所处的模式,该方法包括:In one aspect, the present invention provides a method for data processing in a social application, where the social application includes a first mode and a second mode, where the first mode is the mode in which the user is currently located, and the method includes:
根据用户在所述第一模式下输入的滑动轨迹,确定目标区域;Determine the target area according to the sliding track input by the user in the first mode;
若所述用户由所述第一模式切换到所述第二模式,则将所述目标区域中的内容加载到所述第二模式的界面中。If the user switches from the first mode to the second mode, the content in the target area is loaded into the interface of the second mode.
另一方面,本发明提供了一种社交应用中数据处理的装置,所述社交应用包括第一模式和第二模式,所述第一模式为用户当前所处的模式,所述装置包括:In another aspect, the present invention provides an apparatus for data processing in a social application, the social application includes a first mode and a second mode, the first mode is the mode that the user is currently in, and the apparatus includes:
接收单元,用于接收用户在所述第一模式下输入的滑动轨迹;a receiving unit, configured to receive the sliding track input by the user in the first mode;
处理单元,用于根据所述接收单元接收的所述滑动轨迹,确定目标区域;a processing unit, configured to determine a target area according to the sliding track received by the receiving unit;
加载单元,用于当所述用户由所述第一模式切换到所述第二模式时,将所述处理单元确定的所述目标区域中的内容加载到所述第二模式的界面中。A loading unit, configured to load the content in the target area determined by the processing unit into the interface of the second mode when the user switches from the first mode to the second mode.
本发明提供的一种社交应用中数据处理的方法及装置,首先接收用户在当前所处的模式(第一模式)下输入的滑动轨迹,并根据该滑动轨迹确定目标区域,当用户由第一模式切换到第二模式时,将目标区域中的内容加载到第二模式中。与现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案相比,本发明通过将由用户在第一模式下输入的滑动轨迹确定的目标区域的内容自动加载到第二模式中,能够实现将一种模式下的内容整合到另一模式下,且该实现过程中只需用户选中相关的内容(确定目标区域),便可自动实现将目标区域中的内容的整合到另一模式下,因而操作步骤简单。A method and device for data processing in a social application provided by the present invention firstly receives the sliding track input by the user in the current mode (the first mode), and determines the target area according to the sliding track. When the mode is switched to the second mode, the content in the target area is loaded into the second mode. Compared with the technical solution of integrating the content in one mode into another mode in the prior art, the present invention automatically loads the content of the target area determined by the sliding track input by the user in the first mode into the first mode. In the second mode, the content in one mode can be integrated into another mode, and in the implementation process, only the user needs to select the relevant content (determine the target area), and the integration of the content in the target area can be automatically realized. to another mode, so the operation steps are simple.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例提供的一种社交应用中数据处理的方法的流程图;1 is a flowchart of a method for data processing in a social application provided by an embodiment of the present invention;
图2为本发明实施例提供的又一种社交应用中数据处理的方法的流程图;2 is a flowchart of another method for data processing in a social application provided by an embodiment of the present invention;
图3为本发明实施例提供的再一种社交应用中数据处理的方法的流程图;FIG. 3 is a flowchart of still another method for data processing in a social application provided by an embodiment of the present invention;
图4为本发明实施例提供的一种社交应用中数据处理的装置的结构示意图;4 is a schematic structural diagram of an apparatus for data processing in a social application provided by an embodiment of the present invention;
图5为本发明实施例提供的又一种社交应用中数据处理的装置的结构示意图;5 is a schematic structural diagram of another apparatus for data processing in a social application provided by an embodiment of the present invention;
图6为本发明实施例提供的再一种社交应用中数据处理的装置的结构示意图。FIG. 6 is a schematic structural diagram of still another apparatus for processing data in a social application according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本实施例中的附图,对本实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in this embodiment will be clearly and completely described below with reference to the drawings in this embodiment. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
由于在移动终端的社交应用的使用过程中存在将一种模式下的内容整合到另一模式下的需求,而现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案,因而本发明提出了一种数据处理的方法,该方法应用于移动终端中如QQ、微信等社交应用中。现有的社交应用一般包括聊天模式和虚拟空间模式,不同模式的界面包含的模块不一样,如聊天模式的界面为包含了联系人列表模块和对话框模块等模块的界面,所述联系人列表模块用于显示各个联系人的属性信息,如昵称、头像等,所述对话框模块用于提供对话框以方便用户通过发送即时消息进行沟通。虚拟空间模式的界面为包含了内容分布模块和评论模块等模块的界面,所述内容分布模块用于用户通过文字、图片等形式发布内容或者显示其他用户发布的内容,所述评论模块用于对用户分布的内容进行评论以实现信息的交互。Since there is a need to integrate content in one mode into another mode during the use of social applications of mobile terminals, there is no technology for integrating content in one mode into another mode in the prior art Therefore, the present invention proposes a data processing method, which is applied to social applications such as QQ and WeChat in mobile terminals. Existing social applications generally include a chat mode and a virtual space mode. The interfaces of different modes contain different modules. For example, the interface of the chat mode is an interface that includes modules such as a contact list module and a dialog module. The contact list The module is used to display attribute information of each contact, such as nickname, avatar, etc. The dialog module is used to provide a dialog to facilitate users to communicate by sending instant messages. The interface of the virtual space mode is an interface that includes modules such as a content distribution module and a comment module. The content distribution module is used for users to publish content through text, pictures, etc. or to display content published by other users. The content distributed by users is commented to realize the interaction of information.
在本发明的实现方式中,可通过检测当前界面中包含的模块类型,来确定当前界面所属的模式。具体而言,若检测到当前界面包含了联系人列表模块、对话框模块,则将用户当前所处的模式确定为聊天模式,即第一模式为聊天模式,第二模式为虚拟空间模式;同理,若检测到当前界面包含了内容分布模块、评论模块,则将用户当前所处的模式确定为虚拟空间模式,即第一模式为虚拟空间模式,则第二模式为聊天模式。In the implementation manner of the present invention, the mode to which the current interface belongs can be determined by detecting the module type contained in the current interface. Specifically, if it is detected that the current interface includes a contact list module and a dialog module, the current mode of the user is determined as the chat mode, that is, the first mode is the chat mode, and the second mode is the virtual space mode; the same If it is detected that the current interface includes a content distribution module and a comment module, the current mode of the user is determined as the virtual space mode, that is, the first mode is the virtual space mode, and the second mode is the chat mode.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
S101:根据用户在所述第一模式下输入的滑动轨迹,确定目标区域。S101: Determine a target area according to a sliding track input by a user in the first mode.
由于社交应用一般包括聊天模式和虚拟空间模式两种模式,因而在实际应用中,可能存在将聊天模式下的内容分享到虚拟空间模式下以及将虚拟空间模式下的内容分享到聊天模式下两种需求,无论上述哪种需求,用户都需要先经过一定的操作,进入包含待分享的内容的模式下以选中所述待分享的内容。因而本实施例中的第一模式为用户当前所处的模式,也即用户为了选中待分享的内容而处于的模式,可能为虚拟空间模式,也可能为聊天模式。Since social applications generally include chat mode and virtual space mode, in practical applications, there may be two modes of sharing the content in the chat mode to the virtual space mode and sharing the content in the virtual space mode to the chat mode. Requirements, no matter which of the above requirements, the user needs to go through a certain operation and enter the mode containing the content to be shared to select the content to be shared. Therefore, the first mode in this embodiment is the mode the user is currently in, that is, the mode the user is in to select the content to be shared, which may be a virtual space mode or a chat mode.
用户若想在当前模式下选取将要分享的内容,需要进行滑动操作形成滑动轨迹,因而本实施例需要监听并接收用户输入的滑动轨迹。If the user wants to select the content to be shared in the current mode, he needs to perform a sliding operation to form a sliding track, so this embodiment needs to monitor and receive the sliding track input by the user.
S102:若用户由第一模式切换到第二模式,则将目标区域中的内容加载到第二模式的界面中。S102: If the user switches from the first mode to the second mode, load the content in the target area into the interface of the second mode.
本发明的目的为实现将用户从第一模式中选中的内容显示在第二模式的界面中。因而本实施例中,若用户由当前模式(第一模式)跳转到第二模式,则可作为用户需要将目标区域中的内容加载到第二模式的界面中的触发条件。也即,在步骤S101确定了目标区域后,若用户由第一模式切换到第二模式,则将目标区域中的内容自动加载到第二模式的界面中。The purpose of the present invention is to display the content selected by the user from the first mode in the interface of the second mode. Therefore, in this embodiment, if the user jumps from the current mode (the first mode) to the second mode, it can be used as a triggering condition for the user to load the content in the target area into the interface of the second mode. That is, after the target area is determined in step S101, if the user switches from the first mode to the second mode, the content in the target area is automatically loaded into the interface of the second mode.
此外,为了使目标区域中的内容在第二模式的界面中显示时,更加符合用户的需求,本步骤中用户可通过控制光标来确定目标区域中的内容在第二模式的界面中的具体位置,也即,在本步骤的一种实现方式中,可将目标区域中的内容加载在第二模式的界面中的光标处。In addition, in order to make the content in the target area displayed in the interface of the second mode more in line with the needs of the user, in this step, the user can control the cursor to determine the specific position of the content in the target area in the interface of the second mode , that is, in an implementation manner of this step, the content in the target area may be loaded at the cursor in the interface of the second mode.
本发明提供的一种社交应用中数据处理的方法及装置,首先接收用户在当前所处的模式(第一模式)下输入的滑动轨迹,并根据该滑动轨迹确定目标区域,当用户由第一模式切换到第二模式时,将目标区域中的内容加载到第二模式中。与现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案相比,本发明通过将由用户在第一模式下输入的滑动轨迹确定的目标区域的内容自动加载到第二模式中,能够实现将一种模式下的内容整合到另一模式下,且该实现过程中只需用户选中相关的内容(确定目标区域),便可自动实现将目标区域中的内容的整合到另一模式下,因而操作步骤简单。A method and device for data processing in a social application provided by the present invention firstly receives the sliding track input by the user in the current mode (the first mode), and determines the target area according to the sliding track. When the mode is switched to the second mode, the content in the target area is loaded into the second mode. Compared with the technical solution of integrating the content in one mode into another mode in the prior art, the present invention automatically loads the content of the target area determined by the sliding track input by the user in the first mode into the first mode. In the second mode, the content in one mode can be integrated into another mode, and in the implementation process, only the user needs to select the relevant content (determine the target area), and the integration of the content in the target area can be automatically realized. to another mode, so the operation steps are simple.
进一步的,作为图1所示方法的细化,本发明还提供了一种社交应用中数据处理的方法,如图2所示,该方法包括:Further, as a refinement of the method shown in FIG. 1 , the present invention also provides a method for data processing in social applications, as shown in FIG. 2 , the method includes:
S201:接收用户在所述第一模式下输入的滑动轨迹。S201: Receive a sliding track input by a user in the first mode.
本实施例中,需要根据用户的滑动轨迹来确定目标区域,因而本方法的第一步骤为接收用户的滑动轨迹。In this embodiment, the target area needs to be determined according to the user's sliding track, so the first step of the method is to receive the user's sliding track.
S202:若所述滑动轨迹为闭合曲线,则识别由所述滑动轨迹形成的目标图形。S202: If the sliding track is a closed curve, identify a target figure formed by the sliding track.
为了避免与现有移动终端提供的通过识别用户的滑动轨迹以实现上下左右滑动屏幕的功能相矛盾,进而导致用户无法正常使用移动终端,本实施例中,只有当滑动轨迹为闭合曲线,才会触发后续的确定目标区域的流程。In order to avoid conflict with the function provided by the existing mobile terminal to realize the screen sliding up, down, left and right by recognizing the user's sliding trajectory, thus causing the user to be unable to use the mobile terminal normally, in this embodiment, only when the sliding trajectory is a closed curve, will the Trigger the subsequent process of determining the target area.
由于滑动轨迹为闭合曲线,该闭合曲线能够形成一定形状的图形,因而可根据该图形确定目标区域。Since the sliding track is a closed curve, the closed curve can form a certain-shaped graph, so the target area can be determined according to the graph.
此外,由于闭合曲线的形状不确定,因而由闭合曲线形成的图形可能为任意图形,也即既可能为规则图形,如三角形、矩形等,也可能为其他形状。在确定目标区域的过程中,为了避免将用户任意滑动得到的闭合曲线均认为用来确定目标区域,在本步骤的一种实现方式中,本实施例需要首先识别滑动轨迹形成的目标图形,并根据该目标图形进一步确定目标区域,该具体确认过程如下述步骤S203。In addition, since the shape of the closed curve is uncertain, the graph formed by the closed curve may be any graph, that is, it may be a regular graph, such as a triangle, a rectangle, etc., or may be other shapes. In the process of determining the target area, in order to avoid that the closed curve obtained by the user's arbitrary sliding is considered to be used to determine the target area, in an implementation manner of this step, this embodiment needs to first identify the target graph formed by the sliding trajectory, and The target area is further determined according to the target image, and the specific confirmation process is as follows in step S203.
S203:若目标图形的形状与预设图形的相似度达到预设比值,则将所述目标图形包含的区域确定为目标区域。S203: If the similarity between the shape of the target graphic and the preset graphic reaches a preset ratio, determine the area included in the target graphic as the target area.
识别出滑动轨迹形成的目标图形后,将该目标图形与预设图形进行相似度的分析比较,当其相似度超过预设比值时,将该目标图形包含的区域确定为目标区域。After identifying the target graphic formed by the sliding trajectory, the similarity between the target graphic and the preset graphic is analyzed and compared, and when the similarity exceeds the preset ratio, the area included in the target graphic is determined as the target area.
其中,所述相似度的比较是指将识别出的目标图形与预设图形进行形状相似度的比较,如预设图形为矩形时,分析识别出的目标图形是否为矩形;预设图形为圆形时,分析识别出的目标图形是否为圆形等。The comparison of the similarity refers to comparing the shape similarity between the identified target graphic and the preset graphic. For example, when the preset graphic is a rectangle, analyze whether the identified target graphic is a rectangle; the preset graphic is a circle When the shape is selected, analyze whether the recognized target shape is a circle, etc.
此外,所述预设图形可以包括一种图形,将识别出的目标图形与预设图形进行形状的相似度的比较,当该目标图形与该预设图形中的形状的相似度超过预设比值时,则将该滑动轨迹形成的目标图形对应的区域确定为目标区域。如该预设图形为矩形,该预设比值为90%时,则对识别出的目标图形进行分析比较,当该目标图形的形状与矩形的类似度达到90%以上时,则将该目标图形对应的区域确定为目标区域。In addition, the preset graphic may include a graphic, the similarity of the shape of the identified target graphic and the preset graphic is compared, and when the similarity between the target graphic and the shape in the preset graphic exceeds a preset ratio , the area corresponding to the target graphic formed by the sliding track is determined as the target area. If the preset graphic is a rectangle, and the preset ratio is 90%, then analyze and compare the identified target graphic, and when the similarity between the shape of the target graphic and the rectangle reaches more than 90%, then the target graphic The corresponding area is determined as the target area.
所述预设图形还可以包括多种图形,将识别出的目标图形进行分析比较,当该目标图形与该预设图形中的任一种的类似度超过预设比值时,则将该滑动轨迹形成的目标图形对应的区域确定为目标区域,如该预设图形包括矩形和圆形,该预设比值为90%时,则当滑动轨迹形成的目标图形与圆形的相似度达到90%以上或者与矩形的相似度达到90%以上时,可将由滑动轨迹形成的目标图形所对应的区域确定为目标区域。The preset graphics can also include a variety of graphics, and the identified target graphics are analyzed and compared, and when the similarity between the target graphics and any one of the preset graphics exceeds a preset ratio, the sliding trajectory is determined. The area corresponding to the formed target graphic is determined as the target area. For example, if the preset graphic includes a rectangle and a circle, and the preset ratio is 90%, the similarity between the target graphic formed by the sliding track and the circle reaches more than 90%. Or when the similarity with the rectangle reaches more than 90%, the area corresponding to the target graphic formed by the sliding track can be determined as the target area.
S204:若所述用户由所述第一模式切换到所述第二模式,则将所述目标区域中的内容加载到所述第二模式的界面中。S204: If the user switches from the first mode to the second mode, load the content in the target area into the interface of the second mode.
步骤S204的具体实现过程可参考步骤S102,本方法不再赘述。For the specific implementation process of step S204, reference may be made to step S102, which will not be repeated in this method.
进一步的,作为图1和图2所示方法的补充,本发明实施例还提供了一种社交应用中数据处理的方法,如图3所示,该方法包括:Further, as a supplement to the method shown in FIG. 1 and FIG. 2 , an embodiment of the present invention further provides a method for data processing in a social application. As shown in FIG. 3 , the method includes:
S301:根据用户在所述第一模式下输入的滑动轨迹,确定目标区域。S301: Determine a target area according to the sliding track input by the user in the first mode.
该步骤的具体实现过程可参考步骤S101以及步骤S201至步骤S203,本方法不再赘述。For the specific implementation process of this step, reference may be made to step S101 and steps S201 to S203, which will not be repeated in this method.
S302:生成与第一模式对应的模式标识,所述模式标识用于表示所述目标区域中的内容来自所述第一模式。S302: Generate a mode identifier corresponding to the first mode, where the mode identifier is used to indicate that the content in the target area comes from the first mode.
为了表明目标区域中的内容的来源,本方法中在确定目标区域之后,还生成了与第一模式对应的模式标识。具体而言,当第一模式为聊天模式时,该模式标识为聊天模式标识;当第一模式为虚拟空间模式时,该模式标识为虚拟空间模式标识。该模式标识可以为一行文字,如“此内容来自虚拟空间模式”、“此内容来自聊天模式”等,也可以为不同的边框,如聊天模式标识为矩形边框,虚拟空间模式标识为圆形边框等。In order to indicate the source of the content in the target area, in this method, after the target area is determined, a mode identifier corresponding to the first mode is also generated. Specifically, when the first mode is a chat mode, the mode identification is a chat mode identification; when the first mode is a virtual space mode, the mode identification is a virtual space mode identification. The mode identification can be a line of text, such as "this content is from virtual space mode", "this content is from chat mode", etc., or it can be different borders, such as a rectangular border for chat mode identification and a circular border for virtual space mode identification Wait.
S303:若用户由第一模式切换到第二模式,则将目标区域中的内容和所述模式标识加载到第二模式的界面中。S303: If the user switches from the first mode to the second mode, load the content in the target area and the mode identifier into the interface of the second mode.
将生成的模式标识以及目标区域中的内容加载到第二模式的界面中。Load the generated mode ID and the content in the target area into the interface of the second mode.
此外,步骤将所述目标区域中的内容加载到所述第二模式的界面中的具体实现过程中,既可以为保留目标区域中的内容的源格式,直接将目标区域中的内容加载到第二模式的界面中,该实现方式能够达到与“复制、粘贴”相同的效果;也可以为将目标区域中的内容经过处理后加载到第二模式的界面中,该处理过程可以为将目标区域中的内容生成图片的过程。其中,所述源格式是指目标区域的内容在第一模式中的格式。即当目标区域中的内容为图片时,保留图片格式;当目标区域中的内容为文字时,保留文字的具体格式;当目标区域中的内容既有图片又有文字时,则分别保留图片和文字的格式。In addition, in the specific implementation process of the step of loading the content in the target area into the interface of the second mode, the source format of the content in the target area may be retained, and the content in the target area may be directly loaded into the second mode. In the interface of the second mode, this implementation method can achieve the same effect as "copy and paste"; it can also be to load the content in the target area into the interface of the second mode after processing, and the processing process can be to copy the target area The process of generating images from the content in . Wherein, the source format refers to the format of the content of the target area in the first mode. That is, when the content in the target area is a picture, keep the picture format; when the content in the target area is text, keep the specific format of the text; when the content in the target area has both pictures and text, keep the picture and the text respectively. The format of the text.
相应的,步骤将所述目标区域中的内容和所述模式标识加载到所述第二模式的界面中的具体实现过程中,既可以为保留目标区域中内容的源格式,直接将目标区域中的内容加载到第二模式的界面中,同时在该内容下方增加模式标识。该实现方式能够达到与“复制、粘贴”相同的效果,又能够通过模式标识表明目标区域中的内容的来源的方式与“复制、粘贴”的方式区分开来。Correspondingly, in the specific implementation process of loading the content in the target area and the mode identifier into the interface of the second mode, the source format of the content in the target area can be retained, and the content in the target area can be directly loaded. The content of the second mode is loaded into the interface of the second mode, and the mode logo is added under the content at the same time. This implementation can achieve the same effect as "copy and paste", and can distinguish the mode of indicating the source of the content in the target area through the mode identification and the mode of "copy and paste".
步骤将所述目标区域中的内容和所述模式标识加载到所述第二模式的界面中的具体实现过程中,也可以对目标区域中的内容和模式标识进行处理后加载到第二模式的界面中。也即根据目标区域中的内容生成目标图片,所述目标图片携带有目标区域中的内容及模式标识;将目标图片加载到第二模式的界面中。由此可知,该步骤中对目标区域中的内容的处理过程包括:将目标区域中的内容以图片的形式加载到第二模式的界面中,该图片可以为经过排版处理以适应第二模式的界面的图片,如将图片进行缩小或放大处理后的;此外,该目标图片还可以携带有模式标识,如当模式标识为文字时,该目标图片具有相应的文字说明,当模式标识为边框时,该目标图片具有相应的边框。如,当目标区域的内容来源于聊天模式,聊天模式标识为矩形边框时,根据所述目标区域的内容生成的目标图片相应的携带有矩形边框,再将该携带有矩形边框的目标图片加载到第二模式的界面中,以便于用户根据该矩形边框,识别出该图片所包含的内容的来源。In the specific implementation process of loading the content in the target area and the mode identification into the interface of the second mode, the content and mode identification in the target area can also be processed and then loaded into the interface of the second mode. in the interface. That is, a target image is generated according to the content in the target area, and the target image carries the content in the target area and a mode identifier; the target image is loaded into the interface of the second mode. It can be seen from this that the processing process of the content in the target area in this step includes: loading the content in the target area into the interface of the second mode in the form of a picture, and the picture may be typesetting to suit the second mode. The picture of the interface, for example, after reducing or enlarging the picture; in addition, the target picture can also carry a mode identification, for example, when the mode identification is text, the target picture has a corresponding text description, and when the mode identification is a frame , the target image has a corresponding border. For example, when the content of the target area comes from the chat mode, and the chat mode is identified as a rectangular frame, the target image generated according to the content of the target area correspondingly carries a rectangular frame, and then loads the target image with the rectangular frame into the In the interface of the second mode, it is convenient for the user to identify the source of the content contained in the picture according to the rectangular frame.
进一步的,作为上述各图所示方法的补充,在步骤将目标区域中的内容加载到第二模式的界面中之前,该方法还包括:Further, as a supplement to the method shown in the above figures, before the step of loading the content in the target area into the interface of the second mode, the method further includes:
显示信息导入询问框,该信息导入询问框用于询问用户是否将目标区域中的内容导入到第二模式的界面中。An information importing query box is displayed, and the information importing query box is used to ask the user whether to import the content in the target area into the interface of the second mode.
若接收到用户在所述信息导入询问框中的确认指示,则将目标区域中的内容加载到第二模式的界面中。If a confirmation instruction from the user in the information importing query box is received, the content in the target area is loaded into the interface of the second mode.
为了便于用户使用,本实施例中,在将目标区域中的内容加载到第二模式的界面之前,显示用于询问用户是否将目标区域中的内容导入到第二模式的界面中的信息导入询问框,当用户确认要导入时,再将目标区域中的内容加载到第二模式的界面中。这样,可以根据用户的选择进行信息的导入。For the convenience of the user, in this embodiment, before loading the content in the target area into the interface of the second mode, an information import query for asking the user whether to import the content in the target area into the interface of the second mode is displayed When the user confirms to import, the content in the target area is loaded into the interface of the second mode. In this way, the information can be imported according to the user's selection.
作为上述方法的具体应用,本实施例还提供了上述方法的应用场景,在该应用场景中,所述社交应用为QQ,QQ包括聊天模式和虚拟空间模式(QQ空间),当用户在与朋友A聊天的过程中,需要将QQ空间中A发表的一条既包含图片又包含文字的状态,导入到与A的对话框(该对话框属于聊天模式)中时,则当用户进入QQ空间后,即移动终端的当前界面为QQ空间的界面后,监听并识别用户当前界面输入的所述滑动轨迹,将所述滑动轨迹所形成的图形与预设图形进行相似度比较后,确定所述滑动轨迹形成的图形是否为目标区域,若为目标区域,则将该目标区域中的内容生成图片,并生成矩形边框(虚拟空间模式标识)作为该图片的边框,携带有该矩形边框的图片即为目标图片,将该目标图片加载在用户与朋友A的对话框中的光标处。As a specific application of the above method, this embodiment also provides an application scenario of the above method. In this application scenario, the social application is QQ, and QQ includes a chat mode and a virtual space mode (QQ space). When the user is chatting with friends In the process of chatting with A, it is necessary to import a state published by A in QQ space that contains both pictures and text into the dialog box with A (this dialog box belongs to chat mode), then when the user enters QQ space, That is, after the current interface of the mobile terminal is the interface of QQ Space, monitor and identify the sliding track input by the user on the current interface, and determine the sliding track after comparing the similarity between the graphics formed by the sliding track and the preset graphics. Whether the formed graphic is the target area, if it is the target area, then generate a picture of the content in the target area, and generate a rectangular frame (virtual space mode identifier) as the frame of the image, and the image carrying the rectangular frame is the target. Picture, load the target picture at the cursor in the dialog box between the user and friend A.
作为上述各图所示方法的实现,本实施例还提供了一种社交应用中数据处理的装置,所述社交应用包括第一模式和第二模式,所述第一模式为用户当前所处的模式,如图4所示,该装置包括:As an implementation of the methods shown in the above figures, this embodiment also provides an apparatus for data processing in a social application, where the social application includes a first mode and a second mode, and the first mode is the current state of the user. mode, as shown in Figure 4, the device includes:
接收单元401,用于接收用户在所述第一模式下输入的滑动轨迹。The receiving unit 401 is configured to receive a sliding track input by a user in the first mode.
处理单元402,用于根据接收单元401接收的所述滑动轨迹,确定目标区域。The processing unit 402 is configured to determine a target area according to the sliding track received by the receiving unit 401 .
加载单元403,用于当所述用户由所述第一模式切换到所述第二模式时,将所述处理单元402确定的所述目标区域中的内容加载到所述第二模式的界面中。A loading unit 403, configured to load the content in the target area determined by the processing unit 402 into the interface of the second mode when the user switches from the first mode to the second mode .
进一步的,如图5所示,该装置还包括生成单元501,用于生成与所述第一模式对应的模式标识,所述模式标识用于表示所述处理单元402确定的所述目标区域中的内容来自所述第一模式。Further, as shown in FIG. 5 , the apparatus further includes a generating unit 501 configured to generate a mode identifier corresponding to the first mode, where the mode identifier is used to indicate that the target area determined by the processing unit 402 is in the target area. The content comes from the first mode.
加载单元403,还用于当所述用户由所述第一模式切换到所述第二模式时,将所述处理单元402确定的所述目标区域中的内容和所述生成单元501生成的所述模式标识加载到所述第二模式的界面中。The loading unit 403 is further configured to, when the user switches from the first mode to the second mode, load the content in the target area determined by the processing unit 402 with the content generated by the generating unit 501 The mode identifier is loaded into the interface of the second mode.
所述生成单元501,还用于根据所述处理单元402确定的所述目标区域中的内容生成目标图片,所述目标图片携带有所述目标区域中的内容及所述模式标识。The generating unit 501 is further configured to generate a target picture according to the content in the target area determined by the processing unit 402, where the target picture carries the content in the target area and the mode identifier.
所述加载单元403,还用于将所述生成单元501生成的所述目标图片加载到所述第二模式的界面中。The loading unit 403 is further configured to load the target image generated by the generating unit 501 into the interface of the second mode.
进一步的,如图5所示,该装置还包括:Further, as shown in Figure 5, the device also includes:
显示单元601,用于显示信息导入询问框,所述信息导入询问框用于询问用户是否将所述处理单元402确定的所述目标区域中的内容导入到所述第二模式的界面中。The display unit 601 is configured to display an information import query box, where the information import query box is used to ask a user whether to import the content in the target area determined by the processing unit 402 into the interface of the second mode.
所述加载单元403,还用于当接收到用户在所述显示单元601显示的信息导入询问框中的确认指示时,将所述目标区域中的内容加载到所述第二模式的界面中。The loading unit 403 is further configured to load the content in the target area into the interface of the second mode when receiving a confirmation instruction from the user in the information import query box displayed by the display unit 601 .
本发明提供的一种社交应用中数据处理的装置,接收单元,用于接收用户在当前所处的模式(第一模式)下输入的滑动轨迹;处理单元,用于根据该滑动轨迹确定目标区域;加载单元,用于当用户由第一模式切换到第二模式时,将目标区域中的内容加载到第二模式中。与现有技术中不存在将一种模式下的内容整合到另一模式下的技术方案相比,本发明通过将由用户在第一模式下输入的滑动轨迹确定的目标区域的内容自动加载到第二模式中,能够实现将一种模式下的内容整合到另一模式下,且该实现过程中只需用户选中相关的内容(确定目标区域),便可自动实现将目标区域中的内容的整合到另一模式下,因而操作步骤简单。A device for data processing in social applications provided by the present invention, the receiving unit is used for receiving the sliding track input by the user in the current mode (the first mode); the processing unit is used for determining the target area according to the sliding track ; The loading unit is used for loading the content in the target area into the second mode when the user switches from the first mode to the second mode. Compared with the technical solution of integrating the content in one mode into another mode in the prior art, the present invention automatically loads the content of the target area determined by the sliding track input by the user in the first mode into the first mode. In the second mode, the content in one mode can be integrated into another mode, and in the implementation process, only the user needs to select the relevant content (determine the target area), and the integration of the content in the target area can be automatically realized. to another mode, so the operation steps are simple.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general-purpose hardware, and of course can also be implemented by means of hardware, but in many cases the former is a better embodiment . Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products are stored in a readable storage medium, such as a floppy disk of a computer. , a hard disk or an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410725531.7A CN105718469B (en) | 2014-12-02 | 2014-12-02 | Method and device for processing data in social application |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410725531.7A CN105718469B (en) | 2014-12-02 | 2014-12-02 | Method and device for processing data in social application |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105718469A CN105718469A (en) | 2016-06-29 |
| CN105718469B true CN105718469B (en) | 2019-07-16 |
Family
ID=56142734
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410725531.7A Active CN105718469B (en) | 2014-12-02 | 2014-12-02 | Method and device for processing data in social application |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105718469B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103559288A (en) * | 2013-11-08 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for intelligent collecting and sharing |
| CN103888589A (en) * | 2012-12-20 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for realizing screenshot on application interface of mobile terminal |
| CN103997452A (en) * | 2013-02-20 | 2014-08-20 | 腾讯科技(深圳)有限公司 | Information sharing method and apparatus among multiple platforms |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103379135B (en) * | 2012-04-17 | 2015-11-11 | 腾讯科技(深圳)有限公司 | An information sharing method and device |
-
2014
- 2014-12-02 CN CN201410725531.7A patent/CN105718469B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103888589A (en) * | 2012-12-20 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for realizing screenshot on application interface of mobile terminal |
| CN103997452A (en) * | 2013-02-20 | 2014-08-20 | 腾讯科技(深圳)有限公司 | Information sharing method and apparatus among multiple platforms |
| CN103559288A (en) * | 2013-11-08 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for intelligent collecting and sharing |
Non-Patent Citations (1)
| Title |
|---|
| 图文教你如何将QQ截图直接分享到空间和微博;佚名;《https://www.jb51.net/qq/126109.html?pc》;20131224;第1-2页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105718469A (en) | 2016-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10673798B2 (en) | Method and system for providing notifications for group messages | |
| US11960709B2 (en) | Method and apparatus for displaying active friend information, electronic device, and storage medium | |
| CA2894332C (en) | Geo-location based event gallery | |
| CN112637039B (en) | Information processing method, device and storage medium | |
| US20170163580A1 (en) | Interactive method and device for playback of multimedia | |
| CN115079884B (en) | Method, device, equipment and storage medium for displaying conversation messages | |
| US11968427B2 (en) | Video message generation method and apparatus, electronic device, and storage medium | |
| WO2022161431A1 (en) | Display method, apparatus, and electronic device | |
| US11829588B2 (en) | Method, apparatus, and system for generating resource value transfer request | |
| CN112269504B (en) | Information display method and device and electronic equipment | |
| CN107404428A (en) | A chat group-based service method, device and electronic equipment | |
| US12106410B2 (en) | Customizing emojis for users in chat applications | |
| WO2022156606A1 (en) | Information processing method and apparatus, and electronic device | |
| CN104537049B (en) | A kind of picture browsing method and device | |
| CN115967691A (en) | Message processing method, message processing device, electronic equipment, storage medium and program product | |
| WO2015058618A1 (en) | Method and apparatus for displaying processing status | |
| CN114327088A (en) | Message sending method, device, electronic equipment and medium | |
| CN106775249B (en) | A method and electronic device for setting a communication shortcut | |
| CN114721755A (en) | To-do transaction message processing method and device and storage medium | |
| CN113965640B (en) | Message processing method and device | |
| CN105718469B (en) | Method and device for processing data in social application | |
| CN110704151A (en) | Information processing method and device and electronic equipment | |
| CN115665080A (en) | Information processing method, device, electronic device, storage medium, and program product | |
| CN115695354A (en) | Message processing method, message processing device, electronic equipment, storage medium and program product | |
| CN106911551B (en) | A kind of processing method and device for identifying pictures |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250604 Address after: 315000 Zhejiang Province, Ningbo High-tech Industrial Development Zone, No. 8 Huihai Road, Room 12-1 (Room Number: 1210) Patentee after: Ningbo Cross World Information Technology Co.,Ltd. Country or region after: China Address before: 523500 Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province Patentee before: Dongguan Yulong Communication Technology Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right |