[go: up one dir, main page]

CN105468357B - Message prompt method, device and the mobile terminal of social application - Google Patents

Message prompt method, device and the mobile terminal of social application Download PDF

Info

Publication number
CN105468357B
CN105468357B CN201510788648.4A CN201510788648A CN105468357B CN 105468357 B CN105468357 B CN 105468357B CN 201510788648 A CN201510788648 A CN 201510788648A CN 105468357 B CN105468357 B CN 105468357B
Authority
CN
China
Prior art keywords
contact
application
message
social
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510788648.4A
Other languages
Chinese (zh)
Other versions
CN105468357A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510788648.4A priority Critical patent/CN105468357B/en
Publication of CN105468357A publication Critical patent/CN105468357A/en
Application granted granted Critical
Publication of CN105468357B publication Critical patent/CN105468357B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提出一种社交应用的消息提示方法、装置和移动终端,该移动终端社交应用的消息提示方法包括在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知;根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人;在联系人是特定联系人时,获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。通过本发明能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。

The present invention proposes a message prompting method, device, and mobile terminal for a social application. The message prompting method for a social application of a mobile terminal includes when a contact in a social application of a mobile terminal sends a message, an application message notification that intercepts a contact sending a message ;According to the application message notification, determine whether the contact is a specific contact preset by the user and needs a unified prompt method; when the contact is a specific contact, obtain the user's preset unified prompt method for the specific contact, so that the mobile terminal The prompt mode is to prompt the application message notification. Through the present invention, the user can know whether the message is sent by a specific contact person only through the prompting method, thereby effectively improving the user experience.

Description

社交应用的消息提示方法、装置和移动终端Message prompt method, device and mobile terminal for social application

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种社交应用的消息提示方法、装置和移动终端。The present invention relates to the field of communication technology, in particular to a message prompting method, device and mobile terminal for social applications.

背景技术Background technique

随着移动终端的使用日益广泛,用户可以利用移动终端实现多种功能,例如,用户可以利用移动终端中的社交应用与好友进行通信。移动终端的社交应用例如微信、腾讯通讯工具(QQ)、Facebook、Viber,以及WhatsApp等。With the increasingly widespread use of mobile terminals, users can use the mobile terminals to implement various functions. For example, users can use social applications in the mobile terminals to communicate with friends. Social applications on mobile terminals include WeChat, Tencent Messaging Tool (QQ), Facebook, Viber, and WhatsApp, etc.

现有技术中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,当同一个联系人使用不同的社交应用向用户发送消息时,不同的社交应用对用户进行提示的提示方式不一致,在这种情况下,用户不能够仅仅通过提示方式获知是否是同一个联系人发送的消息。并且,用户在某些场合有可能仅仅只想接收到特别的联系人发送消息的应用消息通知。In the prior art, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, when the same contact uses different social applications to send messages to the user When different social applications prompt the user in different prompting ways, in this case, the user cannot know whether the message is sent by the same contact only through the prompting way. Moreover, the user may only want to receive application message notifications of messages sent by special contacts in some occasions.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

为此,本发明的一个目的在于提出一种社交应用的消息提示方法,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。Therefore, an object of the present invention is to propose a message prompting method for social applications, which enables users to know whether a message is sent by a specific contact only through a prompt, and effectively improves user experience.

本发明的另一个目的在于提出一种社交应用的消息提示装置。Another object of the present invention is to provide a message prompting device for a social application.

本发明的另一个目的在于提出一种移动终端。Another object of the present invention is to provide a mobile terminal.

为达到上述目的,本发明第一方面实施例提出的社交应用的消息提示方法,包括:在移动终端的社交应用中的联系人发送消息时,拦截所述联系人发送消息的应用消息通知;根据所述应用消息通知判断所述联系人是否是用户预设的需要统一提示方式的特定联系人;在所述联系人是所述特定联系人时,获取用户对所述特定联系人预设的统一提示方式,使所述移动终端以所述统一提示方式对所述应用消息通知进行提示。In order to achieve the above-mentioned purpose, the message prompting method for social application proposed by the embodiment of the first aspect of the present invention includes: when a contact in the social application of the mobile terminal sends a message, intercepting the application message notification of the contact sending a message; according to The application message notification determines whether the contact is a specific contact preset by the user and needs a unified prompt method; when the contact is the specific contact, obtain the user's preset unified A prompting manner, enabling the mobile terminal to prompt the application message notification in the unified prompting manner.

本发明第一方面实施例提出的社交应用的消息提示方法,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。The message prompting method for social applications proposed in the embodiment of the first aspect of the present invention, when a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal will prompt the application message in a unified way The prompt by the notification can enable the user to know whether the message is sent by a specific contact only through the prompt, effectively improving the user experience.

为达到上述目的,本发明第二方面实施例提出的社交应用的消息提示装置,包括:应用消息通知拦截模块,用于在移动终端的社交应用中的联系人发送消息时,拦截所述联系人发送消息的应用消息通知;第一判断模块,用于根据所述应用消息通知判断所述联系人是否是用户预设的需要统一提示方式的特定联系人;提示模块,用于在所述联系人是所述特定联系人时,获取用户对所述特定联系人预设的统一提示方式,使所述移动终端以所述统一提示方式对所述应用消息通知进行提示。In order to achieve the above purpose, the message prompting device for a social application proposed in the second aspect of the present invention includes: an application message notification interception module, configured to intercept a contact in a social application of a mobile terminal when the contact sends a message The application message notification for sending messages; the first judging module is used to judge whether the contact person is a specific contact person preset by the user who needs a unified prompting method according to the application message notification; the prompt module is used to notify the contact person When it is the specific contact, acquire the unified reminder mode preset by the user for the specific contact, and make the mobile terminal prompt the application message notification in the unified prompt mode.

本发明第二方面实施例提出的社交应用的消息提示装置,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。The message prompting device for social applications proposed in the embodiment of the second aspect of the present invention, when a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal will prompt the application message in a unified manner The prompt by the notification can enable the user to know whether the message is sent by a specific contact only through the prompt, effectively improving the user experience.

为达到上述目的,本发明第三方面实施例提出的移动终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为移动终端的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行:在移动终端的社交应用中的联系人发送消息时,拦截所述联系人发送消息的应用消息通知;根据所述应用消息通知判断所述联系人是否是用户预设的需要统一提示方式的特定联系人;在所述联系人是所述特定联系人时,获取用户对所述特定联系人预设的统一提示方式,使所述移动终端以所述统一提示方式对所述应用消息通知进行提示。To achieve the above object, the mobile terminal proposed in the embodiment of the third aspect of the present invention includes: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and The memory is set on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the mobile terminal; the memory is used to store executable program code; the processor runs and executes the program by reading the executable program code stored in the memory The program corresponding to the code is used to execute: when a contact in the social application of the mobile terminal sends a message, intercept the application message notification of the contact sending a message; judge whether the contact is a user according to the application message notification A preset specific contact person who needs a unified reminder method; when the contact person is the specific contact person, obtain the user preset unified reminder method for the specific contact person, so that the mobile terminal uses the unified reminder method The method prompts the application message notification.

本发明第三方面实施例提出的移动终端,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。In the mobile terminal proposed in the embodiment of the third aspect of the present invention, when a contact in a social application of the mobile terminal sends a message, when the contact is a specific contact, the mobile terminal is prompted for the application message notification in a unified prompting manner, It enables the user to know whether the message is sent by a specific contact person only by prompting, thereby effectively improving the user experience.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1是本发明一实施例提出的社交应用的消息提示方法的流程示意图;FIG. 1 is a schematic flowchart of a message prompting method for a social application proposed by an embodiment of the present invention;

图2是本发明实施例中社交应用中的联系人界面示意图;Fig. 2 is a schematic diagram of a contact interface in a social application in an embodiment of the present invention;

图3是本发明另一实施例提出的社交应用的消息提示方法的流程示意图;FIG. 3 is a schematic flowchart of a message prompting method for a social application proposed in another embodiment of the present invention;

图4是本发明另一实施例提出的社交应用的消息提示装置的结构示意图;FIG. 4 is a schematic structural diagram of a message prompting device for a social application proposed in another embodiment of the present invention;

图5是本发明另一实施例提出的社交应用的消息提示装置的结构示意图。Fig. 5 is a schematic structural diagram of a message prompting device for a social application according to another embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

图1是本发明一实施例提出的社交应用的消息提示方法的流程示意图,该社交应用的消息提示方法包括:Fig. 1 is a schematic flowchart of a message prompt method for a social application proposed by an embodiment of the present invention, the message prompt method for the social application includes:

S101:在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知。S101: When a contact in a social application of a mobile terminal sends a message, intercept an application message notification that the contact sends a message.

其中,移动终端可以是智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。Wherein, the mobile terminal may be a smart phone, a tablet computer, a personal digital assistant, an e-book, and other hardware devices with various operating systems.

移动终端的社交应用是能够使用户以手机、平板等移动终端为载体,以在线识别用户及交换信息技术为基础,按照流量计费,通过通信网络来实现社交的应用程序。The social application of mobile terminals is an application program that enables users to use mobile terminals such as mobile phones and tablets as carriers, based on online identification of users and exchange information technology, billing according to traffic, and socializing applications through communication networks.

应用程序可以是指运行在电子设备上的软件程序,电子设备例如为个人电脑(Personal Computer,PC),云端设备或者移动设备,移动设备例如智能手机,或者平板电脑等。An application program may refer to a software program running on an electronic device, such as a personal computer (Personal Computer, PC), a cloud device, or a mobile device, such as a smart phone, or a tablet computer.

移动终端的社交应用例如微信、腾讯通讯工具(QQ)、Facebook、Viber,以及WhatsApp等。Social applications on mobile terminals include WeChat, Tencent Messaging Tool (QQ), Facebook, Viber, and WhatsApp, etc.

用户在移动终端上使用社交应用时,需要在社交应用中添加常用的联系人的昵称信息,当需要与某位联系人进行通信时,可以直接在联系人列表中选中对应的联系人,以与该联系人进行通信。另一方面,当用户的某位联系人发送消息通知时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。When a user uses a social application on a mobile terminal, he needs to add the nickname information of a frequently used contact in the social application. When he needs to communicate with a certain contact, he can directly select the corresponding contact in the contact list to communicate with The contact communicates. On the other hand, when a contact of the user sends a message notification, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

如图2所示,以腾讯通讯工具(QQ)为例,图2是本发明实施例中社交应用中的联系人界面示意图。联系人的昵称信息包含联系人的头像21、昵称22,以及个性签名23等。当用户在腾讯通讯工具(QQ)中添加常用的联系人后,联系人的昵称信息会列在“我的好友”列表中,例如,当用户需要与昵称信息为“樱桃”的联系人进行通信时,可以直接在“我的好友”列表中双击昵称信息为“樱桃”的联系人的头像,以与该联系人进行通信。另一方面,当昵称信息为“樱桃”的联系人发来消息时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。As shown in FIG. 2 , taking Tencent communication tool (QQ) as an example, FIG. 2 is a schematic diagram of a contact interface in a social application in an embodiment of the present invention. The contact's nickname information includes the contact's avatar 21, nickname 22, and personalized signature 23, etc. When a user adds a frequently used contact in Tencent Communication Tool (QQ), the contact's nickname information will be listed in the "My Friends" list, for example, when the user needs to communicate with a contact whose nickname information is "cherry" , you can directly double-click the avatar of the contact whose nickname information is "cherry" in the "My Friends" list to communicate with the contact. On the other hand, when a contact whose nickname information is "cherry" sends a message, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

应用消息通知可以包含发送消息的联系人的昵称信息、通知的铃声、通知标题,以及通知内容等信息。The application message notification may include the nickname information of the contact who sent the message, the ringtone of the notification, the title of the notification, and the content of the notification.

具体地,应用消息通知的提示方式可以由用户在移动终端中预先根据需求设定。用户会在移动终端中安装多个社交应用,每一个社交应用中均会包含多个联系人,对于同一个社交应用中,不同的联系人发送消息时,对应的提示方式一致,而对于不同的社交应用,当有联系人发送消息时,对应的提示方式一致,或者,不一致。可以理解的是,在很多情况下,用户的同一个联系人的昵称信息,会存在于用户在移动终端中安装的多个社交应用中,而该联系人在每个社交应用中的昵称信息不一定一致,即多个社交应用中的不同的昵称信息,有可能在现实场景中均对应于同一个联系人。Specifically, the prompt mode of the application message notification can be set in advance by the user in the mobile terminal according to requirements. The user will install multiple social applications in the mobile terminal, and each social application will contain multiple contacts. For the same social application, when different contacts send messages, the corresponding prompts are consistent. In social applications, when a contact sends a message, the corresponding notification methods are consistent or inconsistent. It can be understood that in many cases, the nickname information of the same contact of the user will exist in multiple social applications installed by the user in the mobile terminal, and the nickname information of the contact in each social application is different. It must be consistent, that is, different nickname information in multiple social applications may all correspond to the same contact in real scenarios.

现有技术中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,当同一个联系人使用不同的社交应用向用户发送消息时,不同的社交应用对用户进行提示的提示方式不一致,在这种情况下,用户不能够仅仅通过提示方式获知是否是同一个联系人发送的消息。并且,用户在某些场合有可能仅仅只想接收到特别的联系人发送消息的应用消息通知。In the prior art, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, when the same contact uses different social applications to send messages to the user When different social applications prompt the user in different prompting ways, in this case, the user cannot know whether the message is sent by the same contact only through the prompting way. Moreover, the user may only want to receive application message notifications of messages sent by special contacts in some occasions.

可选地,在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知之前,还包括:开启移动终端的统一多方社交应用提示方式功能。Optionally, when a contact in the social application of the mobile terminal sends a message, before intercepting the application message notification of the message sent by the contact, the method further includes: enabling a unified multi-party social application prompt function of the mobile terminal.

可选地,开启移动终端的统一多方社交应用提示方式功能后,还包括:根据用户指令设置需要统一提示方式的特定联系人,并对特定联系人设置统一提示方式。Optionally, after enabling the unified multi-party social application notification method function of the mobile terminal, it also includes: setting specific contacts who need a unified notification method according to user instructions, and setting a unified notification method for the specific contacts.

可选地,在移动终端的社交应用中的联系人发送消息后,还包括:判断社交应用是否是预设社交应用;如果是预设社交应用,则拦截联系人发送消息的应用消息通知。Optionally, after a contact in the social application of the mobile terminal sends a message, the method further includes: judging whether the social application is a preset social application; if it is a preset social application, intercepting an application message notification that the contact sends a message.

S102:根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。S102: According to the application message notification, it is determined whether the contact is a specific contact preset by the user and needs a unified prompting method.

在本发明的实施例中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,用户可以预先设置特定联系人,以及对特定联系人设置统一提示方式。当特定联系人在多个社交应用中发送来消息时,不同的社交应用针对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式。这种情况下,用户仅仅通过提示方式便可获知是特定联系人发送的消息。In the embodiment of the present invention, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, the user can preset a specific contact, and Contacts set a unified notification method. When a specific contact sends a message in multiple social applications, different social applications have the same prompting method for the notification of the application message of the specific contact to the user, and the prompting method is a unified prompting method preset by the user. In this case, the user can learn that the message is sent by a specific contact only by prompting.

因此,需要根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。Therefore, it is necessary to judge whether the contact is a specific contact preset by the user according to the notification of the application message and needs a unified prompting method.

可选地,根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人,包括:根据应用消息通知获取联系人在应用消息通知对应的社交应用中的昵称信息;根据昵称信息判断联系人是否是用户预设的需要统一提示方式的特定联系人。Optionally, judging whether the contact is a user-preset specific contact that requires a unified notification method according to the application message notification includes: obtaining the contact's nickname information in the social application corresponding to the application message notification according to the application message notification; according to the nickname The information determines whether the contact is a specific contact preset by the user and needs a unified prompt method.

S103:在联系人是特定联系人时,获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。S103: When the contact is a specific contact, acquire a unified prompting method preset by the user for the specific contact, so that the mobile terminal prompts the application message notification in the unified prompting manner.

具体地,当联系人是用户预设的需要统一提示方式的特定联系人时,多个社交应用对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式,当联系人不是用户预设的需要统一提示方式的特定联系人时,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, when the contact is a specific contact preset by the user and requires a unified notification method, the application message notifications of multiple social applications for the specific contact have the same prompt method for the user, and the notification method is the one preset by the user. A unified notification method, when the contact is not a specific contact preset by the user and requires a unified notification method, the mobile terminal default notification method is used to prompt the application message notification.

本实施例中,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。In this embodiment, when a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal is made to prompt the application message notification in a unified prompting manner, so that the user can In this way, it can be learned whether the message is sent by a specific contact, which effectively improves the user experience.

图3是本发明另一实施例提出的社交应用的消息提示方法的流程示意图,该社交应用的消息提示方法包括:Fig. 3 is a schematic flowchart of a message prompting method for a social application proposed by another embodiment of the present invention, the message prompting method for a social application includes:

S301:开启移动终端的统一多方社交应用提示方式功能。S301: Enable the unified multi-party social application notification method function of the mobile terminal.

在本发明实施例中,统一多方社交应用提示方式功能可以实现将移动终端中不同的社交应用针对特定联系人的应用消息通知的提示方式设置为一致。In the embodiment of the present invention, the function of unifying the prompt mode of multi-party social application can realize that different social applications in the mobile terminal can set the prompt mode of application message notification for a specific contact to be consistent.

通过本步骤,可以在用户开启移动终端的统一多方社交应用提示方式功能,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,在用户不开启移动终端的统一多方社交应用提示方式功能,以移动终端默认的提示方式对应用消息通知进行提示,能够使用户根据自身需求灵活地选择是否设置在多方社交应用中针对特定联系人以统一提示方式对用户进行提示,有效提升用户的使用体验。Through this step, the user can enable the unified multi-party social application notification mode function of the mobile terminal. When the contact is a specific contact, the mobile terminal can prompt the application message notification in a unified notification mode. The multi-party social application reminder method function uses the default notification method of the mobile terminal to prompt the application message notification, allowing users to flexibly choose whether to set a unified reminder method for specific contacts in the multi-party social application according to their own needs. Effectively improve user experience.

S302:根据用户指令设置需要统一提示方式的特定联系人,并对特定联系人设置统一提示方式。S302: Set specific contacts who need a unified notification method according to the user instruction, and set a unified notification method for the specific contacts.

例如,用户可以在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,用户也可以在移动终端的统一多方社交应用提示方式功能的界面中,设置多个需要统一提示方式的特定联系人,例如用户同时设置联系人1和联系人2,且联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, the user can set the specific contact who needs a unified notification method as Contact 1 in the interface of the unified multi-party social application notification method function of the mobile terminal, and the nickname information of Contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, the user can also set multiple specific contacts that require a unified notification method in the interface of the unified multi-party social application notification method function of the mobile terminal. For example, the user sets both contact 1 and contact 2, and contact 2 is in Tencent The nickname information in the communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, the nickname information of contact 2 in WhatsApp is F, and the unified notification method for contact 2 is set as ringing reminder, and the ringing The bell is "Song 2".

本发明实施例中,统一提示方式以铃声为例。In the embodiment of the present invention, ringtones are used as an example for the unified prompting method.

S303:在移动终端的社交应用中的联系人发送消息时,判断社交应用是否是预设社交应用,若是,则执行步骤S305,否则执行步骤S304。S303: When a contact in the social application of the mobile terminal sends a message, determine whether the social application is a preset social application, if yes, execute step S305, otherwise execute step S304.

在本发明实施例中,预设社交应用的个数可以为一个,或者多个。In the embodiment of the present invention, the number of preset social applications may be one or more.

预设社交应用为用户预先选定的需要将该社交应用中的某位联系人发送的消息进行统一提示的社交应用。The preset social application is a social application pre-selected by the user that needs to be uniformly prompted for a message sent by a contact in the social application.

预设社交应用可以例如腾讯通讯工具(QQ)、微信,以及WhatsApp。The preset social applications can be, for example, Tencent Communication Tool (QQ), WeChat, and WhatsApp.

S304:不拦截联系人发送消息的应用消息通知,以使移动终端以默认的提示方式对应用消息通知进行提示。S304: Do not intercept the application message notification of the message sent by the contact, so that the mobile terminal prompts the application message notification in a default prompt manner.

具体地,如果发送消息的联系人所在的社交应用不是预设社交应用,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the social application of the contact who sent the message is not a preset social application, the application message notification of the message sent by the contact is not intercepted, and the application message notification is prompted in the default prompt mode of the mobile terminal.

例如,如果发送消息的联系人所在的社交应用为Facebook,而预设社交应用为腾讯通讯工具(QQ)、微信,以及WhatsApp,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。For example, if the social application of the contact who sends the message is Facebook, and the default social application is Tencent Communication Tool (QQ), WeChat, and WhatsApp, then the application message notification of the contact sending the message will not be intercepted, and the mobile terminal default The prompt mode is to prompt the application message notification.

通过本步骤,可以使用户根据自身需求设定需要将特定联系人的应用消息通知进行统一提示的社交应用,而避免将移动终端中所安装的包含该特定联系人的社交应用均进行特定联系人发送消息统一提示的不必要性。Through this step, the user can set the social application that needs to be notified of the application message of the specific contact for unified prompting according to the user's own needs, and avoids all the social applications installed in the mobile terminal containing the specific contact as the specific contact. Unnecessary to send a unified reminder of the message.

S305:拦截联系人发送消息的应用消息通知。S305: Intercept the application message notification of the message sent by the contact.

应用消息通知对应的移动终端中的程序代码可以例如:The program code in the mobile terminal corresponding to the application message notification can be, for example:

Notification notification=new Notification(icon,tickerText,when);Notification notification = new Notification(icon, tickerText, when);

notification.defaults|=Notification.DEFAULT_LIGHTS;//通知灯光notification.defaults|=Notification.DEFAULT_LIGHTS;//notification lights

notification.defaults|=Notification.DEFAULT_VIBRATE;//通知震动notification.defaults|=Notification.DEFAULT_VIBRATE;//notification vibration

notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//通知的铃声notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//Notification ringer

Context context=droidGap.getApplicationContext();Context context = droidGap. getApplicationContext();

//创建后在状态栏中通知的内容//The content to be notified in the status bar after creation

CharSequence contentTitle="未读消息提醒";//通知的标题CharSequence contentTitle="Unread message reminder";//The title of the notification

CharSequence contentTextCharSequence contentText

="您有"+Quantity+"条未读消息,请及时读取。";//通知的内容="You have "+Quantity+" unread messages, please read them in time.";//Notification content

Intent notificationIntentIntent notificationIntent

=new Intent(droidGap,MainActivity.class);= new Intent(droidGap, MainActivity.class);

PendingIntent contentIntentPendingIntent contentIntent

=PendingIntent.getActivity(droidGap,0,notificationIntent,0);=PendingIntent.getActivity(droidGap,0,notificationIntent,0);

notification.setLatestEventInfo(context,contentTitle,contentText,contentIntent);notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);

notificationManager.notify(NOTIFICATION_ID,notification).notificationManager. notify(NOTIFICATION_ID, notification).

具体地,可以通过移动终端操作系统的NotificationManager拦截联系人发送消息的应用消息通知。Specifically, the NotificationManager of the operating system of the mobile terminal can intercept the application message notification of the message sent by the contact.

S306:根据应用消息通知获取联系人在应用消息通知对应的社交应用中的昵称信息。S306: Obtain nickname information of the contact in the social application corresponding to the application message notification according to the application message notification.

具体地,可以通过NotificationManager获取联系人在应用消息通知对应的社交应用中的昵称信息。Specifically, the nickname information of the contact in the social application corresponding to the application message notification can be obtained through the NotificationManager.

S307:根据昵称信息判断联系人是否是用户预设的需要统一提示方式的特定联系人,若是,则执行步骤S309,否则执行步骤S308。S307: According to the nickname information, it is judged whether the contact person is a specific contact person preset by the user and needs to be prompted in a unified manner. If so, execute step S309, otherwise execute step S308.

具体地,通过NotificationManager获取到的发送消息的联系人在应用消息通知对应的社交应用中的昵称信息,以及NotificationManager对象的notify()方法,判断联系人是否是用户预设的需要统一提示方式的特定联系人。Specifically, through the nickname information of the contact person who sent the message in the social application corresponding to the application message notification obtained by the NotificationManager, and the notify() method of the NotificationManager object, it is judged whether the contact person is a specific user preset and needs a unified notification method. contacts.

S308:以移动终端默认的提示方式对应用消息通知进行提示。S308: Prompt the application message notification in the default prompt mode of the mobile terminal.

具体地,如果发送消息的联系人不是用户预设的需要统一提示方式的特定联系人,则以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the contact person who sends the message is not a specific contact preset by the user and requires a unified notification method, the application message notification is prompted in the default notification method of the mobile terminal.

S309:获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。S309: Obtain a unified prompting method preset by the user for a specific contact, so that the mobile terminal prompts the application message notification in a unified prompting manner.

例如,当用户在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,且用户同时设置联系人1和联系人2,联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, when the user sets the specific contact who needs a unified notification method as contact 1 in the interface of the unified multi-party social application prompt function function of the mobile terminal, and the nickname information of contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, and the user sets both contact 1 and contact 2, the nickname information of contact 2 in Tencent communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, and the nickname information of contact 2 in WhatsApp is The nickname information is F, and the unified reminder method for contact 2 is set as ringing reminder, and the ringing ring is "Song 2".

具体地,根据示例中用户的设置,步骤S306~S309的实现程序代码为:Specifically, according to the user's settings in the example, the implementation program code of steps S306-S309 is:

本实施例中,通过使用户根据自身需求灵活地选择是否设置在多方社交应用中针对特定联系人以统一提示方式对用户进行提示,有效提升用户的使用体验。通过使用户根据自身需求设定需要将特定联系人的应用消息通知进行统一提示的社交应用,而避免将移动终端中所安装的包含该特定联系人的社交应用均进行特定联系人发送消息统一提示的不必要性。通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,进一步提升用户的使用体验。In this embodiment, by allowing the user to flexibly choose whether to set a unified prompting method for a specific contact in the multi-party social application according to the user's own needs, the user experience is effectively improved. By enabling the user to set the social application that needs to be notified of the application message of the specific contact for unified prompting according to the user's own needs, it is avoided that all the social applications installed in the mobile terminal containing the specific contact will be uniformly prompted for the message sent by the specific contact unnecessary. When a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal can prompt the application message notification in a unified prompting manner, so that the user can know whether it is Messages sent by specific contacts to further enhance the user experience.

图4是本发明另一实施例提出的社交应用的消息提示装置的结构示意图,该社交应用的消息提示装置40包括应用消息通知拦截模块401、第一判断模块402,以及提示模块403,其中,4 is a schematic structural diagram of a message prompting device for a social application proposed by another embodiment of the present invention. The message prompting device 40 for a social application includes an application message notification interception module 401, a first judgment module 402, and a prompt module 403, wherein,

应用消息通知拦截模块401,用于在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知。The application message notification interception module 401 is used for intercepting the application message notification of the message sent by the contact when the contact in the social application of the mobile terminal sends a message.

其中,移动终端可以是智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。Wherein, the mobile terminal may be a smart phone, a tablet computer, a personal digital assistant, an e-book, and other hardware devices with various operating systems.

移动终端的社交应用是能够使用户以手机、平板等移动终端为载体,以在线识别用户及交换信息技术为基础,按照流量计费,通过通信网络来实现社交的应用程序。The social application of mobile terminals is an application program that enables users to use mobile terminals such as mobile phones and tablets as carriers, based on online identification of users and exchange information technology, billing according to traffic, and socializing applications through communication networks.

应用程序可以是指运行在电子设备上的软件程序,电子设备例如为个人电脑(Personal Computer,PC),云端设备或者移动设备,移动设备例如智能手机,或者平板电脑等。An application program may refer to a software program running on an electronic device, such as a personal computer (Personal Computer, PC), a cloud device, or a mobile device, such as a smart phone, or a tablet computer.

移动终端的社交应用例如微信、腾讯通讯工具(QQ)、Facebook、Viber,以及WhatsApp等。Social applications on mobile terminals include WeChat, Tencent Messaging Tool (QQ), Facebook, Viber, and WhatsApp, etc.

用户在移动终端上使用社交应用时,需要在社交应用中添加常用的联系人的昵称信息,当需要与某位联系人进行通信时,可以直接在联系人列表中选中对应的联系人,以与该联系人进行通信。另一方面,当用户的某位联系人发送消息通知时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。When a user uses a social application on a mobile terminal, he needs to add the nickname information of a frequently used contact in the social application. When he needs to communicate with a certain contact, he can directly select the corresponding contact in the contact list to communicate with The contact communicates. On the other hand, when a contact of the user sends a message notification, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

如图2所示,以腾讯通讯工具(QQ)为例,图2是本发明实施例中社交应用中的联系人界面示意图。联系人的昵称信息包含联系人的头像21、昵称22,以及个性签名23等。当用户在腾讯通讯工具(QQ)中添加常用的联系人后,联系人的昵称信息会列在“我的好友”列表中,例如,当用户需要与昵称信息为“樱桃”的联系人进行通信时,可以直接在“我的好友”列表中双击昵称信息为“樱桃”的联系人的头像,以与该联系人进行通信。另一方面,当昵称信息为“樱桃”的联系人发来消息时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。As shown in FIG. 2 , taking Tencent communication tool (QQ) as an example, FIG. 2 is a schematic diagram of a contact interface in a social application in an embodiment of the present invention. The contact's nickname information includes the contact's avatar 21, nickname 22, and personalized signature 23, etc. When a user adds a frequently used contact in Tencent Communication Tool (QQ), the contact's nickname information will be listed in the "My Friends" list, for example, when the user needs to communicate with a contact whose nickname information is "Cherry" , you can directly double-click the avatar of the contact whose nickname information is "cherry" in the "My Friends" list to communicate with the contact. On the other hand, when a contact whose nickname information is "cherry" sends a message, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

应用消息通知可以包含发送消息的联系人的昵称信息、通知的铃声、通知标题,以及通知内容等信息。The application message notification may include the nickname information of the contact who sent the message, the ringtone of the notification, the title of the notification, and the content of the notification.

具体地,应用消息通知的提示方式可以由用户在移动终端中预先根据需求设定。用户会在移动终端中安装多个社交应用,每一个社交应用中均会包含多个联系人,对于同一个社交应用中,不同的联系人发送消息时,对应的提示方式一致,而对于不同的社交应用,当有联系人发送消息时,对应的提示方式一致,或者,不一致。可以理解的是,在很多情况下,用户的同一个联系人的昵称信息,会存在于用户在移动终端中安装的多个社交应用中,而该联系人在每个社交应用中的昵称信息不一定一致,即多个社交应用中的不同的昵称信息,有可能在现实场景中均对应于同一个联系人。Specifically, the prompt mode of the application message notification can be set in advance by the user in the mobile terminal according to requirements. The user will install multiple social applications in the mobile terminal, and each social application will contain multiple contacts. For the same social application, when different contacts send messages, the corresponding prompts are consistent. In social applications, when a contact sends a message, the corresponding notification methods are consistent or inconsistent. It can be understood that in many cases, the nickname information of the same contact of the user will exist in multiple social applications installed by the user in the mobile terminal, and the nickname information of the contact in each social application is different. It must be consistent, that is, different nickname information in multiple social applications may all correspond to the same contact in real scenarios.

现有技术中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,当同一个联系人使用不同的社交应用向用户发送消息时,不同的社交应用对用户进行提示的提示方式不一致,在这种情况下,用户不能够仅仅通过提示方式获知是否是同一个联系人发送的消息。并且,用户在某些场合有可能仅仅只想接收到特别的联系人发送消息的应用消息通知。In the prior art, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, when the same contact uses different social applications to send messages to the user When different social applications prompt the user in different prompting ways, in this case, the user cannot know whether the message is sent by the same contact only through the prompting way. Moreover, the user may only want to receive application message notifications of messages sent by special contacts in some occasions.

可选地,如图5所示,该社交应用的消息提示装置40还包括开启模块404、特定联系人设置模块405,以及第二判断模块406,其中,Optionally, as shown in FIG. 5 , the message prompting device 40 of the social application further includes an opening module 404, a specific contact setting module 405, and a second judging module 406, wherein,

开启模块404,用于开启移动终端的统一多方社交应用提示方式功能。The enabling module 404 is configured to enable the unified multi-party social application prompt mode function of the mobile terminal.

在本发明实施例中,统一多方社交应用提示方式功能可以实现将移动终端中不同的社交应用针对特定联系人的应用消息通知的提示方式设置为一致。In the embodiment of the present invention, the function of unifying the prompt mode of multi-party social application can realize that different social applications in the mobile terminal can set the prompt mode of application message notification for a specific contact to be consistent.

通过本步骤,可以在用户开启移动终端的统一多方社交应用提示方式功能,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,在用户不开启移动终端的统一多方社交应用提示方式功能,以移动终端默认的提示方式对应用消息通知进行提示,能够使用户根据自身需求灵活地选择是否设置在多方社交应用中针对特定联系人以统一提示方式对用户进行提示,有效提升用户的使用体验。Through this step, the user can enable the unified multi-party social application notification mode function of the mobile terminal. When the contact is a specific contact, the mobile terminal can prompt the application message notification in a unified notification mode. The multi-party social application reminder method function uses the default notification method of the mobile terminal to prompt the application message notification, allowing users to flexibly choose whether to set a unified reminder method for specific contacts in the multi-party social application according to their own needs. Effectively improve user experience.

特定联系人设置模块405,用于根据用户指令设置需要统一提示方式的特定联系人,并对特定联系人设置统一提示方式。The specific contact setting module 405 is configured to set specific contacts who need a unified reminder method according to user instructions, and set a unified reminder method for the specific contacts.

例如,用户可以在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,用户也可以在移动终端的统一多方社交应用提示方式功能的界面中,设置多个需要统一提示方式的特定联系人,例如用户同时设置联系人1和联系人2,且联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, the user can set the specific contact who needs a unified notification method as Contact 1 in the interface of the unified multi-party social application notification method function of the mobile terminal, and the nickname information of Contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, the user can also set multiple specific contacts that require a unified notification method in the interface of the unified multi-party social application notification method function of the mobile terminal. For example, the user sets both contact 1 and contact 2, and contact 2 is in Tencent The nickname information in the communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, the nickname information of contact 2 in WhatsApp is F, and the unified notification method for contact 2 is set as ringing reminder, and the ringing The bell is "Song 2".

本发明实施例中,统一提示方式以铃声为例。In the embodiment of the present invention, ringtones are used as an example for the unified prompting method.

第二判断模块406,用于判断社交应用是否是预设社交应用。The second judging module 406 is configured to judge whether the social application is a preset social application.

在本发明实施例中,预设社交应用的个数可以为一个,或者多个。In the embodiment of the present invention, the number of preset social applications may be one or more.

预设社交应用为用户预先选定的需要将该社交应用中的某位联系人发送的消息进行统一提示的社交应用。The preset social application is a social application pre-selected by the user that needs to be uniformly prompted for a message sent by a contact in the social application.

预设社交应用可以例如腾讯通讯工具(QQ)、微信,以及WhatsApp。The preset social applications can be, for example, Tencent Communication Tool (QQ), WeChat, and WhatsApp.

应用消息通知拦截模块401还用于在社交应用是预设社交应用时,拦截联系人发送消息的应用消息通知。The application message notification interception module 401 is further configured to intercept application message notifications of messages sent by contacts when the social application is a preset social application.

应用消息通知对应的移动终端中的程序代码可以例如:The program code in the mobile terminal corresponding to the application message notification can be, for example:

Notification notification=new Notification(icon,tickerText,when);Notification notification = new Notification(icon, tickerText, when);

notification.defaults|=Notification.DEFAULT_LIGHTS;//通知灯光notification.defaults|=Notification.DEFAULT_LIGHTS;//notification lights

notification.defaults|=Notification.DEFAULT_VIBRATE;//通知震动notification.defaults|=Notification.DEFAULT_VIBRATE;//notification vibration

notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//通知的铃声notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//Notification ringer

Context context=droidGap.getApplicationContext();Context context = droidGap. getApplicationContext();

//创建后在状态栏中通知的内容//The content to be notified in the status bar after creation

CharSequence contentTitle="未读消息提醒";//通知的标题CharSequence contentTitle="Unread message reminder";//The title of the notification

CharSequence contentTextCharSequence contentText

="您有"+Quantity+"条未读消息,请及时读取。";//通知的内容="You have "+Quantity+" unread messages, please read them in time.";//Notification content

Intent notificationIntentIntent notificationIntent

=new Intent(droidGap,MainActivity.class);= new Intent(droidGap, MainActivity.class);

PendingIntent contentIntentPendingIntent contentIntent

=PendingIntent.getActivity(droidGap,0,notificationIntent,0);=PendingIntent.getActivity(droidGap,0,notificationIntent,0);

notification.setLatestEventInfo(context,contentTitle,contentText,contentIntent);notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);

notificationManager.notify(NOTIFICATION_ID,notification).notificationManager. notify(NOTIFICATION_ID, notification).

具体地,可以通过移动终端操作系统的NotificationManager拦截联系人发送消息的应用消息通知。Specifically, the NotificationManager of the operating system of the mobile terminal can intercept the application message notification of the message sent by the contact.

应用消息通知拦截模块401还用于在社交应用不是预设社交应用时,不拦截联系人发送消息的应用消息通知,以使移动终端以默认的提示方式对应用消息通知进行提示。The application message notification interception module 401 is also used for not intercepting the application message notification sent by the contact when the social application is not a preset social application, so that the mobile terminal prompts the application message notification in a default prompt manner.

具体地,如果发送消息的联系人所在的社交应用不是预设社交应用,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the social application of the contact who sent the message is not a preset social application, the application message notification of the message sent by the contact is not intercepted, and the application message notification is prompted in the default prompt mode of the mobile terminal.

例如,如果发送消息的联系人所在的社交应用为Facebook,而预设社交应用为腾讯通讯工具(QQ)、微信,以及WhatsApp,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。For example, if the social application of the contact who sends the message is Facebook, and the default social application is Tencent Communication Tool (QQ), WeChat, and WhatsApp, then the application message notification of the contact sending the message will not be intercepted, and the mobile terminal default The prompt mode is to prompt the application message notification.

通过本步骤,可以使用户根据自身需求设定需要将特定联系人的应用消息通知进行统一提示的社交应用,而避免将移动终端中所安装的包含该特定联系人的社交应用均进行特定联系人发送消息统一提示的不必要性。Through this step, the user can set the social application that needs to be notified of the application message of the specific contact for unified prompting according to the user's own needs, and avoids all the social applications installed in the mobile terminal containing the specific contact as the specific contact. Unnecessary to send a unified reminder of the message.

第一判断模块402,用于根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。The first judging module 402 is configured to judge whether the contact is a specific contact preset by the user and needs a unified prompting method according to the application message notification.

在本发明的实施例中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,用户可以预先设置特定联系人,以及对特定联系人设置统一提示方式。当特定联系人在多个社交应用中发送来消息时,不同的社交应用针对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式。这种情况下,用户仅仅通过提示方式便可获知是特定联系人发送的消息。In the embodiment of the present invention, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, the user can preset a specific contact, and Contacts set a unified notification method. When a specific contact sends a message in multiple social applications, different social applications have the same prompting method for the notification of the application message of the specific contact to the user, and the prompting method is a unified prompting method preset by the user. In this case, the user can learn that the message is sent by a specific contact only by prompting.

因此,需要根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。Therefore, it is necessary to judge whether the contact is a specific contact preset by the user according to the notification of the application message and needs a unified prompting method.

可选地,第一判断模块402具体用于:根据应用消息通知获取联系人在应用消息通知对应的社交应用中的昵称信息;根据昵称信息判断联系人是否是用户预设的需要统一提示方式的特定联系人。Optionally, the first judgment module 402 is specifically configured to: obtain the nickname information of the contact in the social application corresponding to the application message notification according to the application message notification; specific contacts.

具体地,可以通过NotificationManager获取联系人在应用消息通知对应的社交应用中的昵称信息。Specifically, the nickname information of the contact in the social application corresponding to the application message notification can be obtained through the NotificationManager.

具体地,通过NotificationManager获取到的发送消息的联系人在应用消息通知对应的社交应用中的昵称信息,以及NotificationManager对象的notify()方法,判断联系人是否是用户预设的需要统一提示方式的特定联系人。Specifically, through the nickname information of the contact person who sent the message in the social application corresponding to the application message notification obtained by the NotificationManager, and the notify() method of the NotificationManager object, it is judged whether the contact person is a specific user preset and needs a unified notification method. contacts.

提示模块403,用于在联系人是特定联系人时,获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。The prompting module 403 is configured to obtain a unified prompting method preset by the user for the specific contact when the contact is a specific contact, so that the mobile terminal can prompt the application message notification in the unified prompting mode.

具体地,当联系人是用户预设的需要统一提示方式的特定联系人时,多个社交应用对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式,当联系人不是用户预设的需要统一提示方式的特定联系人时,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, when the contact is a specific contact preset by the user and requires a unified notification method, the application message notifications of multiple social applications for the specific contact have the same prompt method for the user, and the notification method is the one preset by the user. A unified notification method, when the contact is not a specific contact preset by the user and requires a unified notification method, the mobile terminal default notification method is used to prompt the application message notification.

例如,当用户在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,且用户同时设置联系人1和联系人2,联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, when the user sets the specific contact who needs a unified notification method as contact 1 in the interface of the unified multi-party social application prompt function function of the mobile terminal, and the nickname information of contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, and the user sets both contact 1 and contact 2, the nickname information of contact 2 in Tencent communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, and the nickname information of contact 2 in WhatsApp is The nickname information is F, and the unified reminder method for contact 2 is set as ringing reminder, and the ringing ring is "Song 2".

具体地,根据示例中用户的设置,步骤S306~S309的实现程序代码为:Specifically, according to the user's settings in the example, the implementation program code of steps S306-S309 is:

可选地,提示模块403还用于:在联系人不是特定联系人时,使移动终端以默认的提示方式对应用消息通知进行提示。Optionally, the prompt module 403 is further configured to: when the contact is not a specific contact, make the mobile terminal prompt the application message notification in a default prompt manner.

具体地,如果发送消息的联系人不是用户预设的需要统一提示方式的特定联系人,则以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the contact person who sends the message is not a specific contact preset by the user and requires a unified notification method, the application message notification is prompted in the default notification method of the mobile terminal.

本实施例中,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。In this embodiment, when a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal is made to prompt the application message notification in a unified prompting manner, so that the user can In this way, it can be learned whether the message is sent by a specific contact, which effectively improves the user experience.

本发明实施例还提供了一种移动终端,该移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为移动终端的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行:An embodiment of the present invention also provides a mobile terminal, which includes a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged in On the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal; the memory is used to store the executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory program to execute:

S101’:在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知。S101': When a contact in a social application of the mobile terminal sends a message, intercept an application message notification that the contact sends a message.

其中,移动终端可以是智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。Wherein, the mobile terminal may be a smart phone, a tablet computer, a personal digital assistant, an e-book, and other hardware devices with various operating systems.

移动终端的社交应用是能够使用户以手机、平板等移动终端为载体,以在线识别用户及交换信息技术为基础,按照流量计费,通过通信网络来实现社交的应用程序。The social application of mobile terminals is an application program that enables users to use mobile terminals such as mobile phones and tablets as carriers, based on online identification of users and exchange information technology, billing according to traffic, and socializing applications through communication networks.

应用程序可以是指运行在电子设备上的软件程序,电子设备例如为个人电脑(Personal Computer,PC),云端设备或者移动设备,移动设备例如智能手机,或者平板电脑等。An application program may refer to a software program running on an electronic device, such as a personal computer (Personal Computer, PC), a cloud device, or a mobile device, such as a smart phone, or a tablet computer.

移动终端的社交应用例如微信、腾讯通讯工具(QQ)、Facebook、Viber,以及WhatsApp等。Social applications on mobile terminals include WeChat, Tencent Messaging Tool (QQ), Facebook, Viber, and WhatsApp, etc.

用户在移动终端上使用社交应用时,需要在社交应用中添加常用的联系人的昵称信息,当需要与某位联系人进行通信时,可以直接在联系人列表中选中对应的联系人,以与该联系人进行通信。另一方面,当用户的某位联系人发送消息通知时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。When a user uses a social application on a mobile terminal, he needs to add the nickname information of a frequently used contact in the social application. When he needs to communicate with a certain contact, he can directly select the corresponding contact in the contact list to communicate with The contact communicates. On the other hand, when a contact of the user sends a message notification, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

如图2所示,以腾讯通讯工具(QQ)为例,图2是本发明实施例中社交应用中的联系人界面示意图。联系人的昵称信息包含联系人的头像21、昵称22,以及个性签名23等。当用户在腾讯通讯工具(QQ)中添加常用的联系人后,联系人的昵称信息会列在“我的好友”列表中,例如,当用户需要与昵称信息为“樱桃”的联系人进行通信时,可以直接在“我的好友”列表中双击昵称信息为“樱桃”的联系人的头像,以与该联系人进行通信。另一方面,当昵称信息为“樱桃”的联系人发来消息时,移动终端中的操作系统会生成应用消息通知,通过应用消息通知对用户进行提示。As shown in FIG. 2 , taking Tencent communication tool (QQ) as an example, FIG. 2 is a schematic diagram of a contact interface in a social application in an embodiment of the present invention. The contact's nickname information includes the contact's avatar 21, nickname 22, and personalized signature 23, etc. When a user adds a frequently used contact in Tencent Communication Tool (QQ), the contact's nickname information will be listed in the "My Friends" list, for example, when the user needs to communicate with a contact whose nickname information is "cherry" , you can directly double-click the avatar of the contact whose nickname information is "cherry" in the "My Friends" list to communicate with the contact. On the other hand, when a contact whose nickname information is "cherry" sends a message, the operating system in the mobile terminal will generate an application message notification, and prompt the user through the application message notification.

应用消息通知可以包含发送消息的联系人的昵称信息、通知的铃声、通知标题,以及通知内容等信息。The application message notification may include the nickname information of the contact who sent the message, the ringtone of the notification, the title of the notification, and the content of the notification.

具体地,应用消息通知的提示方式可以由用户在移动终端中预先根据需求设定。用户会在移动终端中安装多个社交应用,每一个社交应用中均会包含多个联系人,对于同一个社交应用中,不同的联系人发送消息时,对应的提示方式一致,而对于不同的社交应用,当有联系人发送消息时,对应的提示方式一致,或者,不一致。可以理解的是,在很多情况下,用户的同一个联系人的昵称信息,会存在于用户在移动终端中安装的多个社交应用中,而该联系人在每个社交应用中的昵称信息不一定一致,即多个社交应用中的不同的昵称信息,有可能在现实场景中均对应于同一个联系人。Specifically, the prompt mode of the application message notification can be set in advance by the user in the mobile terminal according to requirements. The user will install multiple social applications in the mobile terminal, and each social application will contain multiple contacts. For the same social application, when different contacts send messages, the corresponding prompts are consistent. In social applications, when a contact sends a message, the corresponding notification methods are consistent or inconsistent. It can be understood that in many cases, the nickname information of the same contact of the user will exist in multiple social applications installed by the user in the mobile terminal, and the nickname information of the contact in each social application is different. It must be consistent, that is, different nickname information in multiple social applications may all correspond to the same contact in real scenarios.

现有技术中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,当同一个联系人使用不同的社交应用向用户发送消息时,不同的社交应用对用户进行提示的提示方式不一致,在这种情况下,用户不能够仅仅通过提示方式获知是否是同一个联系人发送的消息。并且,用户在某些场合有可能仅仅只想接收到特别的联系人发送消息的应用消息通知。In the prior art, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, when the same contact uses different social applications to send messages to the user When different social applications prompt the user in different prompting ways, in this case, the user cannot know whether the message is sent by the same contact only through the prompting way. Moreover, the user may only want to receive application message notifications of messages sent by special contacts in some occasions.

可选地,在移动终端的社交应用中的联系人发送消息时,拦截联系人发送消息的应用消息通知之前,还包括:开启移动终端的统一多方社交应用提示方式功能。Optionally, when a contact in the social application of the mobile terminal sends a message, before intercepting the application message notification of the message sent by the contact, the method further includes: enabling a unified multi-party social application prompt function of the mobile terminal.

可选地,开启移动终端的统一多方社交应用提示方式功能后,还包括:根据用户指令设置需要统一提示方式的特定联系人,并对特定联系人设置统一提示方式。Optionally, after enabling the unified multi-party social application notification method function of the mobile terminal, it also includes: setting specific contacts who need a unified notification method according to user instructions, and setting a unified notification method for the specific contacts.

可选地,在移动终端的社交应用中的联系人发送消息后,还包括:判断社交应用是否是预设社交应用;如果是预设社交应用,则拦截联系人发送消息的应用消息通知。Optionally, after a contact in the social application of the mobile terminal sends a message, the method further includes: judging whether the social application is a preset social application; if it is a preset social application, intercepting an application message notification that the contact sends a message.

S102’:根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。S102': According to the application message notification, it is judged whether the contact is a specific contact preset by the user and needs a unified prompt method.

在本发明的实施例中,在多个社交应用中的不同的昵称信息对应于同一个联系人,且多个社交应用的提示方式不一致的情况下,用户可以预先设置特定联系人,以及对特定联系人设置统一提示方式。当特定联系人在多个社交应用中发送来消息时,不同的社交应用针对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式。这种情况下,用户仅仅通过提示方式便可获知是特定联系人发送的消息。In the embodiment of the present invention, when different nickname information in multiple social applications corresponds to the same contact, and the notification methods of multiple social applications are inconsistent, the user can preset a specific contact, and Contacts set a unified notification method. When a specific contact sends a message in multiple social applications, different social applications have the same prompting method for the notification of the application message of the specific contact to the user, and the prompting method is a unified prompting method preset by the user. In this case, the user can learn that the message is sent by a specific contact only by prompting.

因此,需要根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人。Therefore, it is necessary to judge whether the contact is a specific contact preset by the user according to the notification of the application message and needs a unified prompting method.

可选地,根据应用消息通知判断联系人是否是用户预设的需要统一提示方式的特定联系人,包括:根据应用消息通知获取联系人在应用消息通知对应的社交应用中的昵称信息;根据昵称信息判断联系人是否是用户预设的需要统一提示方式的特定联系人。Optionally, judging whether the contact is a user-preset specific contact that requires a unified notification method according to the application message notification includes: obtaining the contact's nickname information in the social application corresponding to the application message notification according to the application message notification; according to the nickname The information determines whether the contact is a specific contact preset by the user and needs a unified prompt method.

S103’:在联系人是特定联系人时,获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。S103': When the contact is a specific contact, obtain the unified notification method preset by the user for the specific contact, so that the mobile terminal prompts the application message notification in the unified notification method.

具体地,当联系人是用户预设的需要统一提示方式的特定联系人时,多个社交应用对该特定联系人的应用消息通知对用户进行提示的提示方式一致,提示方式为用户预先设置的统一提示方式,当联系人不是用户预设的需要统一提示方式的特定联系人时,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, when the contact is a specific contact preset by the user and requires a unified notification method, the application message notifications of multiple social applications for the specific contact have the same prompt method for the user, and the notification method is the one preset by the user. A unified notification method, when the contact is not a specific contact preset by the user and requires a unified notification method, the mobile terminal default notification method is used to prompt the application message notification.

本实施例中,通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,有效提升用户的使用体验。In this embodiment, when a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal is made to prompt the application message notification in a unified prompting manner, so that the user can In this way, it can be learned whether the message is sent by a specific contact, which effectively improves the user experience.

另一实施例中,处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行:In another embodiment, the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute:

S301’:开启移动终端的统一多方社交应用提示方式功能。S301': Enable the unified multi-party social application prompt function of the mobile terminal.

在本发明实施例中,统一多方社交应用提示方式功能可以实现将移动终端中不同的社交应用针对特定联系人的应用消息通知的提示方式设置为一致。In the embodiment of the present invention, the function of unifying the prompt mode of multi-party social application can realize that different social applications in the mobile terminal can set the prompt mode of application message notification for a specific contact to be consistent.

通过本步骤,可以在用户开启移动终端的统一多方社交应用提示方式功能,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,在用户不开启移动终端的统一多方社交应用提示方式功能,以移动终端默认的提示方式对应用消息通知进行提示,能够使用户根据自身需求灵活地选择是否设置在多方社交应用中针对特定联系人以统一提示方式对用户进行提示,有效提升用户的使用体验。Through this step, the user can enable the unified multi-party social application notification mode function of the mobile terminal. When the contact is a specific contact, the mobile terminal can prompt the application message notification in a unified notification mode. The multi-party social application reminder method function uses the default notification method of the mobile terminal to prompt the application message notification, allowing users to flexibly choose whether to set a unified reminder method for specific contacts in the multi-party social application according to their own needs. Effectively improve user experience.

S302’:根据用户指令设置需要统一提示方式的特定联系人,并对特定联系人设置统一提示方式。S302': According to the user instruction, set a specific contact person who needs a unified notification method, and set a unified notification method for the specific contact person.

例如,用户可以在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,用户也可以在移动终端的统一多方社交应用提示方式功能的界面中,设置多个需要统一提示方式的特定联系人,例如用户同时设置联系人1和联系人2,且联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, the user can set the specific contact who needs a unified notification method as Contact 1 in the interface of the unified multi-party social application notification method function of the mobile terminal, and the nickname information of Contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, the user can also set multiple specific contacts that require a unified notification method in the interface of the unified multi-party social application notification method function of the mobile terminal. For example, the user sets both contact 1 and contact 2, and contact 2 is in Tencent The nickname information in the communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, the nickname information of contact 2 in WhatsApp is F, and the unified notification method for contact 2 is set as ringing reminder, and the ringing The bell is "Song 2".

本发明实施例中,统一提示方式以铃声为例。In the embodiment of the present invention, ringtones are used as an example for the unified prompting method.

S303’:在移动终端的社交应用中的联系人发送消息时,判断社交应用是否是预设社交应用,若是,则执行步骤S305’,否则执行步骤S304’。S303': When a contact in the social application of the mobile terminal sends a message, determine whether the social application is a preset social application, if so, execute step S305', otherwise execute step S304'.

在本发明实施例中,预设社交应用的个数可以为一个,或者多个。In the embodiment of the present invention, the number of preset social applications may be one or more.

预设社交应用为用户预先选定的需要将该社交应用中的某位联系人发送的消息进行统一提示的社交应用。The preset social application is a social application pre-selected by the user that needs to be uniformly prompted for a message sent by a contact in the social application.

预设社交应用可以例如腾讯通讯工具(QQ)、微信,以及WhatsApp。The preset social applications can be, for example, Tencent Communication Tool (QQ), WeChat, and WhatsApp.

S304’:不拦截联系人发送消息的应用消息通知,以使移动终端以默认的提示方式对应用消息通知进行提示。S304': Do not intercept the application message notification of the message sent by the contact, so that the mobile terminal prompts the application message notification in a default prompt manner.

具体地,如果发送消息的联系人所在的社交应用不是预设社交应用,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the social application of the contact who sent the message is not a preset social application, the application message notification of the message sent by the contact is not intercepted, and the application message notification is prompted in the default prompt mode of the mobile terminal.

例如,如果发送消息的联系人所在的社交应用为Facebook,而预设社交应用为腾讯通讯工具(QQ)、微信,以及WhatsApp,则不拦截联系人发送消息的应用消息通知,以移动终端默认的提示方式对应用消息通知进行提示。For example, if the social application of the contact who sends the message is Facebook, and the default social application is Tencent Communication Tool (QQ), WeChat, and WhatsApp, then the application message notification of the contact sending the message will not be intercepted, and the mobile terminal default The prompt mode is to prompt the application message notification.

通过本步骤,可以使用户根据自身需求设定需要将特定联系人的应用消息通知进行统一提示的社交应用,而避免将移动终端中所安装的包含该特定联系人的社交应用均进行特定联系人发送消息统一提示的不必要性。Through this step, the user can set the social application that needs to be notified of the application message of the specific contact for unified prompting according to the user's own needs, and avoids all the social applications installed in the mobile terminal containing the specific contact as the specific contact. Unnecessary to send a unified reminder of the message.

S305’:拦截联系人发送消息的应用消息通知。S305': intercepting the application message notification of the message sent by the contact.

应用消息通知对应的移动终端中的程序代码可以例如:The program code in the mobile terminal corresponding to the application message notification can be, for example:

Notification notification=new Notification(icon,tickerText,when);Notification notification = new Notification(icon, tickerText, when);

notification.defaults|=Notification.DEFAULT_LIGHTS;//通知灯光notification.defaults|=Notification.DEFAULT_LIGHTS;//notification lights

notification.defaults|=Notification.DEFAULT_VIBRATE;//通知震动notification.defaults|=Notification.DEFAULT_VIBRATE;//notification vibration

notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//通知的铃声notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3");//Notification ringer

Context context=droidGap.getApplicationContext();Context context = droidGap. getApplicationContext();

//创建后在状态栏中通知的内容//The content to be notified in the status bar after creation

CharSequence contentTitle="未读消息提醒";//通知的标题CharSequence contentTitle="Unread message reminder";//The title of the notification

CharSequence contentTextCharSequence contentText

="您有"+Quantity+"条未读消息,请及时读取。";//通知的内容="You have "+Quantity+" unread messages, please read them in time.";//Notification content

Intent notificationIntentIntent notificationIntent

=new Intent(droidGap,MainActivity.class);= new Intent(droidGap, MainActivity.class);

PendingIntent contentIntentPendingIntent contentIntent

=PendingIntent.getActivity(droidGap,0,notificationIntent,0);=PendingIntent.getActivity(droidGap,0,notificationIntent,0);

notification.setLatestEventInfo(context,contentTitle,contentText,contentIntent);notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);

notificationManager.notify(NOTIFICATION_ID,notification).notificationManager. notify(NOTIFICATION_ID, notification).

具体地,可以通过移动终端操作系统的NotificationManager拦截联系人发送消息的应用消息通知。Specifically, the NotificationManager of the operating system of the mobile terminal can intercept the application message notification of the message sent by the contact.

S306’:根据应用消息通知获取联系人在应用消息通知对应的社交应用中的昵称信息。S306': Obtain nickname information of the contact in the social application corresponding to the application message notification according to the application message notification.

具体地,可以通过NotificationManager获取联系人在应用消息通知对应的社交应用中的昵称信息。Specifically, the nickname information of the contact in the social application corresponding to the application message notification can be obtained through the NotificationManager.

S307’:根据昵称信息判断联系人是否是用户预设的需要统一提示方式的特定联系人,若是,则执行步骤S309’,否则执行步骤S308’。S307': According to the nickname information, it is judged whether the contact person is a specific contact person preset by the user who needs a unified prompting method, if so, then execute step S309', otherwise execute step S308'.

具体地,通过NotificationManager获取到的发送消息的联系人在应用消息通知对应的社交应用中的昵称信息,以及NotificationManager对象的notify()方法,判断联系人是否是用户预设的需要统一提示方式的特定联系人。Specifically, through the nickname information of the contact person who sent the message in the social application corresponding to the application message notification obtained by the NotificationManager, and the notify() method of the NotificationManager object, it is judged whether the contact person is a specific user preset and needs a unified notification method. contacts.

S308’:以移动终端默认的提示方式对应用消息通知进行提示。S308': Prompt the application message notification in the default prompt mode of the mobile terminal.

具体地,如果发送消息的联系人不是用户预设的需要统一提示方式的特定联系人,则以移动终端默认的提示方式对应用消息通知进行提示。Specifically, if the contact person who sends the message is not a specific contact preset by the user and requires a unified notification method, the application message notification is prompted in the default notification method of the mobile terminal.

S309’:获取用户对特定联系人预设的统一提示方式,使移动终端以统一提示方式对应用消息通知进行提示。S309': Obtain the user's preset unified prompting method for a specific contact, so that the mobile terminal prompts the application message notification in a unified prompting manner.

例如,当用户在移动终端的统一多方社交应用提示方式功能的界面中,设置需要统一提示方式的特定联系人为联系人1,且联系人1在腾讯通讯工具(QQ)中的昵称信息为A,联系人1在微信中的昵称信息为B,联系人1在WhatsApp中的昵称信息为C,对联系人1设置统一提示方式为响铃提示,响铃为“歌曲1”。同时,且用户同时设置联系人1和联系人2,联系人2在腾讯通讯工具(QQ)中的昵称信息为D,联系人2在微信中的昵称信息为E,联系人2在WhatsApp中的昵称信息为F,对联系人2设置统一提示方式为响铃提示,响铃为“歌曲2”。For example, when the user sets the specific contact who needs a unified notification method as contact 1 in the interface of the unified multi-party social application prompt function function of the mobile terminal, and the nickname information of contact 1 in the Tencent communication tool (QQ) is A, The nickname information of contact 1 in WeChat is B, the nickname information of contact 1 in WhatsApp is C, and the unified notification method for contact 1 is set as ringing reminder, and the ringing is "Song 1". At the same time, and the user sets both contact 1 and contact 2, the nickname information of contact 2 in Tencent communication tool (QQ) is D, the nickname information of contact 2 in WeChat is E, and the nickname information of contact 2 in WhatsApp is The nickname information is F, and the unified reminder method for contact 2 is set as ringing reminder, and the ringing ring is "Song 2".

具体地,根据示例中用户的设置,步骤S306’~S309’的实现程序代码为:Specifically, according to the user's settings in the example, the implementation program code of steps S306'~S309' is:

本实施例中,通过使用户根据自身需求灵活地选择是否设置在多方社交应用中针对特定联系人以统一提示方式对用户进行提示,有效提升用户的使用体验。通过使用户根据自身需求设定需要将特定联系人的应用消息通知进行统一提示的社交应用,而避免将移动终端中所安装的包含该特定联系人的社交应用均进行特定联系人发送消息统一提示的不必要性。通过在移动终端的社交应用中的联系人发送消息时,在联系人是特定联系人时,使移动终端以统一提示方式对应用消息通知进行提示,能够使用户仅仅通过提示方式便可获知是否是特定联系人发送的消息,进一步提升用户的使用体验。In this embodiment, by allowing the user to flexibly choose whether to set a unified prompting method for a specific contact in the multi-party social application according to the user's own needs, the user experience is effectively improved. By enabling the user to set the social application that needs to be notified of the application message of the specific contact for unified prompting according to the user's own needs, it is avoided that all the social applications installed in the mobile terminal containing the specific contact will be uniformly prompted for the message sent by the specific contact unnecessary. When a contact in a social application of a mobile terminal sends a message, when the contact is a specific contact, the mobile terminal can prompt the application message notification in a unified prompting manner, so that the user can know whether it is Messages sent by specific contacts to further enhance the user experience.

需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, in the description of the present invention, the terms "first", "second" and so on are only used for description purposes, and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.

此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (13)

1. a kind of message prompt method of social application, which comprises the following steps:
When contact person in the social application of mobile terminal sends message, the application message that the contact person sends message is intercepted Notice;
According to the application message notice judge contact person whether be user preset need uniformly prompting mode it is specific Contact person;
When the contact person is the particular contact, user unified prompt side preset to the particular contact is obtained Formula prompts that the mobile terminal to application message notice with the unified prompting mode;
Wherein, the different nickname informations in multiple social applications correspond to the same contact person, and the multiple social activity is answered When prompting mode is inconsistent, the particular contact is preset, and the unification is arranged to the particular contact Prompting mode;
When particular contact sends message in multiple social applications, different social applications is for the particular contact The prompting mode that application message notice prompts user is consistent, and prompting mode is the pre-set unified prompt side of user Formula;
And when the particular contact includes multiple contact persons, different unified prompts is set for different particular contacts Mode;
When contact person is not the particular contact for needing unified prompting mode of user preset, with mobile terminal default Prompting mode prompts application message notice.
2. the message prompt method of social application as described in claim 1, which is characterized in that described according to the application message Notice judge the contact person whether be user preset need uniformly prompting mode particular contact, comprising:
According to application message notice obtain the contact person notify in the application message it is close in corresponding social application Claim information;
Judge whether the contact person is that the user preset needs the specific of unified prompting mode according to the nickname information Contact person.
3. the message prompt method of social application as claimed in claim 2, which is characterized in that the social activity in mobile terminal When contact person in sends message, before the application message notice for intercepting contact person's transmission message, further includes:
Open the multi-party social application prompting mode function of unification of the mobile terminal.
4. the message prompt method of social application as claimed in claim 3, which is characterized in that described to open the mobile terminal The multi-party social application prompting mode function of unification after, further includes:
Setting needs the particular contact of unified prompting mode according to user instructions, and uniformly mentions to particular contact setting Show mode.
5. the message prompt method of social application as claimed in claim 3, which is characterized in that the social activity in mobile terminal After contact person in sends message, further includes:
Judge whether the social application is default social application;
If it is the default social application, then the application message notice that the contact person sends message is intercepted.
6. the message prompt method of social application as claimed in claim 5, which is characterized in that the judgement social application It whether is after presetting social application, further includes:
If not the default social application, then the application message notice that the contact person sends message is not intercepted, so that institute It states mobile terminal and application message notice is prompted with the prompting mode defaulted.
7. a kind of message notifying device of social application characterized by comprising
Application message notifies blocking module, when sending message for the contact person in the social application of mobile terminal, intercepts institute State the application message notice that contact person sends message;
First judgment module, for judging whether the contact person is that user preset needs to unite according to application message notice The particular contact of one prompting mode;
Cue module, for it is default to the particular contact to obtain user when the contact person is the particular contact Unified prompting mode, prompt that the mobile terminal to application message notice with the unified prompting mode;
Wherein, the different nickname informations in multiple social applications correspond to the same contact person, and the multiple social activity is answered When prompting mode is inconsistent, the particular contact is preset, and the unification is arranged to the particular contact Prompting mode;
When particular contact sends message in multiple social applications, different social applications is for the particular contact The prompting mode that application message notice prompts user is consistent, and prompting mode is the pre-set unified prompt side of user Formula;
And when the particular contact includes multiple contact persons, different unified prompts is set for different particular contacts Mode;
When contact person is not the particular contact for needing unified prompting mode of user preset, with mobile terminal default Prompting mode prompts application message notice.
8. the message notifying device of social application as claimed in claim 7, which is characterized in that the first judgment module is specific For:
According to application message notice obtain the contact person notify in the application message it is close in corresponding social application Claim information;
Judge whether the contact person is that the user preset needs the specific of unified prompting mode according to the nickname information Contact person.
9. the message notifying device of social application as claimed in claim 8, which is characterized in that further include:
Opening module, the multi-party social application prompting mode function of unification for opening the mobile terminal.
10. the message notifying device of social application as claimed in claim 9, which is characterized in that further include:
Particular contact setup module, for the particular contact for needing unified prompting mode to be arranged according to user instructions, and it is right Unified prompting mode is arranged in the particular contact.
11. the message notifying device of social application as claimed in claim 9, which is characterized in that further include:
Second judgment module, for judging whether the social application is default social application;
The application message notice blocking module is also used to when the social application is the default social application, described in interception Contact person sends the application message notice of message.
12. the message notifying device of social application as claimed in claim 11, which is characterized in that the application message notice is blocked Module is cut to be also used to:
When the social application is not the default social application, the application message for not intercepting contact person's transmission message is logical Know, so that the mobile terminal prompts application message notice with the prompting mode defaulted.
13. a kind of mobile terminal characterized by comprising
Shell;
Processor;
Memory;
Circuit board and power circuit;
Wherein, circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply electricity Road, for each circuit or the device power supply for mobile terminal;Memory is for storing executable program code;Processor passes through The executable program code that stores is read in memory to run program corresponding with executable program code, for executing: When contact person in the social application of mobile terminal sends message, the application message for intercepting contact person's transmission message is logical Know;According to the application message notice judge contact person whether be user preset need uniformly prompting mode it is specific It is people;When the contact person is the particular contact, user unified prompt side preset to the particular contact is obtained Formula prompts that the mobile terminal to application message notice with the unified prompting mode;
Wherein, the different nickname informations in multiple social applications correspond to the same contact person, and the multiple social activity is answered When prompting mode is inconsistent, the particular contact is preset, and the unification is arranged to the particular contact Prompting mode;
When particular contact sends message in multiple social applications, different social applications is for the particular contact The prompting mode that application message notice prompts user is consistent, and prompting mode is the pre-set unified prompt side of user Formula;
And when the particular contact includes multiple contact persons, different unified prompts is set for different particular contacts Mode;
When contact person is not the particular contact for needing unified prompting mode of user preset, with mobile terminal default Prompting mode prompts application message notice.
CN201510788648.4A 2015-11-16 2015-11-16 Message prompt method, device and the mobile terminal of social application Expired - Fee Related CN105468357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510788648.4A CN105468357B (en) 2015-11-16 2015-11-16 Message prompt method, device and the mobile terminal of social application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510788648.4A CN105468357B (en) 2015-11-16 2015-11-16 Message prompt method, device and the mobile terminal of social application

Publications (2)

Publication Number Publication Date
CN105468357A CN105468357A (en) 2016-04-06
CN105468357B true CN105468357B (en) 2018-12-04

Family

ID=55606100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510788648.4A Expired - Fee Related CN105468357B (en) 2015-11-16 2015-11-16 Message prompt method, device and the mobile terminal of social application

Country Status (1)

Country Link
CN (1) CN105468357B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210276A (en) * 2016-06-29 2016-12-07 努比亚技术有限公司 Mobile terminal and the processing method of application message
CN106789580A (en) * 2016-12-24 2017-05-31 珠海市魅族科技有限公司 Message prompt method and mobile terminal
CN107133113B (en) * 2017-05-10 2020-09-25 努比亚技术有限公司 Notification reminding method, terminal and computer readable storage medium
CN108509111B (en) * 2018-04-10 2020-08-14 Oppo广东移动通信有限公司 Application notification method and device and terminal equipment
CN110601962B (en) * 2019-09-11 2022-02-22 腾讯科技(深圳)有限公司 Message prompting method, device, terminal and storage medium
CN113298667A (en) * 2021-05-24 2021-08-24 维沃移动通信有限公司 Message shielding method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684983A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Message processing method and device
CN103747132A (en) * 2013-12-11 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Method and terminal for displaying message
CN103929537A (en) * 2014-04-03 2014-07-16 北京深思数盾科技有限公司 Real-time reminding method based on messages of different levels
CN104717341A (en) * 2013-12-11 2015-06-17 腾讯科技(深圳)有限公司 Message prompting method and terminal
CN104883434A (en) * 2015-04-28 2015-09-02 广东欧珀移动通信有限公司 Method and terminal for reminding breathing light

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294428A1 (en) * 2006-06-19 2007-12-20 Ido Guy Method and System for Email Messaging

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684983A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Message processing method and device
CN103747132A (en) * 2013-12-11 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Method and terminal for displaying message
CN104717341A (en) * 2013-12-11 2015-06-17 腾讯科技(深圳)有限公司 Message prompting method and terminal
CN103929537A (en) * 2014-04-03 2014-07-16 北京深思数盾科技有限公司 Real-time reminding method based on messages of different levels
CN104883434A (en) * 2015-04-28 2015-09-02 广东欧珀移动通信有限公司 Method and terminal for reminding breathing light

Also Published As

Publication number Publication date
CN105468357A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105468357B (en) Message prompt method, device and the mobile terminal of social application
US9247525B2 (en) Systems and methods for providing notifications
US8749349B2 (en) Method apparatus and computer program
CN103401991A (en) Method and device for prompting communication event of terminal device
WO2016000636A1 (en) Communications processing method and system
WO2014206281A1 (en) Method for calling mobile terminal, method for controlling mobile terminal, and relevant device
CN103595859A (en) Method for handling call receiving and an electronic device thereof
JP2015008528A (en) Communication management function
CN108055404A (en) Notification reminding method, device, terminal and storage medium
US10938761B2 (en) Forwarding messages in a wireless communications network
WO2020135431A1 (en) Message urgent reminding method and apparatus, and electronic device
CN112040057A (en) Device control method, device, electronic device, control system and storage medium
US20200382367A1 (en) Systems and methods for configuring a device action based on one or more events
JP2015534297A (en) User interface control method for controlling ringtone output of smart device
CN105446803A (en) Application management method and apparatus
KR101339101B1 (en) Method of providing alarm searvice using address book of smart device
WO2014107398A1 (en) Framework and method for dynamic talker id based media treatment in a group communication
CN104580719B (en) A kind of call control method and device
KR20140023160A (en) Method of providing alarm service using address book accessed by smart device application
US20130332883A1 (en) Method, system and apparatus for providing notifications
CN106899764A (en) Incoming call prompting method and device
EP2672683B1 (en) Method, system and apparatus for providing notifications
JP2017059862A (en) Communication device, incoming output method, and program
KR101381224B1 (en) Control method for receiving signal sound of smart device using mode setting
KR101418577B1 (en) Method of providing alarm searvice using address book of smart device

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
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523859 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181204

CF01 Termination of patent right due to non-payment of annual fee