WO2020087269A1 - 一种消息加载方法、消息加载装置及移动终端 - Google Patents

一种消息加载方法、消息加载装置及移动终端 Download PDF

Info

Publication number
WO2020087269A1
WO2020087269A1 PCT/CN2018/112654 CN2018112654W WO2020087269A1 WO 2020087269 A1 WO2020087269 A1 WO 2020087269A1 CN 2018112654 W CN2018112654 W CN 2018112654W WO 2020087269 A1 WO2020087269 A1 WO 2020087269A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
red envelope
electronic red
queue
picture
Prior art date
Application number
PCT/CN2018/112654
Other languages
English (en)
French (fr)
Inventor
王立中
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098223.2A priority Critical patent/CN112771499A/zh
Priority to PCT/CN2018/112654 priority patent/WO2020087269A1/zh
Publication of WO2020087269A1 publication Critical patent/WO2020087269A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application belongs to the field of information processing technology, and particularly relates to a message loading method, a message loading device, a mobile terminal, and a computer-readable storage medium.
  • the present application provides a message loading method, a message loading device, a mobile terminal, and a computer-readable storage medium, which can improve the efficiency of users grabbing electronic red envelopes.
  • the first aspect of the present application provides a message loading method, including:
  • the above-mentioned electronic red envelope message is added to a preset queue
  • the second aspect of the present application provides a message loading device, including:
  • the message identification unit is used to identify the type of the above message when the preset application receives the message
  • a queue management unit configured to add the electronic red envelope message to a preset queue if the type of the message is identified as an electronic red envelope message
  • the message loading unit is configured to load other unread messages when receiving a message loading instruction for the application, wherein the other unread messages are unread messages of the application that are not in the queue, and After the unread message is loaded, load the electronic red envelope message in the above queue.
  • a third aspect of the present application provides a mobile terminal.
  • the mobile terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program as described above. The steps of the method of the first aspect.
  • a fourth aspect of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
  • a fifth aspect of the present application provides a computer program product.
  • the computer program product includes a computer program.
  • the computer program is executed by one or more processors, the steps of the method of the first aspect described above are implemented.
  • FIG. 1 is a schematic diagram of an implementation process of a message loading method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of another implementation process of the message loading method provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of another implementation process of the message loading method provided by the embodiment of the present application.
  • FIG. 4 is a structural block diagram of a message loading device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a mobile terminal provided by an embodiment of the present application.
  • the message loading method in the embodiment of the present application includes:
  • step 101 when a preset application receives a message, it identifies the type of the above message;
  • the type of the message may be identified within a preset time after the preset application receives the message, for example, within 100 milliseconds.
  • the above-mentioned preset application programs are already installed in the mobile terminal and can be used for electronic red envelope operations, including but not limited to WeChat, Alipay and QQ, which are not limited here.
  • the received message includes messages received by all sessions in the preset application program, where all the sessions include a single-contact session and a multi-contact session.
  • the type of the above message may be a plain text message, a picture message, a link message, or an electronic red envelope message, etc., which is not limited here.
  • identifying the type of the above message includes: judging whether the message contains a picture; if a picture is included, calculating the ratio of the length and width of the picture; and comparing the ratio of the length and width of the picture with a standard red envelope The ratio of the length and width of the picture is compared, and if they are the same, it is determined that the type of the message is an electronic red envelope message.
  • the ratio of the length and width of the standard red envelope picture is a preset value, which is stored locally in the mobile terminal.
  • step 102 if the type of the above-mentioned message is identified as an electronic red envelope message, the above-mentioned electronic red envelope message is added to a preset queue;
  • the type of the message is an electronic red envelope message
  • step 103 upon receiving the message loading instruction for the above application program, load other unread messages;
  • the messages need to be loaded before they can be displayed.
  • the application receives the message loading instruction, it first loads other unread messages, where the other unread messages are unread messages of the application that are not in the queue, that is, unread plain text messages, picture messages And link messages.
  • step 104 after loading the other unread messages, the electronic red envelope messages in the queue are loaded.
  • the electronic red envelope message in the queue is loaded. Since the message can only be displayed after loading, the above unread plain text message, picture message and link message will be displayed first, and then the electronic red envelope message in the above queue will be displayed, because mobile terminals tend to display the last The message is displayed at the top, so that when viewing the mobile terminal, the user can preferentially view the electronic red envelope message placed at the top.
  • the unread electronic red envelope message when a new unread message is received, the unread electronic red envelope message is stored in a queue, and when the unread message of the application needs to be displayed, the unread message is loaded first Non-electronic red envelope messages, such as plain text messages, picture messages, and link messages, cause these messages to be displayed first, and then load the unread electronic red envelope messages in the above queue, so that the electronic red envelope messages can be finally displayed on the top without being other. Message covered. To a certain extent, the efficiency of the user's operation of snatching red e-envelopes has been improved, and it is possible to avoid missed snatching of e-envelope messages.
  • Non-electronic red envelope messages such as plain text messages, picture messages, and link messages
  • the message loading method in the embodiment of the present application includes:
  • step 201 when a preset application receives a message, it identifies the type of the above message;
  • the above step 201 is the same as or similar to the above step 101.
  • step 202 if the type of the above-mentioned message is identified as an electronic red envelope message, it is detected whether the corresponding resource of the above-mentioned electronic red envelope message is obtained;
  • the operation of detecting whether the corresponding resource of the electronic red envelope message is acquired is an operation of detecting whether the electronic red envelope message is still in a robable state for the current user, and may be detecting whether the electronic red envelope message has been Removal by the user may also be to detect whether the above-mentioned electronic red envelope message has not been snatched by other users. Specifically, only the electronic red envelope message received in the multi-contact session is tested for whether the electronic red envelope message has not been snatched by other users, and in the single-contact session, only the electronic red envelope message has been captured by the user Dismantling detection.
  • step 203 if the corresponding resource of the electronic red envelope message is not obtained, the electronic red envelope message is marked;
  • the electronic red envelope message when it is detected that the corresponding resource of the electronic red envelope message has not been obtained, the electronic red envelope message is considered to be in a robable state for the current user, that is, the user can still rob the electronic red envelope . Based on this, the above electronic red envelope message can be marked to indicate the current status of the electronic red envelope message.
  • step 204 the marked electronic red envelope message is added to the queue
  • the electronic red envelope message can be added to the foregoing queue.
  • the electronic red envelope messages existing in the above queue are all electronic red envelope messages that the current user can still snatch, that is, the above queue filters unread electronic red envelope messages, and unredeemable electronic red envelope messages will no longer be Attention, can further improve the efficiency of users to grab red envelopes.
  • step 205 upon receiving the message loading instruction for the above application program, load other unread messages;
  • step 206 after the other unread messages are loaded, the electronic red envelope messages in the queue are loaded.
  • the above steps 205 and 206 are respectively the same as or similar to the above steps 103 and 104.
  • the above message loading method further includes:
  • the ListView list is attempted to be displayed according to the order of loading, that is, in the ListView list attempt, the messages loaded later will be displayed in the front, the messages loaded first will be displayed in the back, and each last loaded message Will be temporarily displayed on top.
  • A2 Monitor whether the red envelope grabbing control associated with the above electronic red envelope message has been triggered by the user, wherein the above red envelope grabbing control is used to provide an interface for grabbing the electronic red envelope;
  • the red envelope grabbing control is used to provide an interface for grabbing electronic red envelopes. Since the same user cannot repeat the operation of disassembling the electronic red envelope message on the same electronic red envelope message, it is possible to confirm whether the above user can control Red envelope messages are used to grab electronic red envelopes.
  • the electronic red envelope message is no longer in the red envelope grabbing state for the user of the application, if the red envelope grabbing control associated with the electronic red envelope message Not triggered by the user, the electronic red envelope message is still in a state where the red envelope can be grabbed for the user of the application;
  • the electronic red envelope message when it is detected that the red envelope grabbing control associated with the electronic red envelope message has been triggered by the user, the electronic red envelope message is no longer in the red packet grabbing state for the user of the application, based on this, Even if the mobile terminal subsequently displays or pushes the electronic red envelope message, the user cannot perform any operation on the electronic red envelope message. Therefore, the electronic red envelope message can be unmarked and the electronic red envelope message can be removed from the queue so that When the message is loaded and displayed later, the un-robbed electronic red envelope message will no longer be displayed.
  • step 202 specifically includes:
  • the mobile terminal After the mobile terminal receives the electronic red envelope message, even if the user immediately processes the electronic red envelope message and carries out the operation of grabbing the electronic red envelope, it will take a certain amount of time. After a preset time, for example, within 1 second after identifying that the type of the message is an electronic red envelope message, it is detected whether the corresponding resource of the electronic red envelope message is acquired. In order to reserve time for the user to grab the electronic red envelope, he can then check whether the electronic red envelope has been removed.
  • step 202 specifically includes:
  • the picture and / or text associated with the electronic red envelope message can be obtained.
  • the above step B2 includes: if the picture associated with the electronic red envelope message is obtained, detecting whether the color information of the picture matches the preset color information; if the text associated with the electronic red envelope message is obtained, detecting Whether the text matches the preset text information; if the color information of the picture matches the preset color information, and / or, if the text matches the preset text information, the electronic red envelope is determined
  • the color information may be color histogram information, that is, it may be detected whether the color histogram information of the picture matches the preset color histogram information.
  • the corresponding resource of the electronic red envelope message when the corresponding resource of the electronic red envelope message is not obtained, the overall color of the picture associated with the electronic red envelope message appears dark red; and after the corresponding resource of the electronic red envelope message is obtained, the picture associated with the electronic red envelope message The overall color of is light red. Therefore, it can be judged whether the corresponding resource of the electronic red envelope message is obtained according to the color information of the above picture.
  • the text associated with the electronic red envelope message will appear as "red envelope has been received" and other words. Therefore, it can be detected whether the text matches the preset text information, and the preset text information is the text information presented after the corresponding resource of the electronic red envelope message is acquired. Through the above picture and / or text, it can be quickly determined whether the corresponding resource of the electronic red envelope message has been obtained.
  • the unread electronic red envelope message when a new unread message is received, the unread electronic red envelope message is stored in a queue, and when the unread message of the application needs to be displayed, the unread message is loaded first Non-electronic red envelope messages, such as plain text messages, picture messages, and link messages, cause these messages to be displayed first, and then load the unread electronic red envelope messages in the above queue, so that the electronic red envelope messages can be finally displayed on the top without being other. Message covered. Further, after the user performs the red envelope removal operation on the electronic red envelope message, the electronic red envelope message will be removed from the queue, so that when the electronic red envelope message is subsequently loaded and displayed, there will be no electronic display that is not robbed. Red envelope message situation. To a certain extent, the efficiency of the user's operation of snatching red e-envelopes has been improved, and it is possible to avoid missed snatching of e-envelope messages.
  • Non-electronic red envelope messages such as plain text messages,
  • the message loading method in this embodiment of the present application includes:
  • step 301 when the above application receives a message, the running state of the above application is detected;
  • the running status of the above application program includes: the application program is not running, the application program is running in the foreground, and the application program is running in the background.
  • step 302 if the application is not running in the foreground, the type of the message is identified;
  • the application when the above-mentioned application is running in the foreground, even if the application receives a new message, the application will not push, but directly prompts the user in the form of a subscript in the associated session that there is a new message , The user can directly click on the associated conversation to view it.
  • the above application is not running in the foreground, the unread messages received will be pushed to the user uniformly. In this case, it is more likely that the electronic red envelope message is covered. Therefore, the above application may not Identify the type of the message when it is in the foreground.
  • step 303 if the type of the above-mentioned message is identified as an electronic red envelope message, the above-mentioned electronic red envelope message is added to a preset queue;
  • step 304 upon receiving the message loading instruction for the above application program, load other unread messages;
  • step 305 after the other unread messages are loaded, the electronic red envelope messages in the queue are loaded.
  • the above steps 303, 304, and 305 are respectively the same as or similar to the above steps 102, 103, and 104.
  • the above steps 303, 304, and 305 are respectively the same as or similar to the above steps 102, 103, and 104.
  • the related description of the above steps 102, 103, and 104 and details are not described herein again.
  • the above message loading method further includes:
  • the unread electronic red envelope message is stored in a queue and stored in the application program.
  • unread non-electronic red envelope messages such as plain text messages, picture messages, and link messages
  • the unread electronic red envelope message enables the electronic red envelope message to be finally displayed on the top without being overwritten by other messages.
  • the efficiency of the user's operation of snatching red e-envelopes has been improved, and it is possible to avoid missed snatching of e-envelope messages.
  • Embodiment 4 of the present application provides a message loading device.
  • the above message loading device may be integrated into a mobile terminal.
  • the message loading device 400 in this embodiment of the present application includes:
  • the message identification unit 401 is used to identify the type of the above message when the preset application receives the message;
  • the queue management unit 402 is configured to add the electronic red envelope message to a preset queue if the type of the message is identified as an electronic red envelope message;
  • the message loading unit 403 is configured to load other unread messages when receiving a message loading instruction for the application, wherein the other unread messages are unread messages of the application that are not in the queue, and After other unread messages are loaded, load the electronic red envelope messages in the above queue.
  • the above message loading device 400 further includes:
  • a resource detection unit configured to detect whether the corresponding resource of the electronic red envelope message is obtained
  • the red envelope marking unit is used to mark the electronic red envelope message if the corresponding resource of the electronic red envelope message is not obtained;
  • the queue management unit is specifically configured to add the marked electronic red envelope message to the queue.
  • the above message loading device 400 further includes:
  • the message display unit is used to display the above-mentioned electronic red envelope message through a list view
  • a control monitoring unit configured to monitor whether the red envelope grabbing control associated with the electronic red envelope message has been triggered by a user, wherein the red envelope grabbing control is used to provide an interface for grabbing the electronic red envelope;
  • the message management unit is configured to cancel the marking of the electronic red envelope message when it is detected that the red envelope control associated with the electronic red envelope message has been triggered by the user;
  • the queue management unit 402 is specifically configured to remove the electronic red envelope message from the queue when it is detected that the red envelope control associated with the electronic red envelope message has been triggered by the user.
  • the resource detection unit is specifically configured to detect whether the corresponding resource of the electronic red envelope message is acquired within a preset time after identifying that the type of the message is an electronic red envelope message.
  • the above resource detection unit includes:
  • An associated information acquisition subunit used to acquire pictures and / or text associated with the above electronic red envelope message
  • the red envelope resource detection subunit is configured to detect whether the corresponding resource of the electronic red envelope message is obtained according to the above picture and / or text.
  • the above red packet resource detection subunit includes:
  • a first detection subunit configured to detect whether the color information of the picture matches the preset color information if the associated information obtaining subunit obtains the picture associated with the electronic red envelope message
  • a second detection subunit configured to detect whether the text matches the preset text information if the associated information acquisition subunit acquires the text associated with the electronic red envelope message
  • a determining subunit configured to determine if the color information of the picture matches the preset color information, and / or, if the text matches the preset text information, determine that the corresponding resource of the electronic red envelope message has been Obtain.
  • the message identification unit 401 includes:
  • the running state detection subunit is used to detect the running state of the above application program when the above application program receives the message
  • the message type identification subunit is used to identify the type of the above message if the above application program is not running in the foreground.
  • the above message loading device 400 further includes:
  • the state monitoring unit is used to monitor the running state of the above application program
  • the instruction generating unit is used to generate a message loading instruction when the above application program is monitored to enter the foreground operation;
  • the instruction sending unit is configured to send the message loading instruction to the application program.
  • the message identification unit 401 includes:
  • Picture judgment subunit used to judge whether the above message contains pictures
  • the ratio calculation subunit is used to calculate the ratio of the length and width of the above picture if it contains a picture
  • the ratio comparison subunit is used to compare the ratio of the length and width of the above picture with the ratio of the length and width of the standard red envelope picture. If they are the same, it is determined that the type of the above message is an electronic red envelope message.
  • the message loading device when receiving a new unread message, stores the unread electronic red envelope message in a queue, and first loads the unread message of the application program when it needs to be displayed Unread non-electronic red envelope messages, such as plain text messages, picture messages, and link messages, cause these messages to be displayed first, and then load the unread electronic red envelope messages in the above queue, so that the electronic red envelope messages can be finally displayed on the top without Will be covered by other messages.
  • Unread non-electronic red envelope messages such as plain text messages, picture messages, and link messages
  • the mobile terminal in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one is shown in FIG. 5) and stored in the memory 501 A computer program that can be run on a processor.
  • the memory 501 is used to store software programs and modules.
  • the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501 to obtain resources corresponding to the preset events. Specifically, the processor 502 implements the following steps by running the above computer program stored in the memory 501:
  • the above-mentioned electronic red envelope message is added to a preset queue
  • the processor 502 After identifying that the type of the above message is an electronic red envelope message, the processor 502 The following steps are also realized by running the above computer program stored in the memory 501:
  • the above-mentioned adding the electronic red envelope message to the preset queue includes:
  • the processor 502 after loading the electronic red envelope message in the queue, the processor 502 also runs the computer program stored in the memory 501. Implement the following steps:
  • the electronic red envelope message is unmarked, and the electronic red envelope message is removed from the queue.
  • the foregoing detecting whether the corresponding resource of the electronic red envelope message is obtained includes:
  • the foregoing detecting whether the corresponding resource of the electronic red envelope message is obtained includes:
  • the above-mentioned detecting whether the corresponding resource of the above-mentioned electronic red envelope message is obtained based on the above-mentioned picture and / or text includes:
  • identifying the type of the message includes:
  • the processor 502 after adding the electronic red envelope message to a preset queue, the processor 502 also runs the computer program stored in the memory 501 Implement the following steps:
  • the above-mentioned identifying the type of the above-mentioned message includes:
  • the above mobile terminal may further include: one or more input devices 503 (only one is shown in FIG. 5) and one or more output devices 504 (only one is shown in FIG. 4).
  • the memory 501, the processor 502, the input device 503, and the output device 504 are connected through a bus 505.
  • the so-called processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 503 may include a keyboard, a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, etc.
  • the output device 504 may include a display, a speaker, and the like.
  • the memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. Part or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
  • the mobile terminal when receiving a new unread message, stores the unread electronic red envelope message in a queue, and when it is necessary to display the unread message of the application, first load the unread message Read non-electronic red envelope messages, such as plain text messages, picture messages, and link messages, so that these messages are displayed first, and then load the unread electronic red envelope messages in the above queue, so that the electronic red envelope messages can be finally displayed on the top, without Covered by other messages.
  • the efficiency of the user's operation of snatching red e-envelopes has been improved, and it is possible to avoid missed snatching of e-envelope messages.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions may be allocated by different functional units
  • Module completion means that the internal structure of the above device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the disclosed device and method may be implemented in other ways.
  • the system embodiments described above are only schematic.
  • the division of the above-mentioned modules or units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program.
  • the above computer program can be stored in a computer-readable storage medium When executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory) ), Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals and software distribution media, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种消息加载方法、消息加载装置、移动终端及计算机可读存储介质,其中,所述消息加载方法包括:当预设的应用程序接收到消息时,识别所述消息的类型;若识别出所述消息的类型为电子红包消息,则将所述电子红包消息加入预设的队列中;在接收到针对所述应用程序的消息加载指令时,加载其它未读消息,其中,所述其它未读消息为不在所述队列中的所述应用程序的未读消息;在所述其它未读消息加载完成后,加载所述队列中的电子红包消息。本申请方案可以提高用户抢电子红包的效率,避免电子红包被漏抢。

Description

一种消息加载方法、消息加载装置及移动终端 技术领域
本申请属于信息处理技术领域,尤其涉及一种消息加载方法、消息加载装置、移动终端及计算机可读存储介质。
背景技术
目前,大多数的智能终端,例如手机、平板电脑等,都能够安装各类应用程序,例如微信、支付宝、QQ等。用户除了能够使用这些应用程序的社交、支付功能外,还能够使用这些应用程序其他的附加功能,例如电子红包功能。
发明内容
本申请提供一种消息加载方法、消息加载装置、移动终端及计算机可读存储介质,可提高用户抢电子红包的效率。
本申请的第一方面提供了一种消息加载方法,包括:
当预设的应用程序接收到消息时,识别上述消息的类型;
若识别出上述消息的类型为电子红包消息,则将上述电子红包消息加入预设的队列中;
在接收到针对上述应用程序的消息加载指令时,加载其它未读消息,其中,上述其它未读消息为不在上述队列中的上述应用程序的未读消息;
在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
本申请的第二方面提供了一种消息加载装置,包括:
消息识别单元,用于当预设的应用程序接收到消息时,识别上述消息的类型;
队列管理单元,用于若识别出上述消息的类型为电子红包消息,则将上述电子红包消息加入预设的队列中;
消息加载单元,用于在接收到针对上述应用程序的消息加载指令时,加载其它未读消息,其中,上述其它未读消息为不在上述队列中的上述应用程序的未读消息,并在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
本申请的第三方面提供了一种移动终端,上述移动终端包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上述第一方面的方法的步骤。
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面的方法的步骤。
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的消息加载方法的一种实现流程示意图;
图2是本申请实施例提供的消息加载方法的另一种实现流程示意图;
图3是本申请实施例提供的消息加载方法的又一种实现流程示意图;
图4是本申请实施例提供的消息加载装置的结构框图;
图5是本申请实施例提供的移动终端的示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。
实施例1
下面对本申请实施例提供的一种消息加载方法进行描述,请参阅图1,本申请实施例中的消息加载方法包括:
在步骤101中,当预设的应用程序接收到消息时,识别上述消息的类型;
在本申请实施例中,具体可以在上述预设的应用程序接收到消息后的预设时间内,例如100毫秒内,识别上述消息的类型。其中,上述预设的应用程序为移动终端中已经安装的、可以进行电子红包操作的应用程序,包括但不限于微信、支付宝、QQ,此处不作限定。具体地,上述接收到的消息包括上述预预设的应用程序中的所有会话接收到的消息,其中,上述所有会话包括单联系人会话及多联系人会话。上述消息的类型可以是纯文本消息、图片消息、链接消息或电子红包消息等,此处不作限定。具体地,上述识别上述消息的类型,包括:判断所述消息中是否包含图片;若包含图片,则计算所述图片的长度和宽度的比值;将所述图片的长度和宽度的比值与标准红包图片长度和宽度的比值进行比较,若相同,则确定所述消息的类型为电子红包消息。其中,上述标准红包图片长度和宽度的比值为一预设值,存储于上述移动终端的本地。
在步骤102中,若识别出上述消息的类型为电子红包消息,则将上述电子红包消息加入预设的队列中;
在本申请实施例中,当通过步骤101识别出上述消息的类型为电子红包消息时,可以 检测当前是否已存在上述预设的队列,上述预设的队列用于存储未读的电子红包消息;若当前已存在上述队列,则可以将上述电子红包消息直接加入上述队列中;若当前还未存在上述队列,则先创建上述队列,之后再将上述电子红包消息加入上述队列中。
在步骤103中,在接收到针对上述应用程序的消息加载指令时,加载其它未读消息;
在本申请实施例中,消息均需要在加载后才能进行显示。当上述应用程序接收到消息加载指令时,先加载其它未读消息,其中,上述其它未读消息为不在上述队列中的上述应用程序的未读消息,也即未读的纯文本消息、图片消息及链接消息。
在步骤104中,在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
在本申请实施例中,当上述应用程序的未读的纯文本消息、图片消息及链接消息加载完毕后,再加载上述队列中的电子红包消息。由于消息是在加载后才能进行显示,因而,上述未读的纯文本消息、图片消息及链接消息将先被显示,随后才显示上述队列中的电子红包消息,由于移动终端往往是将最后显示的消息置于最顶显示,因而,用户在查看移动终端时,可以优先查看到置于最顶的电子红包消息。
由上可见,通过本申请实施例,在接收到新的未读消息时,将未读的电子红包消息存放于一队列中,并在需要显示应用程序的未读消息时,首先加载未读的非电子红包消息,例如纯文本消息、图片消息及链接消息,使得这些消息先显示,之后再加载上述队列中的未读的电子红包消息,使得电子红包消息最后能够置顶显示,而不会被其它消息所覆盖。一定程度上提高了用户抢红电子红包操作的效率,能够避免电子红包消息的漏抢等情况发生。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例2
在上述实施例1的基础上,下面对本申请实施例提供的另一种消息加载方法进行描述,请参阅图2,本申请实施例中的消息加载方法包括:
在步骤201中,当预设的应用程序接收到消息时,识别上述消息的类型;
在本申请实施例中,上述步骤201与上述步骤101相同或相似,具体可参见上述步骤101的相关描述,在此不再赘述。
在步骤202中,若识别出上述消息的类型为电子红包消息,则检测上述电子红包消息的对应资源是否被获取;
在本申请实施例中,检测上述电子红包消息的对应资源是否被获取的操作即为检测电子红包消息是否对当前用户而言仍处于可抢状态的操作,可以是检测上述电子红包消息是 否已被用户拆取,也可以是检测上述电子红包消息是否还未被其它用户抢完。具体地,仅对多联系人会话中接收到的电子红包消息进行上述电子红包消息是否还未被其它用户抢完的检测,而在单联系人会话中,仅进行上述电子红包消息是否已被用户拆取的检测。在单联系人会话中,由于不存在其它用户,仅存在电子红包消息的发送方及接收方,因而无需检测上述电子红包消息是否还未被其它用户抢完;而在多联系人会话中,由于在该会话中的用户过多、且一个用户仅可执行一次抢红包操作,因而不仅需要检测上述电子红包消息是否已被用户拆取,也需要检测上述电子红包消息是否还未被其它用户抢完。
在步骤203中,若上述电子红包消息的对应资源未被获取,则对上述电子红包消息进行标记;
在本申请实施例中,当检测到上述电子红包消息的对应资源未被获取时,认为上述电子红包消息对于当前用户而言仍处于可抢状态,也即用户仍可对其进行抢电子红包操作。基于此,可对上述电子红包消息进行标记,用以表明当前电子红包信消息的状态。
在步骤204中,将被标记的上述电子红包消息加入上述队列中;
在本申请实施例中,由于被标记的电子红包消息表明该对于当前用户而言仍处于可抢状态,因而可以将上述电子红包消息加入上述上述队列中。这样一来,上述队列中所存在的电子红包消息均为当前用户仍可抢的电子红包消息,也即上述队列对未读的电子红包消息进行了筛选,不可抢的电子红包消息将不再被关注,能够进一步提升用户的抢红包效率。
在步骤205中,在接收到针对上述应用程序的消息加载指令时,加载其它未读消息;
在步骤206中,在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
在本申请实施例中,在本申请实施例中,上述步骤205、206分别与上述步骤103、104相同或相似,具体可参见上述步骤103、104的相关描述,在此不再赘述。
可选地,在上述步骤206之后,上述消息加载方法还包括:
A1、通过列表视图显示上述电子红包消息;
其中,在消息加载完成后,可以通过移动终端的ListView列表试图显示加载完毕后的消息。具体地,该ListView列表试图是根据加载的顺序进行显示的,也即,在该ListView列表试图中,后加载的消息将在前显示,先加载的消息将在后显示,每一最后加载的消息都将被暂时置顶显示。
A2、监听与上述电子红包消息关联的抢红包控件是否已被用户触发,其中,上述抢红包控件用于提供抢电子红包的接口;
在本申请实施例中,在通过列表视图显示上述电子红包消息后,可以继续监听与上述电子红包消息关联的抢红包控件是否已被用户触发其中,其中上述用户为当前登陆上述应 用程序的用户,上述抢红包控件用于提供抢电子红包的接口。由于同一用户不可对同一电子红包消息进行重复的拆电子红包的操作,因而通过检测与上述电子红包消息关联的抢红包控件是否已被上述登录用户触发后,即可确认上述用户是否能够对上述电子红包消息进行抢电子红包操作。若与上述电子红包消息关联的抢红包控件已被上述登录用户触发,则上述电子红包消息对上述应用程序的用户而言已不处于红包可抢状态,若与上述电子红包消息关联的抢红包控件未被上述用户触发,则上述电子红包消息对上述应用程序的用户而言仍处于红包可抢状态;
A3、若监听到与上述电子红包消息关联的抢红包控件已被上述用户触发,则取消对上述电子红包消息的标记,并将上述电子红包消息从上述队列中移出。
在本申请实施例中,当监听到与上述电子红包消息关联的抢红包控件已被上述用户触发时,该电子红包消息对上述应用程序的用户而言已不处于红包可抢状态,基于此,移动终端后续即使再显示或推送该电子红包消息,用户也无法针对该电子红包消息进行任何操作,因而,可以取消对上述电子红包消息的标记,并将上述电子红包消息从上述队列中移出,使得后续再进行消息加载及显示时,将不再显示该不可抢的电子红包消息。
可选地,上述步骤202具体包括:
在识别出上述消息的类型为电子红包消息后的预设时间内,检测上述电子红包消息的对应资源是否被获取。
其中,由于移动终端在接收到电子红包消息后,即使用户立刻处理该电子红包消息,进行抢电子红包操作,也会耗费一定的时间,因而,可以是在识别出上述消息的类型为电子红包消息后的预设时间内,例如,在识别出上述消息的类型为电子红包消息后的1秒内,检测上述电子红包消息的对应资源是否被获取。以此为用户预留出抢电子红包操作的时间后再去检测该电子红包是否被拆。
可选地,上述步骤202具体包括:
B1、获取与上述电子红包消息关联的图片和/或文字;
其中,当确定消息为电子红包消息后,由于电子红包消息包含有电子红包图片及文字,因而,可以获取与上述电子红包消息关联的图片和/或文字。
B2、根据上述图片和/或文字检测上述电子红包消息的对应资源是否被获取。
其中,上述步骤B2包括:若获取到了与上述电子红包消息关联的图片,则检测上述图片的颜色信息是否与预设的颜色信息相匹配;若获取到了与上述电子红包消息关联的文字,则检测上述文字是否与预设的文字信息相匹配;若上述图片的颜色信息与上述预设的颜色 信息相匹配,和/或,若上述文字与上述预设的文字信息相匹配,则确定上述电子红包消息的对应资源已被获取。具体地,上述颜色信息可以为颜色直方图信息,也即可以检测上述图片的颜色直方图信息是否与预设的颜色直方图信息相匹配。由于通常情况下,在电子红包消息的对应资源未被获取时,与电子红包消息关联的图片的整体颜色呈现深红色;而在电子红包消息的对应资源被获取后,与电子红包消息关联的图片的整体颜色呈现浅红色,因而,可以根据上述图片的颜色信息对电子红包消息的对应资源是否被获取进行判断。而对于上述文字来说,由于电子红包消息的对应资源被获取后,与该电子红包消息关联的文字会呈现“红包已被领取”等字样。因而,可以检测上述文字是否与预设的文字信息相匹配,上述预设的文字信息即为电子红包消息的对应资源被获取后所呈现的文字信息。通过上述图片和/或文字,可以快速确定该电子红包消息的对应资源是否已被获取。
由上可见,通过本申请实施例,在接收到新的未读消息时,将未读的电子红包消息存放于一队列中,并在需要显示应用程序的未读消息时,首先加载未读的非电子红包消息,例如纯文本消息、图片消息及链接消息,使得这些消息先显示,之后再加载上述队列中的未读的电子红包消息,使得电子红包消息最后能够置顶显示,而不会被其它消息所覆盖。进一步地,当用户对电子红包消息进行了拆红包操作后,该电子红包消息将从队列中移除,使得后续再进行电子红包消息的加载及显示时,不会出现显示出处于不可抢的电子红包消息的情况。一定程度上提高了用户抢红电子红包操作的效率,能够避免电子红包消息的漏抢等情况发生。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例3
在上述实施例1的基础上,下面对本申请实施例提供的又一种消息加载方法进行描述,请参阅图3,本申请实施例中的消息加载方法包括:
在步骤301中,当上述应用程序接收到消息时,检测上述应用程序的运行状态;
在本申请实施例中,上述应用程序的运行状态包括:应用程序未运行、应用程序在前台运行及应用程序在后台运行。
在步骤302中,若上述应用程序未处于前台运行,则识别上述消息的类型;
在本申请实施例中,当上述应用程序在前台运行时,即便应用程序接收到了新消息,应用程序也不会进行推送,而是直接在相关联的会话中以角标的形式提示用户有新消息,用户可直接点击该相关联的会话中进行查看。而在上述应用程序未处于前台运行时,接收到的未读消息后才会统一向用户进行推送,在这种情况下较容易出现电子红包消息被覆盖 的情况,因而,可在上述应用程序未处于前台运行时再识别该消息的类型。
在步骤303中,若识别出上述消息的类型为电子红包消息,则将上述电子红包消息加入预设的队列中;
在步骤304中,在接收到针对上述应用程序的消息加载指令时,加载其它未读消息;
在步骤305中,在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
在本申请实施例中,上述步骤303、304、305分别与上述步骤102、103、104相同或相似,具体可参见上述步骤102、103、104的相关描述,在此不再赘述。
可选地,在上述步骤303之后,上述消息加载方法还包括:
C1、对所述应用程序的运行状态进行监听;
C2、当监听到所述应用程序进入前台运行时,生成消息加载指令;
C3、向所述应用程序发送所述消息加载指令。
其中,在监听到所述应用程序进入前台运行时,认为此时用户正要对过去一段时间内所接收到的新的未读消息进行查看,为了方便用户对这些未读消息进行统一查看,生成消息加载指令并向上述应用程序发送该消息加载指令,使得所述应用程序进入前台运行时,未读消息可以基于该消息加载指令进行加载及显示,即,所述应用程序进入前台运行时,未读消息将可以被聚集在一起,在同一列表视图中根据本申请实施例提供的消息加载方法进行加载及显示。
由上可见,通过本申请实施例,在应用程序未在前台运行的状态下,当应用程序接收到新的未读消息时,将未读的电子红包消息存放于一队列中,并在应用程序进入前台运行,需要显示该应用程序的所有未读消息时,首先加载未读的非电子红包消息,例如纯文本消息、图片消息及链接消息,使得这些消息先显示,之后再加载上述队列中的未读的电子红包消息,使得电子红包消息最后能够置顶显示,而不会被其它消息所覆盖。一定程度上提高了用户抢红电子红包操作的效率,能够避免电子红包消息的漏抢等情况发生。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
实施例4
本申请实施例4提供了一种消息加载装置,上述消息加载装置可集成于移动终端中,如图4所示,本申请实施例中的消息加载装置400包括:
消息识别单元401,用于当预设的应用程序接收到消息时,识别上述消息的类型;
队列管理单元402,用于若识别出上述消息的类型为电子红包消息,则将上述电子红包 消息加入预设的队列中;
消息加载单元403,用于在接收到针对上述应用程序的消息加载指令时,加载其它未读消息,其中,上述其它未读消息为不在上述队列中的上述应用程序的未读消息,并在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
可选地,上述消息加载装置400还包括:
资源检测单元,用于检测上述电子红包消息的对应资源是否被获取;
红包标记单元,用于若上述电子红包消息的对应资源未被获取,则对上述电子红包消息进行标记;
上述队列管理单元,具体用于将被标记的上述电子红包消息加入上述队列中。
可选地,上述消息加载装置400还包括:
消息显示单元,用于通过列表视图显示上述电子红包消息;
控件监听单元,用于监听与上述电子红包消息关联的抢红包控件是否已被用户触发,其中,上述抢红包控件用于提供抢电子红包的接口;
消息管理单元,用于当监听到与上述电子红包消息关联的抢红包控件已被上述用户触发时,取消对上述电子红包消息的标记;
上述队列管理单元402,具体用于当监听到与上述电子红包消息关联的抢红包控件已被上述用户触发时,将上述电子红包消息从上述队列中移出。
可选地,上述资源检测单元,具体用于在识别出上述消息的类型为电子红包消息后的预设时间内,检测上述电子红包消息的对应资源是否被获取。
可选地,上述资源检测单元包括:
关联信息获取子单元,用于获取与上述电子红包消息关联的图片和/或文字;
红包资源检测子单元,用于根据上述图片和/或文字检测上述电子红包消息的对应资源是否被获取。
可选地,上述红包资源检测子单元,包括:
第一检测子单元,用于若上述关联信息获取子单元获取到了与上述电子红包消息关联的图片,则检测上述图片的颜色信息是否与预设的颜色信息相匹配;
第二检测子单元,用于若上述关联信息获取子单元获取到了与上述电子红包消息关联的文字,则检测上述文字是否与预设的文字信息相匹配;
确定子单元,用于若上述图片的颜色信息与上述预设的颜色信息相匹配,和/或,若上述文字与上述预设的文字信息相匹配,则确定上述电子红包消息的对应资源已被获取。
可选地,上述消息识别单元401,包括:
运行状态检测子单元,用于当上述应用程序接收到消息时,检测上述应用程序的运行 状态;
消息类型识别子单元,用于若上述应用程序未处于前台运行,则识别上述消息的类型。
可选地,上述消息加载装置400还包括:
状态监听单元,用于对上述应用程序的运行状态进行监听;
指令生成单元,用于当监听到上述应用程序进入前台运行时,生成消息加载指令;
指令发送单元,用于向上述应用程序发送上述消息加载指令。
可选地,上述消息识别单元401包括:
图片判断子单元,用于判断上述消息中是否包含图片;
比值计算子单元,用于若包含图片,则计算上述图片的长度和宽度的比值;
比值比较子单元,用于将上述图片的长度和宽度的比值与标准红包图片长度和宽度的比值进行比较,若相同,则确定上述消息的类型为电子红包消息。
由上可见,通过本申请实施例,消息加载装置在接收到新的未读消息时,将未读的电子红包消息存放于一队列中,并在需要显示应用程序的未读消息时,首先加载未读的非电子红包消息,例如纯文本消息、图片消息及链接消息,使得这些消息先显示,之后再加载上述队列中的未读的电子红包消息,使得电子红包消息最后能够置顶显示,而不会被其它消息所覆盖。一定程度上提高了用户抢红电子红包操作的效率,能够避免电子红包消息的漏抢等情况发生。
实施例5
本申请实施例提供了一种移动终端,请参阅图5,本申请实施例中的移动终端包括:存储器501,一个或多个处理器502(图5中仅示出一个)及存储在存储器501上并可在处理器上运行的计算机程序。其中:存储器501用于存储软件程序以及模块,处理器502通过运行存储在存储器501的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。具体地,处理器502通过运行存储在存储器501的上述计算机程序时实现以下步骤:
当预设的应用程序接收到消息时,识别上述消息的类型;
若识别出上述消息的类型为电子红包消息,则将上述电子红包消息加入预设的队列中;
在接收到针对上述应用程序的消息加载指令时,加载其它未读消息,其中,上述其它未读消息为不在上述队列中的上述应用程序的未读消息;
在上述其它未读消息加载完成后,加载上述队列中的电子红包消息。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第 二种可能的实施方式中,在识别出上述消息的类型为电子红包消息之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:
检测上述电子红包消息的对应资源是否被获取;
若上述电子红包消息的对应资源未被获取,则对上述电子红包消息进行标记;
上述将上述电子红包消息加入预设队列中,包括:
将被标记的上述电子红包消息加入上述队列中。
在上述第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,在上述加载上述队列中的电子红包消息之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:
通过列表视图显示上述电子红包消息;
监听与上述电子红包消息关联的抢红包控件是否已被用户触发,其中,上述抢红包控件用于提供抢电子红包的接口;
若监听到与上述电子红包消息关联的抢红包控件已被上述用户触发,则取消对上述电子红包消息的标记,并将上述电子红包消息从上述队列中移出。
在上述第二种可能的实施方式作为基础而提供的第四种可能的实施方式中,上述检测上述电子红包消息的对应资源是否被获取,包括:
在识别出上述消息的类型为电子红包消息后的预设时间内,检测上述电子红包消息的对应资源是否被获取。
在上述第二种可能的实施方式作为基础而提供的第五种可能的实施方式中,上述检测上述电子红包消息的对应资源是否被获取,包括:
获取与上述电子红包消息关联的图片和/或文字;
根据上述图片和/或文字检测上述电子红包消息的对应资源是否被获取。
在上述第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,上述根据上述图片和/或文字检测上述电子红包消息的对应资源是否被获取,包括:
若获取到了与上述电子红包消息关联的图片,则检测上述图片的颜色信息是否与预设的颜色信息相匹配;
若获取到了与上述电子红包消息关联的文字,则检测上述文字是否与预设的文字信息相匹配;
若上述图片的颜色信息与上述预设的颜色信息相匹配,和/或,若上述文字与上述预设的文字信息相匹配,则确定上述电子红包消息的对应资源已被获取。
在上述第一种可能的实施方式作为基础而提供的第七种可能的实施方式中,上述当预设应用程序接收到消息时,识别上述消息的类型,包括:
当上述应用程序接收到消息时,检测上述应用程序的运行状态;
若上述应用程序未处于前台运行,则识别上述消息的类型。
在上述第七种可能的实施方式作为基础而提供的第八种可能的实施方式中,在将上述电子红包消息加入预设队列之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现以下步骤:
对上述应用程序的运行状态进行监听;
当监听到上述应用程序进入前台运行时,生成消息加载指令;
向上述应用程序发送上述消息加载指令。
在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础,或者上述第三种可能的实施方式作为基础,或者上述第四种可能的实施方式作为基础,或者上述第五种可能的实施方式作为基础,或者上述第六种可能的实施方式作为基础,或者上述第七种可能的实施方式作为基础,或者上述第八种可能的实施方式作为基础而提供的第九种可能的实施方式中,上述识别上述消息的类型,包括:
判断上述消息中是否包含图片;
若包含图片,则计算上述图片的长度和宽度的比值;
将上述图片的长度和宽度的比值与标准红包图片长度和宽度的比值进行比较,若相同,则确定上述消息的类型为电子红包消息。
进一步,如图5所示,上述移动终端还可包括:一个或多个输入设备503(图5中仅示出一个)和一个或多个输出设备504(图4中仅示出一个)。存储器501、处理器502、输入设备503和输出设备504通过总线505连接。
应当理解,在本申请实施例中,所称处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备503可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备504可以包括显示器、扬声器等。
存储器501可以包括只读存储器和随机存取存储器,并向处理器502提供指令和数据。存储器501的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器501还可以存储设备类型的信息。
由上可见,通过本申请实施例,移动终端在接收到新的未读消息时,将未读的电子红包消息存放于一队列中,并在需要显示应用程序的未读消息时,首先加载未读的非电子红包消息,例如纯文本消息、图片消息及链接消息,使得这些消息先显示,之后再加载上述队列中的未读的电子红包消息,使得电子红包消息最后能够置顶显示,而不会被其它消息所覆盖。一定程度上提高了用户抢红电子红包操作的效率,能够避免电子红包消息的漏抢等情况发生。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括是电载波信号和电信信号。
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种消息加载方法,其特征在于,包括:
    当预设的应用程序接收到消息时,识别所述消息的类型;
    若识别出所述消息的类型为电子红包消息,则将所述电子红包消息加入预设的队列中;
    在接收到针对所述应用程序的消息加载指令时,加载其它未读消息,其中,所述其它未读消息为不在所述队列中的所述应用程序的未读消息;
    在所述其它未读消息加载完成后,加载所述队列中的电子红包消息。
  2. 如权利要求1所述的消息加载方法,其特征在于,在识别出所述消息的类型为电子红包消息之后,还包括:
    检测所述电子红包消息的对应资源是否被获取;
    若所述电子红包消息的对应资源未被获取,则对所述电子红包消息进行标记;
    所述将所述电子红包消息加入预设队列中,包括:
    将被标记的所述电子红包消息加入所述队列中。
  3. 如权利要求2所述的消息加载方法,其特征在于,在所述加载所述队列中的电子红包消息之后,还包括:
    通过列表视图显示所述电子红包消息;
    监听与所述电子红包消息关联的抢红包控件是否已被用户触发,其中,所述抢红包控件用于提供抢电子红包的接口;
    若监听到与所述电子红包消息关联的抢红包控件已被所述用户触发,则取消对所述电子红包消息的标记,并将所述电子红包消息从所述队列中移出。
  4. 如权利要求2所述的消息加载方法,其特征在于,所述检测所述电子红包消息的对应资源是否被获取,包括:
    在识别出所述消息的类型为电子红包消息后的预设时间内,检测所述电子红包消息的对应资源是否被获取。
  5. 如权利要求2所述的消息加载方法,其特征在于,所述检测所述电子红包消息的对应资源是否被获取,包括:
    获取与所述电子红包消息关联的图片和/或文字;
    根据所述图片和/或文字检测所述电子红包消息的对应资源是否被获取。
  6. 如权利要求5所述的消息加载方法,其特征在于,所述根据所述图片和/或文字检测所述电子红包消息的对应资源是否被获取,包括:
    若获取到了与所述电子红包消息关联的图片,则检测所述图片的颜色信息是否与 预设的颜色信息相匹配;
    若获取到了与所述电子红包消息关联的文字,则检测所述文字是否与预设的文字信息相匹配;
    若所述图片的颜色信息与所述预设的颜色信息相匹配,和/或,若所述文字与所述预设的文字信息相匹配,则确定所述电子红包消息的对应资源已被获取。
  7. 如权利要求1所述的消息加载方法,其特征在于,所述当预设应用程序接收到消息时,识别所述消息的类型,包括:
    当所述应用程序接收到消息时,检测所述应用程序的运行状态;
    若所述应用程序未处于前台运行,则识别所述消息的类型。
  8. 如权利要求7所述的消息加载方法,其特征在于,在将所述电子红包消息加入预设队列之后,还包括:
    对所述应用程序的运行状态进行监听;
    当监听到所述应用程序进入前台运行时,生成消息加载指令;
    向所述应用程序发送所述消息加载指令。
  9. 如权利要求1至8任一项所述的消息加载方法,其特征在于,所述识别所述消息的类型,包括:
    判断所述消息中是否包含图片;
    若包含图片,则计算所述图片的长度和宽度的比值;
    将所述图片的长度和宽度的比值与标准红包图片长度和宽度的比值进行比较,若相同,则确定所述消息的类型为电子红包消息。
  10. 一种消息加载装置,其特征在于,包括:
    消息识别单元,用于当预设的应用程序接收到消息时,识别所述消息的类型;
    队列管理单元,用于若识别出所述消息的类型为电子红包消息,则将所述电子红包消息加入预设的队列中;
    消息加载单元,用于在接收到针对所述应用程序的消息加载指令时,加载其它未读消息,其中,所述其它未读消息为不在所述队列中的所述应用程序的未读消息,并在所述其它未读消息加载完成后,加载所述队列中的电子红包消息。
  11. 一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:
    当预设的应用程序接收到消息时,识别所述消息的类型;
    若识别出所述消息的类型为电子红包消息,则将所述电子红包消息加入预设的队 列中;
    在接收到针对所述应用程序的消息加载指令时,加载其它未读消息,其中,所述其它未读消息为不在所述队列中的所述应用程序的未读消息;
    在所述其它未读消息加载完成后,加载所述队列中的电子红包消息。
  12. 如权利要求11所述的移动终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    在识别出所述消息的类型为电子红包消息之后,检测所述电子红包消息的对应资源是否被获取;
    若所述电子红包消息的对应资源未被获取,则对所述电子红包消息进行标记;
    所述将所述电子红包消息加入预设队列中,包括:
    将被标记的所述电子红包消息加入所述队列中。
  13. 如权利要求12所述的移动终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    在所述加载所述队列中的电子红包消息之后,通过列表视图显示所述电子红包消息;
    监听与所述电子红包消息关联的抢红包控件是否已被用户触发,其中,所述抢红包控件用于提供抢电子红包的接口;
    若监听到与所述电子红包消息关联的抢红包控件已被所述用户触发,则取消对所述电子红包消息的标记,并将所述电子红包消息从所述队列中移出。
  14. 如权利要求12所述的移动终端,其特征在于,所述处理器执行所述计算机程序时,所述检测所述电子红包消息的对应资源是否被获取,包括:
    在识别出所述消息的类型为电子红包消息后的预设时间内,检测所述电子红包消息的对应资源是否被获取。
  15. 如权利要求12所述的移动终端,其特征在于,所述处理器执行所述计算机程序时,所述检测所述电子红包消息的对应资源是否被获取,包括:
    获取与所述电子红包消息关联的图片和/或文字;
    根据所述图片和/或文字检测所述电子红包消息的对应资源是否被获取。
  16. 如权利要求15所述的移动终端,其特征在于,所述处理器执行所述计算机程序时,所述根据所述图片和/或文字检测所述电子红包消息的对应资源是否被获取,包括:
    若获取到了与所述电子红包消息关联的图片,则检测所述图片的颜色信息是否与预设的颜色信息相匹配;
    若获取到了与所述电子红包消息关联的文字,则检测所述文字是否与预设的文字 信息相匹配;
    若所述图片的颜色信息与所述预设的颜色信息相匹配,和/或,若所述文字与所述预设的文字信息相匹配,则确定所述电子红包消息的对应资源已被获取。
  17. 如权利要求11所述的移动终端,其特征在于,所述处理器执行所述计算机程序时,所述当预设应用程序接收到消息时,识别所述消息的类型,包括:
    当所述应用程序接收到消息时,检测所述应用程序的运行状态;
    若所述应用程序未处于前台运行,则识别所述消息的类型。
  18. 如权利要求17所述的移动终端,其特征在于,所述处理器执行所述计算机程序时还实现以下步骤:
    在将所述电子红包消息加入预设队列之后,对所述应用程序的运行状态进行监听;
    当监听到所述应用程序进入前台运行时,生成消息加载指令;
    向所述应用程序发送所述消息加载指令。
  19. 如权利要求11至18所述的移动终端,其特征在于,所述处理器执行所述计算机程序时,所述识别所述消息的类型,包括:
    判断所述消息中是否包含图片;
    若包含图片,则计算所述图片的长度和宽度的比值;
    将所述图片的长度和宽度的比值与标准红包图片长度和宽度的比值进行比较,若相同,则确定所述消息的类型为电子红包消息。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述方法的步骤。
PCT/CN2018/112654 2018-10-30 2018-10-30 一种消息加载方法、消息加载装置及移动终端 WO2020087269A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098223.2A CN112771499A (zh) 2018-10-30 2018-10-30 一种消息加载方法、消息加载装置及移动终端
PCT/CN2018/112654 WO2020087269A1 (zh) 2018-10-30 2018-10-30 一种消息加载方法、消息加载装置及移动终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/112654 WO2020087269A1 (zh) 2018-10-30 2018-10-30 一种消息加载方法、消息加载装置及移动终端

Publications (1)

Publication Number Publication Date
WO2020087269A1 true WO2020087269A1 (zh) 2020-05-07

Family

ID=70461941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/112654 WO2020087269A1 (zh) 2018-10-30 2018-10-30 一种消息加载方法、消息加载装置及移动终端

Country Status (2)

Country Link
CN (1) CN112771499A (zh)
WO (1) WO2020087269A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422461A (zh) * 2022-01-04 2022-04-29 维沃移动通信有限公司 消息引用方法及其装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488147A (zh) * 2008-01-18 2009-07-22 株式会社理光 用于信息搜索的设备、系统和方法
CN107302493A (zh) * 2017-06-30 2017-10-27 广东欧珀移动通信有限公司 一种消息处理方法、消息处理装置及智能终端
CN108021420A (zh) * 2016-12-23 2018-05-11 北京车和家信息技术有限责任公司 消息展示的方法、装置、中控显示系统及车辆

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645791A (zh) * 2016-07-22 2018-01-30 电信科学技术研究院 一种传输数据流的无线承载处理方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488147A (zh) * 2008-01-18 2009-07-22 株式会社理光 用于信息搜索的设备、系统和方法
CN108021420A (zh) * 2016-12-23 2018-05-11 北京车和家信息技术有限责任公司 消息展示的方法、装置、中控显示系统及车辆
CN107302493A (zh) * 2017-06-30 2017-10-27 广东欧珀移动通信有限公司 一种消息处理方法、消息处理装置及智能终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422461A (zh) * 2022-01-04 2022-04-29 维沃移动通信有限公司 消息引用方法及其装置

Also Published As

Publication number Publication date
CN112771499A (zh) 2021-05-07

Similar Documents

Publication Publication Date Title
EP4109822A1 (en) Fault detection method and device
US20140007106A1 (en) Display and Terminate Running Applications
CN108063818B (zh) 数据下载方法、装置、终端和计算机可读存储介质
CN106980442B (zh) 一种图标管理方法及电子设备
CN107302493B (zh) 一种消息处理方法、消息处理装置及智能终端
CN112491998B (zh) 消息推送方法及相关设备
CN108520063A (zh) 事件日志的处理方法、装置及终端设备
CN106569917A (zh) 一种数据备份方法及移动移动终端
CN112654974B (zh) 一种文件扫描方法、文件扫描装置及终端设备
CN110881224B (zh) 一种网络长连接方法、装置、设备及存储介质
WO2020087269A1 (zh) 一种消息加载方法、消息加载装置及移动终端
CN108092784A (zh) 一种创建群组的方法、终端及计算机可读介质
WO2024087618A1 (zh) 一种截屏方法、截屏装置、截屏设备及计算机存储介质
CN107948584A (zh) 一种图像采集方法、终端及计算机可读介质
CN110009484A (zh) 业务数据处理方法、设备、服务器及计算机可读存储介质
CN108427620A (zh) 信息处理方法、移动终端及计算机可读存储介质
CN108595238A (zh) 应用界面的显示控制方法及装置
CN109104481A (zh) 文件完整性检测方法、文件完整性检测装置及终端设备
CN113779021B (zh) 数据处理方法、装置、计算机系统及可读存储介质
CN108536512A (zh) 界面切换方法、装置及终端设备
US9641682B2 (en) Marketing channel selection on an individual recipient basis
CN107465842A (zh) 呼叫中心的外呼方法及终端设备
CN108509111B (zh) 应用的通知方法、装置及终端设备
WO2020082354A1 (zh) 一种系统状态检测方法、系统状态装置及终端设备
CN111475322A (zh) 定位stuck线程的方法、装置、计算机设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18938704

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18938704

Country of ref document: EP

Kind code of ref document: A1