CN107483545B - Expression picture updating method, mobile terminal and storage medium - Google Patents

Expression picture updating method, mobile terminal and storage medium Download PDF

Info

Publication number
CN107483545B
CN107483545B CN201710599118.4A CN201710599118A CN107483545B CN 107483545 B CN107483545 B CN 107483545B CN 201710599118 A CN201710599118 A CN 201710599118A CN 107483545 B CN107483545 B CN 107483545B
Authority
CN
China
Prior art keywords
expression picture
version number
local
expression
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710599118.4A
Other languages
Chinese (zh)
Other versions
CN107483545A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710599118.4A priority Critical patent/CN107483545B/en
Publication of CN107483545A publication Critical patent/CN107483545A/en
Application granted granted Critical
Publication of CN107483545B publication Critical patent/CN107483545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses an expression picture updating method, a mobile terminal and a storage medium, wherein the expression picture updating method comprises the following steps: extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number; when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server; receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server; and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture. The method and the device can reduce the number of times of the user for detecting and updating requests, so that the user can obtain the latest expression picture without manually updating the version when needed, and the user can use the latest expression picture conveniently.

Description

Expression picture updating method, mobile terminal and storage medium
Technical Field
The invention relates to the field of internet, in particular to an expression picture updating method, a mobile terminal and a storage medium.
Background
With the rapid development of internet technology and social networks, various social platforms and social software have come to the fore, and are essential for information exchange in the social platforms and the social software and enrichment of vivid expression pictures. At present, expression pictures are built in mobile terminal application, so that user communication is richer, and user experience is enhanced. When a user chats with the expression pictures, the expression pictures are usually identified by the application of the mobile terminal through special codes, and other terminals decode and find the corresponding expression pictures for displaying when browsing.
With the development of the times and the progress of the society, the expression pictures built in the mobile terminal application also need to be continuously updated, and generally, the version of the mobile terminal application is updated, so that the expression pictures are updated. However, in order to update the expression picture, the version of the application of the mobile terminal is updated, so that the updating times are increased, and the situation that the version is not updated in time by the user is easy to occur, so that the new expression picture cannot be displayed normally, and the use by the user is inconvenient.
Therefore, the existing expression picture updating method has the problems that the situation that a user does not update the version in time is easy to occur, so that a new expression picture cannot be displayed normally, and the use by the user is inconvenient.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an expression picture updating method, a mobile terminal and a storage medium, and aims to solve the technical problems that a new expression picture cannot be normally displayed and is inconvenient for a user to use.
In order to achieve the above object, the present invention provides an expression picture updating method, including the following steps:
extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
Optionally, the step of extracting the expression picture version number from the received text message includes:
extracting expression picture codes from the received text information;
and processing the expression picture codes to obtain the version numbers of the expression pictures.
Optionally, the step of updating the local expression picture list according to the expression picture includes:
judging whether a local expression picture list comprises an expression picture number of the expression picture;
if the local expression picture list does not include the expression picture number of the expression picture, adding the expression picture to the local expression picture list;
if the local expression picture list comprises the expression picture numbers of the expression pictures, obtaining historical expression pictures according to the expression picture numbers, and replacing the historical expression pictures with the expression pictures.
Optionally, before the step of extracting an expression picture version number from the received text information and comparing the expression picture version number with a local expression picture version number, the expression picture updating method further includes:
judging whether the received text information contains expression picture information or not;
if the received text information contains expression picture information, executing the step of extracting the version number of the expression picture from the received text information and comparing the version number of the expression picture with the version number of the local expression picture;
and if the received text information does not contain the expression picture information, displaying the text information.
Optionally, after the step of replacing the local expression picture version number with the latest expression picture version number and updating the local expression picture list according to the expression picture, the expression picture updating method further includes:
extracting expression picture codes from the text information, and processing the expression picture codes to obtain expression picture numbers;
and acquiring an expression picture from the updated local expression picture list according to the expression picture number, and displaying the expression picture and the text information.
Optionally, when receiving a local expression picture version number, the server acquires an expression picture of which the expression picture version number is greater than the local expression picture version number, and acquires a latest expression picture version number; and returning the latest expression picture version number and the expression picture to the mobile terminal.
Optionally, before the step of receiving the latest expression picture version number and the expression picture with the expression picture version number greater than the local expression picture version number returned by the server, the expression picture updating method further includes:
judging whether the current network environment of the mobile terminal is a wireless network environment or not;
if the current network environment of the mobile terminal is a wireless network environment, executing the step of receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
if the current network environment of the mobile terminal is not the wireless network environment, extracting an expression picture number from the text information, and sending the expression picture number to a server;
and receiving the expression picture returned by the server based on the expression picture number, and displaying the expression picture.
Optionally, the expression picture updating method further includes:
receiving a triggered expression picture updating instruction, and sending an expression picture updating request to a server according to the expression picture updating instruction;
and receiving an emoticon updating package returned by the server based on the emoticon updating request, and updating a local emoticon list according to the emoticon updating package.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: the system comprises a memory, a processor and an expression picture updating program which is stored on the memory and can run on the processor, wherein when the expression picture updating program is executed by the processor, the following steps are realized:
extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
The present invention also provides a computer-readable storage medium having stored thereon an emoticon updating program which, when executed by a processor, implements the steps of:
extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
The invention extracts the version number of the expression picture from the received text information, compares the version number of the expression picture with the version number of the local expression picture, then sends the version number of the local expression picture to a server when the version number of the expression picture is greater than the version number of the local expression picture, receives the latest version number of the expression picture returned by the server and the expression picture of which the version number is greater than the version number of the local expression picture, finally replaces the version number of the local expression picture with the latest version number of the expression picture and updates a local expression picture list according to the expression picture, and when the text information is received, the scheme extracts the version number of the expression picture in the file information and compares the version number with the version number of the local expression picture, so that when the version number of the expression picture is greater than the version number of the local expression picture, the expression picture is downloaded from the server for updating, the number of times of the user for detecting and updating requests is reduced, so that the user can obtain the latest expression picture without manually updating the version when needed, and the user can use the expression picture conveniently.
Drawings
Fig. 1 is a schematic hardware configuration diagram of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic flow chart illustrating an expression picture updating method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a detailed flow of the step of extracting the version number of the emoticon from the received text message in FIG. 2;
fig. 4 is a detailed flowchart of the step of updating the local expression picture list according to the expression picture in fig. 2;
FIG. 5 is a flowchart illustrating a method for updating an expression picture according to a second embodiment of the present invention;
fig. 6 is a flowchart illustrating an expression picture updating method according to a third embodiment of the present invention;
fig. 7 is a flowchart illustrating an expression picture updating method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: extracting an expression picture version number from the received text information, comparing the expression picture version number with a local expression picture version number, then sending the local expression picture version number to a server when the expression picture version number is larger than the local expression picture version number, receiving the latest expression picture version number returned by the server and an expression picture of which the expression picture version number is larger than the local expression picture version number, finally replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
Due to the fact that in the prior art, the version of the application of the mobile terminal is updated, and therefore updating of the expression picture is achieved. However, in order to update the expression picture, the version of the application of the mobile terminal is updated, so that the updating times are increased, and the situation that the version is not updated in time by the user is easy to occur, so that the new expression picture cannot be displayed normally, and the use by the user is inconvenient.
The invention provides a solution, when text information is received, the expression picture version number in the file information is extracted and compared with the local expression picture version number, so that when the expression picture version number is larger than the local expression picture version number, the expression picture is downloaded from a server for updating, the number of times of requesting for detecting and updating by a user is reduced, the user can obtain the latest expression picture without manually updating the version when necessary, and the use by the user is convenient.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: WiFi module 102, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an emoticon update program; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 109 may include high speed random access memory, and may also include non-volatile memory.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In the mobile terminal shown in fig. 1, the processor 110 may be configured to call the emotion picture update program stored in the memory 109, and perform the following steps:
extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
Further, the step of extracting the expression picture version number from the received text message includes:
extracting expression picture codes from the received text information;
and processing the expression picture codes to obtain the version numbers of the expression pictures.
Further, the step of updating the local expression picture list according to the expression picture includes:
judging whether a local expression picture list comprises an expression picture number of the expression picture;
if the local expression picture list does not include the expression picture number of the expression picture, adding the expression picture to the local expression picture list;
if the local expression picture list comprises the expression picture numbers of the expression pictures, obtaining historical expression pictures according to the expression picture numbers, and replacing the historical expression pictures with the expression pictures.
Further, the processor 110 may call the emotion picture update program stored in the memory 109, and further perform the following steps:
judging whether the received text information contains expression picture information or not;
if the received text information contains expression picture information, extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
and if the received text information does not contain the expression picture information, displaying the text information.
Further, the processor 110 may call the emotion picture update program stored in the memory 109, and further perform the following steps:
extracting expression picture codes from the text information, and processing the expression picture codes to obtain expression picture numbers;
and acquiring an expression picture from the updated local expression picture list according to the expression picture number, and displaying the expression picture and the text information.
Further, the processor 110 may call the emotion picture update program stored in the memory 109, and further perform the following steps:
judging whether the current network environment of the mobile terminal is a wireless network environment or not;
if the current network environment of the mobile terminal is a wireless network environment, receiving the latest expression picture version number and the expression picture of which the expression picture version number is greater than the local expression picture version number returned by the server;
if the current network environment of the mobile terminal is not the wireless network environment, extracting an expression picture number from the text information, and sending the expression picture number to a server;
and receiving the expression picture returned by the server based on the expression picture number, and displaying the expression picture.
Further, the processor 110 may call the emotion picture update program stored in the memory 109, and further perform the following steps:
receiving a triggered expression picture updating instruction, and sending an expression picture updating request to a server according to the expression picture updating instruction;
and receiving an emoticon updating package returned by the server based on the emoticon updating request, and updating a local emoticon list according to the emoticon updating package.
The embodiment of the mobile terminal of the present invention is substantially the same as the embodiments of the expression picture updating method described below, and will not be described herein again.
The invention provides an expression picture updating method.
Referring to fig. 2, fig. 2 is a flowchart illustrating an expression picture updating method according to a first embodiment of the present invention.
In this embodiment, the expression picture updating method includes:
step S101, extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
the expression picture updating method is applied to a mobile terminal, the mobile terminal comprises a smart phone, a tablet personal computer and the like, a mobile terminal application is installed in the mobile terminal, an expression picture package is built in the mobile terminal application, expression pictures in the expression picture package comprise expression picture numbers and expression picture version numbers, the expression picture numbers are used for identifying the expression pictures, the expression picture version numbers are used for identifying the expression picture packages, and each mobile terminal application has only one expression picture version number. The mobile terminal performs data interaction with a server through a network interface, the server stores expression pictures, and when the expression pictures in the server are not updated, the expression pictures stored in the server are synchronous with the expression pictures built in the mobile terminal.
When a user uses a built-in expression picture to perform comment or chat operation in a mobile terminal, text information containing expression picture information is generated, and meanwhile, coding is performed according to the current expression picture version number and the expression picture number, for example, if the current expression picture version number is 5 and the expression picture number is a110, the expression picture can be coded into [. 5-a110 ], then the expression picture code is written into the text information, and the text information is sent to a server, and when the server receives the text information, the text information is sent to mobile terminals logged in by other users. And the mobile terminal receives the text information sent by the server, extracts the expression picture version number from the received text information, and compares the expression picture version number with the local expression picture version number.
Specifically, referring to fig. 3, fig. 3 is a detailed flowchart of step S101 shown in fig. 2, where step S101 includes:
step S1011, extracting expression picture codes from the received text information;
step S1012, processing the expression picture code to obtain an expression picture version number.
When the mobile terminal receives the text information sent by the server, the mobile terminal extracts the expression picture codes from the received text information and processes the expression picture codes, so that the expression picture version number is extracted. For example, the expression picture code extracted from the received text message is [. multidot.512x ], the expression picture code [. multidot.512x ] is processed, and the version number of the extracted expression picture is 5. And then comparing the expression picture version number with the local expression version number.
Step S102, when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
step S103, receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and the mobile terminal obtains that the version number of the expression picture is greater than the version number of the local expression picture through comparison, and then sends the version number of the local expression picture to the server. The server obtains the expression picture with the version number larger than that of the local expression picture when receiving the version number of the local expression picture, obtains the latest version number of the expression picture, and then returns the latest version number of the expression picture and the expression picture to the mobile terminal. For example, if the local version number received by the server is 4, and the maximum version number of the expression picture in the server is 6, the expression pictures with the version numbers of 5 and 6 and the latest version number 6 of the expression picture are obtained and then returned to the mobile terminal together. And the mobile terminal receives the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server.
And step S104, replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
And when the mobile terminal receives the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server, replacing the local expression picture version number with the latest expression picture version number, and updating the local expression picture list according to the expression picture.
Specifically, referring to fig. 4, fig. 4 is a detailed flowchart of step S104 shown in fig. 2, where the step S104 includes:
step S1041, judging whether the local expression picture list comprises the expression picture number of the expression picture;
step S1042, if the local expression picture list does not include the expression picture number of the expression picture, adding the expression picture to the local expression picture list;
step S1043, if the local expression picture list includes the expression picture number of the expression picture, acquiring a historical expression picture according to the expression picture number, and replacing the historical expression picture with the expression picture.
The mobile terminal judges whether a local expression picture list comprises an expression picture number of an expression picture when receiving the expression picture of which the expression picture version number is greater than the local expression picture version number sent by a server, if the local expression picture list does not comprise the expression picture number of the expression picture, the expression picture is added to the local expression picture list, and if the local expression picture list comprises the expression picture number of the expression picture, a historical expression picture is obtained according to the expression picture number, and the historical expression picture is replaced by the expression picture.
In specific implementation, the server may obtain the mobile terminal with the automatic updating right from the database, and issue an expression picture updating package to the mobile terminal, so that the mobile terminal updates the local expression picture list based on the expression picture updating package, thereby completing the updating of the expression picture without manual updating by a user. In another specific implementation, after the expression picture in a certain user is updated, the user can share the updated expression picture with other users in a manner of bluetooth and the like, so that other users can acquire the updated expression picture in time.
Furthermore, after the local expression picture list is updated, expression picture codes are extracted from the text information and are processed to obtain expression picture numbers, expression pictures are obtained from the updated local expression picture list according to the expression picture numbers, and the expression pictures and the text information are displayed, so that a user can use the local expression picture list without manually updating the expression pictures.
In this embodiment, the present invention extracts an expression picture version number from the received text information, compares the expression picture version number with a local expression picture version number, then sends the local expression picture version number to the server when the expression picture version number is greater than the local expression picture version number, receives the latest expression picture version number returned by the server and an expression picture with an expression picture version number greater than the local expression picture version number, finally replaces the local expression picture version number with the latest expression picture version number, and updates the local expression picture list according to the expression picture, when the text information is received, extracts the expression picture version number in the file information, compares the extracted expression picture version number with the local expression picture version number, and when the expression picture version number is greater than the local expression picture version number, the expression pictures are downloaded from the server for updating, so that the number of times of requests of a user for detecting the updating is reduced, the user can obtain the latest expression picture without manually updating the version when needed, and the use by the user is facilitated.
Further, referring to fig. 5, a second embodiment of the expression picture updating method according to the present invention is provided based on the first embodiment, and the difference from the foregoing embodiment is that before the step S101, the expression picture updating method further includes:
step S105, judging whether the received text information contains expression picture information;
if the received text information contains the expression picture information, executing step S101, namely extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
and step S106, if the received text information does not contain the expression picture information, displaying the text information.
The mobile terminal judges whether the received text information contains expression picture information when receiving the text information sent by the server, wherein the expression picture information comprises expression icon codes, if the received text information contains the expression picture information, the expression picture codes are extracted from the received text information and are processed to obtain expression picture version numbers, then the expression picture version numbers are compared with local expression picture version numbers, and if the received text information does not contain the expression picture information, the text information is displayed.
In this embodiment, the method and the device for processing the text information realize different processing on the text information by judging whether the received text information contains the emotion image information or not, and improve the processing efficiency.
Further, referring to fig. 6, a third embodiment of the expression picture updating method according to the present invention is proposed based on the first or second embodiment, and the difference from the foregoing embodiment is that before step S103, the expression picture updating method further includes:
step S107, judging whether the current network environment of the mobile terminal is the wireless network environment;
if the current network environment of the mobile terminal is the wireless network environment, executing step S103, namely receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
step S108, if the current network environment of the mobile terminal is not the wireless network environment, extracting the expression picture number from the text information, and sending the expression picture number to a server;
step S109, receiving the expression picture returned by the server based on the expression picture number, and displaying the expression picture.
The mobile terminal sends the local expression picture version number to the server, judges whether the current network environment of the mobile terminal is a wireless network environment, receives the latest expression picture version number and the expression picture version number which is larger than the local expression picture version number and is returned by the server if the current network environment of the mobile terminal is the wireless network environment, replaces the local expression picture version number with the latest expression picture version number, and updates a local expression picture list according to the expression picture; and if the current network environment of the mobile terminal is not the wireless network environment, extracting the expression picture number from the text information, sending the expression picture number to a server, receiving an expression picture returned by the server based on the expression picture number, and displaying the expression picture.
In this embodiment, the method and the device can update the local expression picture list when the current network environment is the wireless network environment by detecting whether the current network environment of the mobile terminal is the wireless network environment, acquire a new expression picture when the current network environment is not the wireless network environment, and display the new expression picture to the user, so that the user traffic can be effectively saved, and the user experience can be improved.
Further, referring to fig. 7, a fourth embodiment of the expression picture updating method according to the present invention is provided based on the first, second, or third embodiment, and is different from the foregoing embodiment in that the expression picture updating method further includes:
step S110, receiving a triggered expression picture updating instruction, and sending an expression picture updating request to a server according to the expression picture updating instruction;
step S111, receiving an emoticon update package returned by the server based on the emoticon update request, and updating the local emoticon list according to the emoticon update package.
The method comprises the steps that a user triggers an expression picture updating instruction through an expression picture updating control displayed by a mobile terminal, the mobile terminal sends an expression picture updating request to a server according to the expression picture updating instruction when receiving the expression picture updating instruction triggered by the user based on the expression picture updating control, the local expression picture version number is carried in the expression picture updating request, the server obtains a local expression picture from the expression picture updating request when receiving the expression picture updating request, obtains an expression picture of which the expression picture version number is larger than the local expression picture version number, generates an expression picture updating package version number, and then returns the expression picture updating package to the mobile terminal, so that the mobile terminal can update a local expression picture list based on the expression picture updating package.
In this embodiment, the server issues the emotion image update package to update the emotion image without updating the whole application, so that the size of the update package is greatly reduced, and the update efficiency is improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an emoticon updating program is stored on the computer-readable storage medium, and when executed by a processor, the emoticon updating program implements the following steps:
extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
Further, the step of extracting the expression picture version number from the received text message includes:
extracting expression picture codes from the received text information;
and processing the expression picture codes to obtain the version numbers of the expression pictures.
Further, when being executed by the processor, the expression picture updating program further realizes the following steps:
judging whether the received text information contains expression picture information or not;
if the received text information contains expression picture information, extracting an expression picture version number from the received text information, and comparing the expression picture version number with a local expression picture version number;
and if the received text information does not contain the expression picture information, displaying the text information.
Further, when being executed by the processor, the expression picture updating program further realizes the following steps:
extracting expression picture codes from the text information, and processing the expression picture codes to obtain expression picture numbers;
and acquiring an expression picture from the updated local expression picture list according to the expression picture number, and displaying the expression picture and the text information.
Further, when being executed by the processor, the expression picture updating program further realizes the following steps:
judging whether the current network environment of the mobile terminal is a wireless network environment or not;
if the current network environment of the mobile terminal is a wireless network environment, receiving the latest expression picture version number and the expression picture of which the expression picture version number is greater than the local expression picture version number returned by the server;
if the current network environment of the mobile terminal is not the wireless network environment, extracting an expression picture number from the text information, and sending the expression picture number to a server;
and receiving the expression picture returned by the server based on the expression picture number, and displaying the expression picture.
Further, when being executed by the processor, the expression picture updating program further realizes the following steps:
receiving a triggered expression picture updating instruction, and sending an expression picture updating request to a server according to the expression picture updating instruction;
and receiving an emoticon updating package returned by the server based on the emoticon updating request, and updating a local emoticon list according to the emoticon updating package.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the specific embodiments of the above-mentioned expression picture updating method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An expression picture updating method is characterized by comprising the following steps:
extracting expression picture codes from the received text information;
processing the expression picture codes to obtain expression picture version numbers, and comparing the expression picture version numbers with local expression picture version numbers;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server, wherein when the expression picture in the server is not updated, the expression picture stored in the server is synchronous with the expression picture built in the mobile terminal;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
2. The method for updating the facial expression picture according to claim 1, wherein the step of updating the local facial expression picture list according to the facial expression picture comprises:
judging whether a local expression picture list comprises an expression picture number of the expression picture;
if the local expression picture list does not include the expression picture number of the expression picture, adding the expression picture to the local expression picture list;
if the local expression picture list comprises the expression picture numbers of the expression pictures, obtaining historical expression pictures according to the expression picture numbers, and replacing the historical expression pictures with the expression pictures.
3. The method for updating emoticons according to claim 1, wherein before the step of extracting an emoticons version number from the received text message and comparing the emoticons version number with a local emoticons version number, the method for updating emoticons further comprises:
judging whether the received text information contains expression picture information or not;
if the received text information contains expression picture information, executing the step of extracting the version number of the expression picture from the received text information and comparing the version number of the expression picture with the version number of the local expression picture;
and if the received text information does not contain the expression picture information, displaying the text information.
4. The method for updating emoticons according to claim 1, wherein after the step of replacing the local emoticons version number with the latest emoticons version number and updating the local emoticons list according to the emoticons, the method for updating emoticons further comprises:
extracting expression picture codes from the text information, and processing the expression picture codes to obtain expression picture numbers;
and acquiring an expression picture from the updated local expression picture list according to the expression picture number, and displaying the expression picture and the text information.
5. The method for updating the expression pictures according to any one of claims 1 to 4, wherein the server acquires an expression picture with an expression picture version number greater than a local expression picture version number and acquires a latest expression picture version number when receiving the local expression picture version number; and returning the latest expression picture version number and the expression picture to the mobile terminal.
6. The method for updating emoticons according to any one of claims 1 to 4, wherein before the step of receiving the latest emoticons version number and the emoticons whose emoticons version numbers are greater than the local emoticons version number returned by the server, the method for updating emoticons further comprises:
judging whether the current network environment of the mobile terminal is a wireless network environment or not;
if the current network environment of the mobile terminal is a wireless network environment, executing the step of receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server;
if the current network environment of the mobile terminal is not the wireless network environment, extracting an expression picture number from the text information, and sending the expression picture number to a server;
and receiving the expression picture returned by the server based on the expression picture number, and displaying the expression picture.
7. The method for updating an expression picture according to any one of claims 1 to 4, wherein the method for updating an expression picture further comprises:
receiving a triggered expression picture updating instruction, and sending an expression picture updating request to a server according to the expression picture updating instruction;
and receiving an emoticon updating package returned by the server based on the emoticon updating request, and updating a local emoticon list according to the emoticon updating package.
8. A mobile terminal, characterized in that the mobile terminal comprises: the system comprises a memory, a processor and an expression picture updating program which is stored on the memory and can run on the processor, wherein when the expression picture updating program is executed by the processor, the following steps are realized:
extracting expression picture codes from the received text information;
processing the expression picture codes to obtain expression picture version numbers, and comparing the expression picture version numbers with local expression picture version numbers;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server, wherein when the expression picture in the server is not updated, the expression picture stored in the server is synchronous with the expression picture built in the mobile terminal;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
9. A computer-readable storage medium having stored thereon an emoticon update program that, when executed by a processor, performs the steps of:
extracting expression picture codes from the received text information;
processing the expression picture codes to obtain expression picture version numbers, and comparing the expression picture version numbers with local expression picture version numbers;
when the expression picture version number is larger than the local expression picture version number, sending the local expression picture version number to a server;
receiving the latest expression picture version number and the expression picture with the expression picture version number larger than the local expression picture version number returned by the server, wherein when the expression picture in the server is not updated, the expression picture stored in the server is synchronous with the expression picture built in the mobile terminal;
and replacing the local expression picture version number with the latest expression picture version number, and updating a local expression picture list according to the expression picture.
CN201710599118.4A 2017-07-20 2017-07-20 Expression picture updating method, mobile terminal and storage medium Active CN107483545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710599118.4A CN107483545B (en) 2017-07-20 2017-07-20 Expression picture updating method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710599118.4A CN107483545B (en) 2017-07-20 2017-07-20 Expression picture updating method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107483545A CN107483545A (en) 2017-12-15
CN107483545B true CN107483545B (en) 2021-10-29

Family

ID=60596458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710599118.4A Active CN107483545B (en) 2017-07-20 2017-07-20 Expression picture updating method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107483545B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259788A (en) * 2018-01-29 2018-07-06 努比亚技术有限公司 Video editing method, terminal and computer readable storage medium
CN108737250A (en) * 2018-05-14 2018-11-02 北京蓝涟科技有限责任公司 Picture is synchronous under a kind of low bandwidth and display methods
CN110198380A (en) * 2019-06-12 2019-09-03 广东佳米科技有限公司 A kind of method and system for making window client support Emoji expression

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242593A1 (en) * 2005-04-26 2006-10-26 Sharp Laboratories Of America, Inc. Printer emoticon detector & converter
US20090125806A1 (en) * 2007-11-13 2009-05-14 Inventec Corporation Instant message system with personalized object and method thereof
CN106021522A (en) * 2016-05-25 2016-10-12 武汉斗鱼网络科技有限公司 Update method and device for symbol system of client-side
CN106293738B (en) * 2016-08-09 2020-03-17 腾讯科技(深圳)有限公司 Expression image updating method and device
CN106530096B (en) * 2016-10-08 2020-05-22 广州阿里巴巴文学信息技术有限公司 Emotion symbol processing method and device and electronic device

Also Published As

Publication number Publication date
CN107483545A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
JP6461173B2 (en) Message withdrawal method and apparatus
CN106470148B (en) Group chat content display method and device
US9241242B2 (en) Information recommendation method and apparatus
CN106778117B (en) Permission open method, apparatus and system
US10652287B2 (en) Method, device, and system for managing information recommendation
CN103294339A (en) Image display device and method of controlling the same
CN113259221B (en) Message display method and device and electronic equipment
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN107436948B (en) File searching method and device and terminal
CN109739402B (en) Fast application processing method and terminal equipment
CN106293738B (en) Expression image updating method and device
CN107483545B (en) Expression picture updating method, mobile terminal and storage medium
CN111813299A (en) Information sharing method, information sharing device and electronic equipment
CN108809805B (en) Information interaction method and system and public account client
CN109428871B (en) Defense strategy determination method and device
CN112511412A (en) Information sending method and device, electronic equipment and readable storage medium
CN112269798A (en) Information display method and device and electronic equipment
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN110175063B (en) Operation assisting method, device, mobile terminal and storage medium
EP3001652B1 (en) Method for providing information and an electronic device thereof
WO2023046105A1 (en) Message sending method and apparatus and electronic device
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN112286611B (en) Icon display method and device and electronic equipment
CN105681723B (en) Audio and video call method and device
CN111880912A (en) Method and device for controlling electronic equipment and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant