CN110049456B - Method and device for displaying rich media on mobile terminal and mobile terminal - Google Patents

Method and device for displaying rich media on mobile terminal and mobile terminal Download PDF

Info

Publication number
CN110049456B
CN110049456B CN201910230558.1A CN201910230558A CN110049456B CN 110049456 B CN110049456 B CN 110049456B CN 201910230558 A CN201910230558 A CN 201910230558A CN 110049456 B CN110049456 B CN 110049456B
Authority
CN
China
Prior art keywords
access content
link address
rich media
server
displaying
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
CN201910230558.1A
Other languages
Chinese (zh)
Other versions
CN110049456A (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.)
Shenzhen Wulian World Technology Co ltd
Original Assignee
Shenzhen Wulian World 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 Shenzhen Wulian World Technology Co ltd filed Critical Shenzhen Wulian World Technology Co ltd
Priority to CN201910230558.1A priority Critical patent/CN110049456B/en
Publication of CN110049456A publication Critical patent/CN110049456A/en
Application granted granted Critical
Publication of CN110049456B publication Critical patent/CN110049456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The invention is applicable to the technical field of communication, and provides a method and a device for displaying rich media on a mobile terminal and the mobile terminal, wherein the method for displaying rich media on the mobile terminal comprises the steps of receiving a short message sent by a server, extracting a first link address contained in the received short message, sending a request for accessing the first link address to the server, receiving first access content returned by the server according to the first link address, judging whether the first access content contains a first preset status code, if so, acquiring elements required for displaying rich media according to the received first access content, generating rich media to be displayed according to the acquired elements, and displaying the generated rich media. The invention can directly acquire the rich media when the first link address is the long link address by not limiting the types of the link addresses contained in the received short message, thereby being beneficial to improving the speed of acquiring the rich media.

Description

Method and device for displaying rich media on mobile terminal and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a rich media on a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of information technology, the content that the short message can be spread includes not only text, but also picture, video, audio or voice and other content.
The prior art generally limits the short messages received by the mobile terminal, for example, the short messages received by the mobile terminal are mostly a combination of characters and short link addresses, however, after receiving the short messages, the mobile terminal must first jump to a corresponding long-chain grounding address to acquire a target file, which is often time-consuming.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying a rich media in a mobile terminal, and the mobile terminal, which can directly obtain the rich media when a first link address is a long link address, and are favorable for increasing the speed of obtaining the rich media.
A first aspect of an embodiment of the present invention provides a method for displaying rich media on a mobile terminal, including:
receiving a short message sent by a server;
extracting a first link address contained in the received short message;
sending a request for accessing the first link address to the server, and receiving first access content returned by the server according to the first link address;
judging whether the first access content contains a first preset state code or not;
if the first access content contains the first preset state code, acquiring elements required for displaying the rich media according to the received first access content;
generating rich media to be displayed according to the acquired elements;
displaying the generated rich media.
A second aspect of the embodiments of the present invention provides an apparatus for displaying rich media on a mobile terminal, including:
the receiving module is used for receiving the short message sent by the server;
the extraction module is used for extracting a first link address contained in the received short message;
the sending module is used for sending a request for accessing the first link address to the server and receiving first access content returned by the server according to the first link address;
the judging module is used for judging whether the first access content contains a first preset state code;
the acquisition module is used for acquiring elements required by displaying the rich media according to the received first access content if the first preset state code is included;
the generating module is used for generating rich media to be displayed according to the acquired elements;
and the display module is used for displaying the generated rich media.
A third aspect of embodiments of the present invention provides a mobile terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method of the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method mentioned in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in this embodiment, a short message sent by a server is received first, a first link address included in the received short message is extracted, a request for accessing the first link address is sent to the server, first access content returned by the server according to the first link address is received, whether the first access content includes a first preset status code is determined, if the first access content includes the first preset status code, an element required for displaying a rich media is acquired according to the received first access content, and finally the rich media to be displayed is generated according to the acquired element, and the generated rich media is displayed. Compared with the prior art, the embodiment of the invention can directly acquire the rich media when the first link address is the long link address, is favorable for improving the speed of acquiring the rich media, and has stronger usability and practicability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for displaying rich media on a mobile terminal according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for displaying rich media on a mobile terminal according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for displaying rich media on a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, mobile terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
It should be noted that, the descriptions of "first" and "second" in this embodiment are used to distinguish different regions, modules, and the like, and do not represent a sequential order, and the descriptions of "first" and "second" are not limited to be of different types.
It should be further noted that the method for displaying rich media at a mobile terminal provided in this embodiment relates to a sender (e.g., a bank) of rich media, a sender server of a short message, and a receiver mobile terminal of the short message.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 is a flowchart illustrating a method for displaying rich media on a mobile terminal according to an embodiment of the present invention, where the method may include the following steps:
s101: and receiving the short message sent by the server.
The execution main body of the method for displaying the rich media on the mobile terminal provided by the embodiment can be one of the mobile terminals such as a smart phone, a personal computer and a tablet computer; the rich media is an information transmission method with animation, sound, video and/or interactivity, and comprises streaming media, sound, Flash and one or more of Java, Javascript, DHTML and other programming languages; the server is pre-stored with rich media sent by a sender (such as a bank), and generates a corresponding link address according to the rich media; the short message is an address type short message and comprises characters and a corresponding link address, the link address can comprise information such as a classification number and parameters of rich media, for example, the short message can be an respected user, the consumption amount of the user is 88.88 yuan, and details can be checked by accessing http:// rx.cn/1Qt8 Re.
In one embodiment, the server may generate a corresponding link address from the rich media sent by the sender.
In one embodiment, the server-generated link address may be a long link address.
In one embodiment, the link address generated by the server may be a combination of a Short link address and a long link address, the Short link address is a Short link address corresponding to the long link address, and the Short link address is also called a Short address or Short URL, which refers to a link address with a shorter character length.
In an embodiment, after the server generates the corresponding link address according to the rich media, the server may feed back the generated link address to the sender in the form of a short message.
In one embodiment, the link address generated by the server may contain a parameter for controlling the mobile terminal to download the rich media from the server.
In one embodiment, the rich media sent by the sender may be stored locally or on another server.
In one embodiment, the link address generated from the rich media sent by the sender may be stored locally or on another server.
In one embodiment, the rich media sent by the sender may contain basic information of the target user, such as the name and/or cell phone number of the target user.
In an embodiment, the rich media sent by the sender may further include a preset channel number, where the preset channel number is used to instruct the server to send the generated address-class short message to the mobile terminal used by the target user within a preset time according to the channel number.
It should be noted that at least one target user is provided, and when one target user is provided, it indicates that the server only needs to send the address type short message to a mobile terminal; and when the target users are multiple, the server is indicated to need to send the address short messages to multiple mobile terminals at the same time. In addition, the mobile terminal may be a sending terminal for sending rich media to the server, or may be a receiving terminal for receiving a short message sent by the server.
In one embodiment, the rich media sent by the sender may also contain sender-customized theme information.
S102: and extracting a first link address contained in the received short message.
The first link address is a long link address or a short link ground address.
In one embodiment, step S102 and its subsequent steps may be performed by a preset application.
In one embodiment, before extracting, by a preset application, a first link address included in the received short message, the method further includes:
and judging whether the received short message meets a preset condition or not.
It should be noted that, if the determination result is that the short message does not meet the preset condition, it indicates that the short message is a traditional mode short message directly sent to the target user by the sender, and at this time, the short message only needs to be directly displayed in the short message box; if the result of the determination is that the short message satisfies the preset condition, it indicates that the short message is not the message that the sender directly sends to the target user, and at this time, step S103 and the subsequent steps are continuously performed.
In one embodiment, whether the received short message is an address-class short message containing a preset identifier is determined by an installed preset application, where the preset identifier may be a dedicated domain name and/or a dedicated storage address.
S103: and sending a request for accessing the first link address to the server, and receiving first access content returned by the server according to the first link address.
In one embodiment, the first access content contains elements required to display rich media.
In one embodiment, the first access content further includes a status code indicating the result of the request.
S104: and judging whether the first access content contains a first preset state code.
In one embodiment, the first predetermined status code is a 200 status code indicating successful access.
It should be noted that, only when the first link address is a long link address, the first access content includes the first preset status code. Therefore, whether the extracted first link address is a long-chain grounding address or not can be determined by judging whether the first access content comprises a first preset state code or not, and elements required for displaying rich media contained in the first access content are directly downloaded when the first link address is the long-chain grounding address.
S105: and if the first preset state code is contained, acquiring elements required for displaying the rich media according to the received first access content.
In one embodiment, the elements required to display the rich media comprise both templates and parameters; the template is a fixed format commonly used when sending certain types of rich media; the parameters are template parameters, such as merchant information and/or transaction information, that need to be populated into the template when generating a complete rich media. Of course, in practical applications, if the template is not required to be modified, the element may only include the template.
In one embodiment, if the elements required for displaying the rich media include a template and a parameter, the template and the parameter required for displaying the rich media may be obtained by first extracting the parameter required for displaying the rich media and then downloading the template required for displaying the rich media.
In one embodiment, a template serial number (hereinafter simply referred to as a template ID) of the template may be generated from feature information of the template.
In one embodiment, the template ID is a random combination of 62-ary numbers.
In one embodiment, the parameters and template IDs required for displaying the rich media may be stored on the server in advance.
In one embodiment, information including the sender's company identification and/or official website address may also be downloaded based on the received first access content.
S106: and generating the rich media to be displayed according to the acquired elements.
In one embodiment, if the acquired elements include a template and parameters, the acquired parameters are filled into the acquired template to generate the rich media to be displayed.
S107: displaying the generated rich media.
In one embodiment, the generated rich media may be displayed in a preset manner, for example, in an enhanced mode or a replacement mode, where the enhanced mode refers to performing further enhanced display on the basis of the original short message, for example, adding the generated rich media, so that not only the original text is not lost, but also the information display is richer and more diverse, which is beneficial for a user to quickly identify the content included in the received short message; the replacement mode is that only the generated rich media is displayed on the premise that the original short message is invisible, so that the final display mode is simplified, and the method is suitable for scenes in which the generated rich media can contain all contents in the original short message.
It should be noted that the enhanced mode supports any format of shuffling, such as a top-bottom format of sound-image-text shuffling or a left-back format of sound-image-text shuffling.
In one embodiment, when the rich media to be displayed is an image file, the corresponding thumbnail may be an object of the enhanced display or the replacement display.
In one embodiment, the rich media may also carry hyperlinks.
As can be seen from the above, the embodiment of the present invention does not limit the type of the link address included in the received short message, and can determine that the first link address is the long link address when the first access content includes the first preset status code, so as to directly obtain the elements required for displaying the rich media according to the first access content, and further display the elements after generating the rich media to be displayed, which is beneficial to improving the speed of obtaining the rich media, and has strong usability and practicability.
Example two
Fig. 2 is a flowchart of a method for displaying rich media on a mobile terminal according to a second embodiment of the present invention, which is a further detailed and descriptive step S104 in the first embodiment, and the method may include the following steps:
s201: and receiving the short message sent by the server.
The step S201 is the same as the step S101 in the first embodiment, and the specific implementation process thereof can refer to the description of the step S101, which is not repeated herein.
S202: and judging whether a preset application is installed locally, if not, installing the preset application, and extracting a first link address contained in the received short message through the installed preset application.
In one embodiment, the preset application may be an SDK.
In one embodiment, whether the preset application is installed locally or not can be judged in a networking state, so that the preset application can be downloaded and installed in time when the preset application is not installed.
Step S202 is substantially the same as step S102 in the first embodiment, and the specific implementation process thereof can refer to the description of step S102, which is not repeated herein.
S203: and sending a request for accessing the first link address to the server, and receiving first access content returned by the server according to the first link address.
S204: and judging whether the first access content contains a first preset state code.
The above steps S203 to S204 are the same as the steps S103 to S104 in the first embodiment, and the specific implementation process thereof can refer to the description of the steps S103 to S104, which is not repeated herein.
S205: if the first access content does not contain the first preset state code, judging whether the first access content contains a second preset state code, if so, extracting a second link address contained in the first access content, sending a request for accessing the second link address to the server, and receiving second access content returned by the server according to the second link address.
In one embodiment, the second preset status code corresponds to the first preset status code, including a 302 status code indicating redirection; the second access content contains the template ID.
It should be noted that the server will return the 302 status code indicating redirection only when sending the short link address in the access first link address to the server through the preset application. Therefore, whether the extracted first link address is a short-chain ground address can be determined by judging whether the first access content includes a second preset status code.
It should be appreciated that when the server returns a 302 status code indicating redirection, the second link address can be obtained by simply extracting the content following the status code.
In one embodiment, the second link address is a long-chain ground address corresponding to the short link address.
S206: modifying the received first link address according to the received second access content to generate a third link address, sending a request for accessing the generated third link address to the server, and receiving third access content returned by the server according to the third link address.
In one embodiment, the first link address may be replaced and spliced according to the extracted template ID included in the second access content, so as to generate a third link address.
In one embodiment, the third access content comprises a template among elements required for displaying the rich media.
In one embodiment, the generated third link address is a long link address.
S207: and judging whether the third access content is stored locally.
In practical application, when the number of short messages received by the same mobile terminal is not large, and similar rich media are stored in the local short message box in advance, the rich media can be directly used as a template without repeated downloading, so that whether the template contained in the third access content is stored locally or not needs to be judged before downloading so as to execute corresponding operation.
S208: if the third access content is not stored locally, judging whether the extracted and received first link address contains a control parameter, and if the extracted and received first link address contains the control parameter, downloading the third access content according to the control parameter.
In one embodiment, if the control parameter is included, the template in the elements required for displaying the rich media included in the third access content is downloaded according to the control parameter.
In one embodiment, the control parameter may be extracted directly from the first link address.
In one embodiment, the control parameter may be a parameter that controls downloading of the template, for example, downloading the template only in a WIFI environment.
In one embodiment, the control parameter may also be another parameter that controls the downloading of the template, for example allowing the downloading of the template in the context of a mobile data network.
In an embodiment, the control parameter may also be a parameter for controlling a downloading time, so that a notification message may be returned to the short message box in time after the WIFI signal is not detected for a period of time.
In one embodiment, the control parameter may also be a parameter that controls a display manner, for example, a parameter that controls the mobile terminal to finally display the rich media in a manner of enhancing the display.
In one embodiment, the control parameter may also be other parameters that control the display, such as controlling the mobile terminal to eventually display the rich media in an alternative manner.
In one embodiment, the control parameter may be 1-2 characters.
S209: and generating the rich media to be displayed according to the acquired second access content and the downloaded third access content.
In one embodiment, the second access content further comprises parameters among elements required for displaying the rich media.
In one embodiment, the rich media to be displayed is generated according to the parameters contained in the acquired second access content and the template contained in the downloaded third access content.
In one embodiment, if the elements required for displaying the rich media only include the template, the rich media to be displayed may be generated directly according to the downloaded third access content.
S210: displaying the generated rich media.
Step S210 is substantially the same as step S107 in the first embodiment, and the specific implementation process thereof can refer to the description of step S107, which is not repeated herein.
As can be seen from the above, in the second embodiment of the present application, compared with the first embodiment, another implementation manner for generating a rich media is provided, where the first link address is determined to be a short link address when the first access content includes a second preset status code, so that the second access content is obtained by accessing the corresponding long link address first, then the first link address is modified and accessed according to the second access content, and then a third access content is downloaded to obtain a template required for displaying the rich media, and finally the rich media to be displayed is generated according to the template and parameters included in the second access content, so as to achieve a purpose of flexibly selecting and generating the rich media to be displayed according to a type of the link address included in the short message; in addition, whether the rich media template is stored locally can be judged in advance, repeated downloading and occupation of local memory are avoided, and the method has high usability and practicability.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for displaying rich media on a mobile terminal according to a third embodiment of the present invention, and for convenience of description, only the parts related to the third embodiment of the present invention are shown.
The device for displaying the rich media in the mobile terminal can be a software unit, a hardware unit or a combination unit of software and hardware which are built in the mobile terminal, and can also be integrated into the mobile terminal as an independent pendant.
The device for displaying the rich media on the mobile terminal comprises the following steps:
a receiving module 31, configured to receive a short message sent by a server;
the extracting module 32 is configured to extract a first link address included in the received short message;
a sending module 33, configured to send a request for accessing the first link address to the server, and receive first access content returned by the server according to the first link address;
a determining module 34, configured to determine whether the first access content includes a first preset status code;
an obtaining module 35, configured to obtain, if the first access content includes a first preset status code, an element required for displaying a rich media according to the received first access content;
a generating module 36, configured to generate a rich media to be displayed according to the obtained element;
a display module 37, configured to display the generated rich media.
In one embodiment, the extraction module 32 includes:
the judging unit is used for judging whether preset applications are installed locally or not;
the installation unit is used for installing the preset application if the preset application is not installed;
and the first extraction unit is used for extracting a first link address contained in the received short message through the installed preset application.
In one embodiment, the apparatus further comprises:
the processing module is used for judging whether the first access content contains a first preset state code, judging whether the first access content contains a second preset state code if the first access content does not contain the first preset state code, extracting a second link address contained in the first access content if the first access content contains the second preset state code, sending a request for accessing the second link address to the server, and receiving second access content returned by the server according to the second link address.
In one embodiment, the obtaining module 35 specifically includes:
the generating unit is used for modifying the received first link address according to the received second access content to generate a third link address;
a sending unit, configured to send a request for accessing the generated third link address to the server, and receive third access content returned by the server according to the third link address;
and a downloading unit that downloads the third access content.
In one embodiment, the apparatus further comprises:
and the first judgment module is used for judging whether the third access content is stored locally.
In one embodiment, the apparatus further comprises:
and the second judging module is used for judging whether the received first link address contains a control parameter, and if the received first link address contains the control parameter, downloading the third access content according to the control parameter.
Example four
Fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention. As shown in fig. 4, the mobile terminal 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps of the first embodiment of the method, such as the steps S101 to S107 shown in fig. 1. Alternatively, the steps in the second embodiment of the method described above, for example, steps S201 to S210 shown in fig. 2, are implemented. The processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 31 to 37 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the mobile terminal 4. For example, the computer program 42 may be divided into a receiving module, an extracting module, a sending module, a judging module, an obtaining module, a generating module and a displaying module, and the specific functions of the modules are as follows:
the receiving module is used for receiving the short message sent by the server;
the extraction module is used for extracting a first link address contained in the received short message;
the sending module is used for sending a request for accessing the first link address to the server and receiving first access content returned by the server according to the first link address;
the judging module is used for judging whether the first access content contains a first preset state code;
the acquisition module is used for acquiring elements required by displaying the rich media according to the received first access content if the first preset state code is included;
the generating module is used for generating rich media to be displayed according to the acquired elements;
and the display module is used for displaying the generated rich media.
The mobile terminal may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a mobile terminal 4 and is not intended to be limiting of the mobile terminal 4 and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the mobile terminal 4, such as a hard disk or a memory of the mobile terminal 4. The memory 41 may also be an external storage device of the mobile terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the mobile terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for displaying rich media on a mobile terminal, comprising:
receiving a short message sent by a server;
extracting a first link address contained in the received short message;
sending a request for accessing the first link address to the server, and receiving first access content returned by the server according to the first link address;
judging whether the first access content contains a first preset state code or not; the first preset state code is a state code which represents successful access;
if the first access content contains the first preset state code, acquiring elements required for displaying the rich media according to the received first access content;
generating rich media to be displayed according to the acquired elements;
displaying the generated rich media.
2. The method of claim 1, wherein extracting the first link address included in the received short message comprises:
judging whether a preset application is installed locally;
if the preset application is not installed, installing the preset application;
and extracting a first link address contained in the received short message through the installed preset application.
3. The method of claim 1 or 2, wherein determining whether the first access content includes a first predetermined status code further comprises:
if the first access content does not contain the first preset state code, judging whether the first access content contains a second preset state code; the second preset state code corresponds to the first preset state code and comprises a state code representing redirection;
and if the first access content contains a second preset state code, extracting a second link address contained in the first access content, sending a request for accessing the second link address to the server, and receiving second access content returned by the server according to the second link address.
4. The method of claim 3, wherein obtaining elements required for displaying rich media based on the received first access content comprises:
modifying the received first link address according to the received second access content to generate a third link address;
sending a request for accessing the generated third link address to the server, and receiving third access content returned by the server according to the third link address;
and downloading the third access content.
5. The method of claim 4, further comprising, prior to downloading the third access content:
and judging whether the third access content is stored locally.
6. The method of claim 4, further comprising, prior to downloading the third access content:
judging whether the received first link address contains control parameters;
and if the third access content contains the control parameter, downloading the third access content according to the control parameter.
7. An apparatus for displaying rich media on a mobile terminal, comprising:
the receiving module is used for receiving the short message sent by the server;
the extraction module is used for extracting a first link address contained in the received short message;
the sending module is used for sending a request for accessing the first link address to the server and receiving first access content returned by the server according to the first link address;
the judging module is used for judging whether the first access content contains a first preset state code; the first preset state code is a state code which represents successful access;
the acquisition module is used for acquiring elements required by displaying the rich media according to the received first access content if the first preset state code is included;
the generating module is used for generating rich media to be displayed according to the acquired elements;
and the display module is used for displaying the generated rich media.
8. The apparatus of claim 7, wherein the extraction module comprises:
the judging unit is used for judging whether preset applications are installed locally or not;
the installation unit is used for installing the preset application if the preset application is not installed;
and the first extraction unit is used for extracting a first link address contained in the received short message through the installed preset application.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910230558.1A 2019-03-26 2019-03-26 Method and device for displaying rich media on mobile terminal and mobile terminal Active CN110049456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910230558.1A CN110049456B (en) 2019-03-26 2019-03-26 Method and device for displaying rich media on mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910230558.1A CN110049456B (en) 2019-03-26 2019-03-26 Method and device for displaying rich media on mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN110049456A CN110049456A (en) 2019-07-23
CN110049456B true CN110049456B (en) 2021-10-19

Family

ID=67275137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910230558.1A Active CN110049456B (en) 2019-03-26 2019-03-26 Method and device for displaying rich media on mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN110049456B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709681B (en) * 2020-05-20 2023-09-12 阿里巴巴集团控股有限公司 Method and device for displaying and pushing short message content
CN111782056A (en) * 2020-08-18 2020-10-16 Oppo广东移动通信有限公司 Content sharing method, device, equipment and storage medium
CN113190305A (en) * 2021-04-12 2021-07-30 深圳市梦网云创科技有限公司 Short message processing method and device and terminal equipment
CN115396826B (en) * 2021-05-25 2024-04-09 中国移动通信集团有限公司 Message processing method, device, equipment and storage medium
CN114745681B (en) * 2022-03-09 2023-11-17 深圳市梦网科技发展有限公司 Rich media information display method, rich media information display equipment and computer storage medium
CN116931855A (en) * 2022-03-31 2023-10-24 华为技术有限公司 Rich media information processing method, system and related device
CN114979984B (en) * 2022-04-21 2023-07-21 中移互联网有限公司 Message transmission method and device
CN115022823A (en) * 2022-05-31 2022-09-06 青岛海信移动通信技术股份有限公司 Method, device and equipment for processing 5G short message
CN115065945B (en) * 2022-06-28 2023-08-29 飞鸟鱼信息科技有限公司 Short message link generation method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674374A (en) * 2009-09-02 2010-03-17 优视动景(北京)技术服务有限公司 Webpage content extraction forwarding system for mobile communication terminal and application method thereof
CN102111750A (en) * 2011-02-25 2011-06-29 中兴通讯股份有限公司 Method and system for downloading content
CN104202310A (en) * 2014-08-19 2014-12-10 北京奇虎科技有限公司 Method and device for establishing connection between mobile equipment and computing equipment
CN104239775A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
CN105278972A (en) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 A system and method using a dynamic install package to allow users to fast become friends
US9686659B2 (en) * 2015-09-28 2017-06-20 Optim Corporation User terminal, method of transmitting message, and program for user terminal
CN107133830A (en) * 2017-05-12 2017-09-05 百望电子发票数据服务有限公司 A kind of method and system that electronic invoice is issued based on short message
CN109302473A (en) * 2018-09-28 2019-02-01 重庆赢者科技有限公司 A kind of voice SMS transmission system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674374A (en) * 2009-09-02 2010-03-17 优视动景(北京)技术服务有限公司 Webpage content extraction forwarding system for mobile communication terminal and application method thereof
CN102111750A (en) * 2011-02-25 2011-06-29 中兴通讯股份有限公司 Method and system for downloading content
CN105278972A (en) * 2014-06-19 2016-01-27 南京微特喜网络科技有限公司 A system and method using a dynamic install package to allow users to fast become friends
CN104202310A (en) * 2014-08-19 2014-12-10 北京奇虎科技有限公司 Method and device for establishing connection between mobile equipment and computing equipment
CN104239775A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
US9686659B2 (en) * 2015-09-28 2017-06-20 Optim Corporation User terminal, method of transmitting message, and program for user terminal
CN107133830A (en) * 2017-05-12 2017-09-05 百望电子发票数据服务有限公司 A kind of method and system that electronic invoice is issued based on short message
CN109302473A (en) * 2018-09-28 2019-02-01 重庆赢者科技有限公司 A kind of voice SMS transmission system and method

Also Published As

Publication number Publication date
CN110049456A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN110049456B (en) Method and device for displaying rich media on mobile terminal and mobile terminal
CN110059273B (en) Method for displaying rich media on mobile terminal and mobile terminal
CN107889070B (en) Picture processing method, device, terminal and computer readable storage medium
US11088973B2 (en) Conversion of text relating to media content and media extension apps
EP2699029B1 (en) Method and device for providing a message function
KR101875805B1 (en) Device, method, and graphical user interface for presenting and installing applications
KR101496875B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN107181858B (en) Method and terminal for displaying notification message
CN106469396B (en) Method and terminal for pushing advertisement information
JP2014519632A (en) Customized launch of application
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN104991705A (en) Interface display method and terminal
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN105095253A (en) Webpage display method and webpage display device
CN111324398B (en) Method, device, terminal and storage medium for processing latest content
CN110442416B (en) Method, electronic device and computer-readable medium for presenting information
CN117555459A (en) Application group processing method and device, storage medium and electronic equipment
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN107479960B (en) Method and device for displaying unit view
CN111857480B (en) Icon alignment method and device, storage medium and electronic equipment
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN107450921B (en) Application program deleting method and device, computer device and readable storage medium
CN113450762A (en) Character reading method, device, terminal and storage medium
CN107765956B (en) User interface editing method, device, terminal and computer readable storage medium
CN112328351A (en) Animation display method, animation display device and terminal 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