WO2017133229A1 - 一种移动终端的图片显示方法和装置 - Google Patents
一种移动终端的图片显示方法和装置 Download PDFInfo
- Publication number
- WO2017133229A1 WO2017133229A1 PCT/CN2016/097006 CN2016097006W WO2017133229A1 WO 2017133229 A1 WO2017133229 A1 WO 2017133229A1 CN 2016097006 W CN2016097006 W CN 2016097006W WO 2017133229 A1 WO2017133229 A1 WO 2017133229A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- memory
- downloading
- webpage image
- webpage
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
Definitions
- Embodiments of the present invention relate to the field of picture display, and in particular, to a picture display method and apparatus for a mobile terminal.
- the embodiment of the present invention provides a method for displaying a picture of a mobile terminal.
- the method for canceling the download and display operation of the picture that is being displayed on the screen of the mobile terminal and being executed by the downloading is solved, and the user quickly browses the webpage picture.
- the mobile terminal displays a problem that the webpage image is not smooth.
- the embodiment of the present invention provides a picture display method of a mobile terminal, including:
- Step S001 in response to the screen sliding instruction, sliding the webpage image from the screen of the mobile terminal to the outside of the screen, where the webpage image is downloaded from the network;
- Step S002 If it is detected that the downloading and displaying operation on the webpage image is not completed, cancel the downloading and displaying operation on the webpage image.
- the detecting step further comprises: performing step S002 if it is detected that the memory of the mobile terminal is less than a preset memory threshold;
- step S002 is not performed.
- the step S002 specifically includes: if it is detected that the downloading and displaying operation on the webpage image is not completed, and the received memory is less than the preset memory threshold warning, canceling the downloading and displaying the webpage image In operation, the memory is less than a preset memory threshold warning sent by a listening function that listens to the memory of the mobile terminal.
- the step S002 specifically includes: if it is detected that the downloading and displaying operation of the webpage image is not completed, adding the downloading display operation to the incomplete operation queue;
- the memory is less than the preset memory threshold warning sent by the listening function that listens to the memory of the mobile terminal, and the uncompleted operation queue is used to store the download display operation that is not completed for the webpage picture.
- the canceling the downloading and displaying operation on the webpage image comprises: stopping downloading the webpage image, and deleting a temporary file generated by downloading the webpage image.
- an embodiment of the present invention further provides a picture display device of a mobile terminal, including:
- an execution module configured to cancel the download and display operation on the webpage image if it is detected that the downloading and displaying operation on the webpage image is not completed.
- the device further includes: a detecting module, configured to perform an operation of the execution module if the memory of the mobile terminal is detected to be less than a preset memory threshold;
- the operation of the execution module is not performed.
- the executing module specifically includes: if it is detected that the download and display operation on the webpage image is not completed, and the received memory is less than a preset memory threshold warning, canceling the The downloading display operation of the webpage picture, the memory being less than the preset memory threshold warning is sent by a listening function that listens to the memory of the mobile terminal.
- the executing module specifically includes: if the downloading and displaying operation of the webpage image is not completed, adding the downloading display operation to the incomplete operation queue;
- the memory is less than the preset memory threshold warning sent by the listening function that listens to the memory of the mobile terminal, and the uncompleted operation queue is used to store the download display operation that is not completed for the webpage picture.
- the canceling the downloading and displaying operation on the webpage image comprises: stopping downloading the webpage image, and deleting a temporary file generated by downloading the webpage image.
- an embodiment of the present invention further provides a picture display device of a mobile terminal, including:
- the processor, the memory, and the communication interface complete communication with each other through the bus;
- the communication interface is used for information transmission between the device and the mobile terminal;
- the processor is configured to invoke logic instructions in the memory to perform the following method
- the webpage image is downloaded from the network; if it is detected that the downloading and displaying operation of the webpage image is not completed, canceling the webpage
- the download of the picture shows the operation.
- the embodiment of the present invention further provides a computer program, including program code, where the program code is used to perform the following operations:
- an embodiment of the present invention further provides a storage medium for storing the foregoing computer program.
- the webpage image is swiped from the screen of the mobile terminal to the outside of the screen, and the webpage image is downloaded from the network; if the downloading and displaying operation of the webpage image is detected, the operation is not completed.
- the downloading and displaying operation of the mobile terminal system resource is continued, and the webpage image currently displayed on the screen cannot be completely completed. The problem shown.
- the display of the webpage image displayed on the screen of the mobile terminal can be quickly completed, so that the user experience is better.
- FIG. 1 is a flowchart of a picture display method of a mobile terminal according to an embodiment of the present invention
- FIG. 2 is a flowchart of a picture display method of a mobile terminal according to another embodiment of the present invention.
- FIG. 3 is a block diagram of a picture display device of a mobile terminal according to another embodiment of the present invention.
- FIG. 4 is a block diagram showing the structure of a picture display device of a mobile terminal according to another embodiment of the present invention.
- an embodiment of the present invention provides a method for displaying a picture of a mobile terminal, including:
- Step S001 in response to the screen sliding instruction, sliding the webpage image from the screen of the mobile terminal to the outside of the screen, and the webpage image is downloaded from the network; in step S002, if it is detected that the downloading and displaying operation of the webpage image is not completed, canceling the webpage The download of the picture shows the operation.
- the mobile phone system when a user uses a mobile phone to browse a webpage image, the mobile phone system first downloads the webpage image of the web server, then decodes it, and finally displays the webpage image completely, where the webpage image is downloaded, decoded, and completed.
- the displayed operation is simply referred to as the download and display operation of the webpage image.
- the representative user has not paid attention to the webpage image at this time, so the downloading and displaying operation of the webpage image is cancelled, so as to save the mobile phone system.
- Memory resources to avoid the need to display the web page image displayed on the screen, can not get the memory processing download display operation of the mobile phone system.
- the mobile phone system continues to download and display the operation of the webpage image outside the screen. The problem that the incoming mobile phone system is out of memory and the newly downloaded webpage image cannot be displayed completely.
- the webpage image is swiped from the screen of the mobile terminal to the outside of the screen by responding to the screen swipe instruction, and the webpage image is downloaded from the network; if the downloading and displaying operation of the webpage image is not completed, the downloading and displaying operation of the webpage image is cancelled.
- the method solves the problem that when the webpage image has been slid out of the screen of the mobile terminal, the user continues to occupy the resource of the mobile terminal system for downloading and displaying, which causes the problem that the webpage image currently displayed on the screen cannot be completely displayed.
- the display of the webpage image displayed on the screen of the mobile terminal can be quickly completed, so that the user experience is better.
- the detecting step further includes: if it is detected that the memory of the mobile terminal is less than the preset memory threshold, step S002 is performed; if it is detected that the memory of the mobile terminal is not less than the preset memory threshold, Step S002 is not performed.
- the memory of the mobile terminal system When the memory of the mobile terminal system is insufficient, that is, the memory is less than the preset memory threshold, and the downloading and displaying operation of the webpage image is not completed, the downloading and displaying operation of the webpage image is cancelled.
- the memory of the mobile phone is 100M, which is less than the preset memory threshold of 400M.
- the memory of the mobile phone is 1G, which is much larger than the preset memory threshold of 400M.
- the step S002 specifically includes: if it is detected that the downloading and displaying operation of the webpage image is not completed, and the received memory is less than the preset memory threshold warning, the downloading and displaying operation of the webpage image is cancelled, and the memory is less than the pre- Let the memory threshold warning be sent by the listener function that listens to the memory of the mobile terminal.
- the memory remaining in the mobile terminal system is monitored by adding a listening function to the memory.
- the listening function issues a warning that the memory is less than the preset memory threshold, and the mobile terminal system receives the memory less than the preset memory.
- the download operation is canceled for the webpage image that has been swiped out of the screen of the mobile terminal.
- the memory is monitored by adding a listener function to the memory, so that the thread that processes the display and display operation of the webpage image does not need to interrupt to actively detect the memory, thereby improving the efficiency of processing the download display operation.
- step S002 specifically includes: if it is detected that the download and display operation on the webpage image is not completed, adding the download display operation to the incomplete operation queue; If the memory is less than the preset memory threshold warning, the download display operation in the unfinished operation queue is canceled according to the chronological order; the memory is less than the preset memory threshold warning is sent by the listening function of the memory of the monitoring mobile terminal, and the incomplete operation queue is used for Stores the download operation of the unfinished web page image.
- the downloading and displaying operation of the webpage image is cancelled, including: stopping downloading the webpage image, and deleting the temporary file generated by downloading the webpage image.
- each webpage image when browsing a webpage image online, when the mobile terminal downloads a webpage image and decodes the webpage image, each webpage image generates a temporary file, so when the mobile terminal cancels the downloading and displaying operation of the webpage image, the corresponding delete downloading webpage image is deleted.
- Temporary files generated during the process to save storage space on the mobile terminal. There is no need for the user to manually delete a large number of temporary files.
- a method of canceling a download display operation by sliding a web page picture of a screen of a mobile terminal takes a mobile phone as an example.
- Step S201 the user browses the webpage image in the network library by using the mobile phone; in step S202, receiving the user sliding screen operation, the first row of webpage image displayed on the mobile phone screen is swiped out of the mobile phone screen; and step S203, detecting the first row of the webpage image
- the downloading display operation corresponding to each webpage image is completed, and the uncompleted downloading display operation is added to the incomplete operation queue; in step S204, the memory sent by the memory listening function is received to be smaller than the preset memory threshold warning; step S205,
- the download display operation that is first added to the incomplete operation queue is canceled according to the chronological order. If the memory is still less than the preset memory threshold warning at this time, the download display operation in the incomplete operation queue is continued.
- an embodiment of the present invention provides a picture display device of a mobile terminal, including:
- the response sliding instruction module 301 is configured to: in response to the screen sliding instruction, slide the webpage image from the screen of the mobile terminal to the outside of the screen, the webpage image is downloaded from the network; and the executing module 302 is configured to: When it is detected that the downloading and displaying operation of the webpage image is not completed, the downloading and displaying operation of the webpage image is cancelled.
- the device further includes: a detecting module, configured to: if the memory of the mobile terminal is detected to be less than a preset memory threshold, perform an operation of the executing module;
- the operation of the execution module is not performed.
- the executing module 302 specifically includes: if it is detected that the downloading and displaying operation of the webpage image is not completed, and the received memory is less than the preset memory threshold warning, the downloading and displaying operation of the webpage image is cancelled, and the memory is less than The preset memory threshold warning is sent by the listen function that listens to the memory of the mobile terminal.
- the executing module 302 specifically includes: if it is detected that the downloading and displaying operation on the webpage image is not completed, adding the downloading display operation to the incomplete operation queue;
- the download display operation in the unfinished operation queue is canceled according to the chronological order
- the memory is less than the preset memory threshold warning is sent by the listening function of the memory of the monitoring mobile terminal, and the unfinished operation queue is used for storing the downloading operation for the uncompleted webpage picture.
- the downloading and displaying operation of the webpage image is cancelled, including: stopping downloading the webpage image, and deleting the temporary file generated by downloading the webpage image.
- FIG. 4 is a block diagram showing the structure of another embodiment of a picture display device of the mobile terminal of the present application.
- the device includes:
- processor 101 a processor 101, a memory 102, a communication interface 103, and a bus 104;
- the processor 101, the memory 102, and the communication interface 103 complete communication with each other through the bus 104;
- the communication interface 103 is used for information transmission between the device and the mobile terminal;
- the processor 101 is configured to invoke logic instructions in the memory 102 to perform the following methods;
- the webpage image is downloaded from the network; if it is detected that the downloading and displaying operation of the webpage image is not completed, canceling the webpage
- the download of the picture shows the operation.
- the embodiment discloses a computer program, including program code, where the program code is used to perform the following operations:
- This embodiment discloses a storage medium for storing a computer program as described in the foregoing embodiments.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Business, Economics & Management (AREA)
- Environmental & Geological Engineering (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明实施例提出一种移动终端的图片显示方法和装置,包括:步骤S001,响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;步骤S002,若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。本发明实施例还提出一种移动终端的图片显示装置,包括:响应滑动指令模块和执行模块。本发明实施例解决了用户快速浏览网页图片时,移动终端显示网页图片不流畅的问题。
Description
交叉引用
本申请引用于2016年2月1日提交的专利名称为“一种移动终端的图片显示方法和装置”的第2016100695885号中国专利申请,其通过引用被全部并入本申请。
本发明的实施例涉及图片显示领域,尤其涉及一种移动终端的图片显示方法和装置。
现有技术中,由于手机屏幕越来越大,用户对在手机上进行图片浏览的要求也越来越高,当用户在线浏览图片如在线使用百度图库进行图片浏览时,如果用户滑动手机的屏幕速度比较快时,会出现图片显示不流畅、手机间隔很长时间后也无法显示图片或甚至出现手机不响应触摸屏等问题,此时用户体验会非常差。
因此,有必要改进上面提到的缺陷。
发明内容
基于以上问题,本发明实施例提出一种移动终端的图片显示方法,通过对被滑动出移动终端的屏幕的且正在执行下载显示的图片进行取消下载显示操作的方式,解决了用户快速浏览网页图片时,移动终端显示网页图片不流畅的问题。
一方面,本发明实施例提出一种移动终端的图片显示方法,包括:
步骤S001,响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;
步骤S002,若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
优选地,在所述步骤S002之前还包括检测步骤:若检测到所述移动终端的内存小于预设内存阈值,则执行所述步骤S002;
若检测到所述移动终端的内存不小于预设内存阈值,则不执行所述步骤S002。
优选地,所述步骤S002具体包括:若检测到对所述网页图片的所述下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对所述网页图片的所述下载显示操作,所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送。
优选地,所述步骤S002具体包括:若检测到对所述网页图片的下载显示操作未完成,则将所述下载显示操作加入到未完成操作队列;
若接收到内存小于预设内存阈值警告,则依据时间顺序取消先加入所述未完成操作队列中的所述下载显示操作;
所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送,所述未完成操作队列用于存放对所述网页图片未完成的所述下载显示操作。
优选地,所述取消对所述网页图片的所述下载显示操作,包括:停止下载所述网页图片,并删除下载所述网页图片所产生的临时文件。
另一方面,本发明实施例还提出一种移动终端的图片显示装置,包括:
响应滑动指令模块,用于响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;
执行模块,用于若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
优选地,所述装置还包括检测模块:用于若检测到所述移动终端的内存小于预设内存阈值,则执行所述执行模块的操作;
若检测到所述移动终端的内存不小于预设内存阈值,则不执行所述执行模块的操作。
优选地,所述执行模块具体包括:若检测到对所述网页图片的所述下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对所述
网页图片的所述下载显示操作,所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送。
优选地,所述执行模块具体包括:若检测到对所述网页图片的下载显示操作未完成,则将所述下载显示操作加入到未完成操作队列;
若接收到内存小于预设内存阈值警告,则依据时间顺序取消先加入所述未完成操作队列中的所述下载显示操作;
所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送,所述未完成操作队列用于存放对所述网页图片未完成的所述下载显示操作。
优选地,所述取消对所述网页图片的所述下载显示操作,包括:停止下载所述网页图片,并删除下载所述网页图片所产生的临时文件。
另一方面,本发明实施例还提出一种移动终端的图片显示装置,包括:
处理器、存储器、通信接口和总线;其中,
所述处理器、存储器、通信接口通过所述总线完成相互间的通信;
所述通信接口用于该装置与移动终端之间的信息传输;
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;
响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
另一方面,本发明实施例还提出一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:
响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;
若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
另一方面,本发明实施例还提出一种存储介质,用于存储前述的计算机程序。
采用上述技术方案,具有以下有益效果:
通过响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,网页图片为从网络下载;若检测到对网页图片的下载显示操作未完
成,则取消对网页图片的下载显示操作的方式解决了当网页图片已经滑动出移动终端屏幕时,继续占用移动终端系统资源进行下载显示操作,导致当前在屏幕上需要显示的网页图片无法正常完全显示的问题。使移动终端屏幕上显示的网页图片能够快速完成的显示,使用户的体验更好。
图1是根据本发明一个实施例的移动终端的图片显示方法的流程图;
图2是根据本发明另一个实施例的移动终端的图片显示方法的流程图;
图3是根据本发明另一个实施例的移动终端的图片显示装置的框图;
图4为示出本发明另一个实施例的移动终端的图片显示装置的结构框图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参照图1,本发明实施例提出一种移动终端的图片显示方法,包括:
步骤S001,响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,网页图片为从网络下载;步骤S002,若检测到对网页图片的下载显示操作未完成,则取消对网页图片的下载显示操作。
以手机为例,当用户使用手机进行网页图片浏览时,手机系统对网络服务器的网页图片先进行下载,然后解码,最后对网页图片进行完整显示,这里将对网页图片进行下载、解码和进行完整显示的操作简称为对网页图片的下载显示操作。当用户滑动手机屏幕,将未完成下载显示操作的网页图片滑动出手机的屏幕以外时,此时代表用户已经不关注该网页图片,所以取消对该网页图片的下载显示操作,以节省手机系统的内存资源,避免需要在屏幕上显示的网页图片无法获取手机系统的内存处理下载显示操作。解决了在现有技术中,手机系统继续对滑动出屏幕以外的网页图片进行下载显示操作带
来的手机系统内存不足和新下载的网页图片无法完整显示的问题。
通过响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,网页图片为从网络下载;若检测到对网页图片的下载显示操作未完成,则取消对网页图片的下载显示操作的方式解决了当网页图片已经滑动出移动终端屏幕时,继续占用移动终端系统资源进行下载显示操作,导致当前在屏幕上需要显示的网页图片无法正常完全显示的问题。使移动终端屏幕上显示的网页图片能够快速完成的显示,使用户的体验更好。
在其中的一个实施例中,在步骤S002之前还包括检测步骤:若检测到移动终端的内存小于预设内存阈值,则执行步骤S002;若检测到移动终端的内存不小于预设内存阈值,则不执行步骤S002。
当移动终端系统的内存不足即内存小于预设内存阈值时,且检测到对网页图片的下载显示操作未完成,则取消对网页图片的下载显示操作。如此时手机内存为100M,小于预设内存阈值400M,此时又检测到对已经滑动到手机屏幕之外的网页图片依然在进行下载显示操作,则此时应该取消对该网页图片进行的下载显示操作。如此时手机内存为1G,远大于预设内存阈值400M,此时检测到对已经滑动到手机屏幕之外的网页图片依然在进行下载显示操作,则此时应该继续对该网页图片进行的下载显示操作。通过检测步骤,使对网页图片是否继续下载显示操作的判断更加合理。
在其中的一个实施例中,步骤S002具体包括:若检测到对网页图片的下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对网页图片的下载显示操作,内存小于预设内存阈值警告由监听移动终端的内存的监听函数所发送。
通过对内存增加监听函数的方式来监听移动终端系统所剩的内存,当内存小于预设内存阈值时,该监听函数会发出内存小于预设内存阈值警告,移动终端系统接收到内存小于预设内存阈值警告后,对已经被滑动出移动终端屏幕的网页图片取消下载显示操作。通过对内存增加监听函数的方式来监控内存,使处理网页图片的下载显示操作的线程不需要中断去主动检测内存,提高了处理下载显示操作的效率。
在其中的一个实施例中,步骤S002具体包括:若检测到对网页图片的下载显示操作未完成,则将下载显示操作加入到未完成操作队列;若接收到内
存小于预设内存阈值警告,则依据时间顺序取消先加入未完成操作队列中的下载显示操作;内存小于预设内存阈值警告由监听移动终端的内存的监听函数所发送,未完成操作队列用于存放对网页图片未完成的下载显示操作。
当用户使用手机浏览网页图库时,此时网页上一行会显示多张网页图片,当用户滑动手机屏幕时,会一起将多张网页图片滑动出手机屏幕,这时需要将对多张网页图片的下载显示操作加入到未完成操作队列中进行管理,如果此时手机内存大于预设内存阈值,那么继续对该多张网页图片进行下载显示操作,如果此时手机内存不大于预设内存阈值,那么依照加入到未完成操作队列的时间顺序,对先加入到未完成操作队列的下载显示操作进行取消。通过采用未完成操作队列管理对网页图片的下载显示操作,使当有多个网页图片被滑动出手机屏幕时,依据移动终端的内存情况,进行合理的取消下载显示操作。
在其中的一个实施例中,取消对网页图片的下载显示操作,包括:停止下载网页图片,并删除下载网页图片所产生的临时文件。
一般在线浏览网页图片时,移动终端在下载网页图片,解码网页图片时,每一张网页图片都会产生临时文件,所以当移动终端取消了对网页图片的下载显示操作时,对应的删除下载网页图片过程中产生的临时文件,以节省移动终端的存储空间。不需要用户手动去删除大量的临时文件。
参照图2,作为本发明的最佳实施例,通过对滑动出移动终端的屏幕的网页图片进行取消下载显示操作的方式实现。移动终端以手机为例。步骤S201,用户使用手机浏览网络图库里的网页图片;步骤S202,接收用户滑动屏幕操作,在手机屏幕上显示的第一行网页图片被滑动出手机屏幕;步骤S203,检测第一行网页图片中的每一个网页图片对应的下载显示操作是否完成,将未完成的下载显示操作加入到未完成操作队列中;步骤S204,接收到内存监听函数发来的内存小于预设内存阈值警告;步骤S205,依照时间顺序将最先加入到未完成操作队列中的下载显示操作取消,若此时内存依然小于预设内存阈值警告,则继续取消未完成操作队列中的下载显示操作。
参照图3,本发明实施例提出一种移动终端的图片显示装置,包括:
响应滑动指令模块301,用于响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,网页图片为从网络下载;执行模块302,用于若
检测到对网页图片的下载显示操作未完成,则取消对网页图片的下载显示操作。
在其中的一个实施例中,装置还包括检测模块:用于若检测到移动终端的内存小于预设内存阈值,则执行所述执行模块的操作;
若检测到移动终端的内存不小于预设内存阈值,则不执行所述执行模块的操作。
在其中的一个实施例中,执行模块302具体包括:若检测到对网页图片的下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对网页图片的下载显示操作,内存小于预设内存阈值警告由监听移动终端的内存的监听函数所发送。
在其中的一个实施例中,执行模块302具体包括:若检测到对网页图片的下载显示操作未完成,则将下载显示操作加入到未完成操作队列;
若接收到内存小于预设内存阈值警告,则依据时间顺序取消先加入未完成操作队列中的下载显示操作;
内存小于预设内存阈值警告由监听移动终端的内存的监听函数所发送,未完成操作队列用于存放对网页图片未完成的下载显示操作。
在其中的一个实施例中,取消对网页图片的下载显示操作,包括:停止下载网页图片,并删除下载网页图片所产生的临时文件。
图4是示出本申请移动终端的图片显示装置另一实施例的结构框图。
参照图4,所述装置,包括:
处理器(processor)101、存储器(memory)102、通信接口(Communications Interface)103和总线104;其中,
所述处理器101、存储器102、通信接口103通过所述总线104完成相互间的通信;
所述通信接口103用于该装置与移动终端之间的信息传输;
所述处理器101用于调用所述存储器102中的逻辑指令,以执行如下方法;
响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
参看图1,本实施例公开一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:
响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;
若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
本实施例公开一种存储介质,用于存储如前述实施例所述的计算机程序。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (13)
- 一种移动终端的图片显示方法,其特征在于,包括:步骤S001,响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;步骤S002,若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
- 根据权利要求1所述的移动终端的图片显示方法,其特征在于,在所述步骤S002之前还包括检测步骤:若检测到所述移动终端的内存小于预设内存阈值,则执行所述步骤S002;若检测到所述移动终端的内存不小于预设内存阈值,则不执行所述步骤S002。
- 根据权利要求1所述的移动终端的图片显示方法,其特征在于,所述步骤S002具体包括:若检测到对所述网页图片的所述下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对所述网页图片的所述下载显示操作,所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送。
- 根据权利要求3所述的移动终端的图片显示方法,其特征在于,所述步骤S002具体包括:若检测到对所述网页图片的下载显示操作未完成,则将所述下载显示操作加入到未完成操作队列;若接收到内存小于预设内存阈值警告,则依据时间顺序取消先加入所述未完成操作队列中的所述下载显示操作;所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送,所述未完成操作队列用于存放对所述网页图片未完成的所述下载显示操作。
- 根据权利要求1-4任一项所述的移动终端的图片显示方法,其特征在于,所述取消对所述网页图片的所述下载显示操作,包括:停止下载所述网页图片,并删除下载所述网页图片所产生的临时文件。
- 一种移动终端的图片显示装置,其特征在于,包括:响应滑动指令模块,用于响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;执行模块,用于若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
- 根据权利要求6所述的移动终端的图片显示装置,其特征在于,所述装置还包括检测模块:用于若检测到所述移动终端的内存小于预设内存阈值,则执行所述执行模块的操作;若检测到所述移动终端的内存不小于预设内存阈值,则不执行所述执行模块的操作。
- 根据权利要求6所述的移动终端的图片显示装置,其特征在于,所述执行模块具体包括:若检测到对所述网页图片的所述下载显示操作未完成,且接收到内存小于预设内存阈值警告,则取消对所述网页图片的所述下载显示操作,所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送。
- 根据权利要求8所述的移动终端的图片显示装置,其特征在于,所述执行模块具体包括:若检测到对所述网页图片的下载显示操作未完成,则将所述下载显示操作加入到未完成操作队列;若接收到内存小于预设内存阈值警告,则依据时间顺序取消先加入所述未完成操作队列中的所述下载显示操作;所述内存小于预设内存阈值警告由监听所述移动终端的内存的监听函数所发送,所述未完成操作队列用于存放对所述网页图片未完成的所述下载显示操作。
- 根据权利要求6-9任一项所述的移动终端的图片显示装置,其特征在于,所述取消对所述网页图片的所述下载显示操作,包括:停止下载所述网页图片,并删除下载所述网页图片所产生的临时文件。
- 一种移动终端的图片显示装置,其特征在于,包括:处理器、存储器、通信接口和总线;其中,所述处理器、存储器、通信接口通过所述总线完成相互间的通信;所述通信接口用于该装置与移动终端之间的信息传输;所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;若检测到对所述网页图片的下载显示操 作未完成,则取消对所述网页图片的所述下载显示操作。
- 一种计算机程序,其特征在于,包括程序代码,所述程序代码用于执行如下操作:响应屏幕滑动指令,将网页图片从移动终端的屏幕内滑动至屏幕之外,所述网页图片为从网络下载;若检测到对所述网页图片的下载显示操作未完成,则取消对所述网页图片的所述下载显示操作。
- 一种存储介质,用于存储如权利要求12所述的计算机程序。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610069588.5A CN105847531A (zh) | 2016-02-01 | 2016-02-01 | 一种移动终端的图片显示方法和装置 |
| CN201610069588.5 | 2016-02-01 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017133229A1 true WO2017133229A1 (zh) | 2017-08-10 |
Family
ID=56586826
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/097006 Ceased WO2017133229A1 (zh) | 2016-02-01 | 2016-08-26 | 一种移动终端的图片显示方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105847531A (zh) |
| WO (1) | WO2017133229A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115550735A (zh) * | 2022-08-19 | 2022-12-30 | 青岛聚看云科技有限公司 | 一种显示设备和媒资更新方法 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105847531A (zh) * | 2016-02-01 | 2016-08-10 | 乐视移动智能信息技术(北京)有限公司 | 一种移动终端的图片显示方法和装置 |
| CN106534312B (zh) * | 2016-11-15 | 2019-05-07 | 浙江大学 | 一种面向移动设备的服务请求选择与调度方法 |
| CN109697045B (zh) * | 2018-12-28 | 2022-06-03 | 天弘基金管理有限公司 | 图片显示方法及装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080083002A1 (en) * | 2006-10-02 | 2008-04-03 | Sanyo Electric Co., Ltd., | Information processing apparatus displaying indices of video contents, information processing method and information processing program |
| CN101807180A (zh) * | 2009-02-16 | 2010-08-18 | 宏达国际电子股份有限公司 | 移动电子装置及其网页的预处理及显示方法 |
| CN102799687A (zh) * | 2012-07-30 | 2012-11-28 | 北界创想(北京)软件有限公司 | 显示网页的方法及装置 |
| CN103823690A (zh) * | 2013-12-05 | 2014-05-28 | Tcl集团股份有限公司 | 一种在线图片加载方法和系统 |
| CN105847531A (zh) * | 2016-02-01 | 2016-08-10 | 乐视移动智能信息技术(北京)有限公司 | 一种移动终端的图片显示方法和装置 |
-
2016
- 2016-02-01 CN CN201610069588.5A patent/CN105847531A/zh active Pending
- 2016-08-26 WO PCT/CN2016/097006 patent/WO2017133229A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080083002A1 (en) * | 2006-10-02 | 2008-04-03 | Sanyo Electric Co., Ltd., | Information processing apparatus displaying indices of video contents, information processing method and information processing program |
| CN101807180A (zh) * | 2009-02-16 | 2010-08-18 | 宏达国际电子股份有限公司 | 移动电子装置及其网页的预处理及显示方法 |
| CN102799687A (zh) * | 2012-07-30 | 2012-11-28 | 北界创想(北京)软件有限公司 | 显示网页的方法及装置 |
| CN103823690A (zh) * | 2013-12-05 | 2014-05-28 | Tcl集团股份有限公司 | 一种在线图片加载方法和系统 |
| CN105847531A (zh) * | 2016-02-01 | 2016-08-10 | 乐视移动智能信息技术(北京)有限公司 | 一种移动终端的图片显示方法和装置 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115550735A (zh) * | 2022-08-19 | 2022-12-30 | 青岛聚看云科技有限公司 | 一种显示设备和媒资更新方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105847531A (zh) | 2016-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9565233B1 (en) | Preloading content for requesting applications | |
| US9195519B2 (en) | Disabling the self-referential appearance of a mobile application in an intent via a background registration | |
| US9672493B2 (en) | Systems and methods for detecting and managing recurring electronic communications | |
| CN104503841A (zh) | 进程清理方法及装置 | |
| US9325717B1 (en) | Web-store restriction of external libraries | |
| US20150120374A1 (en) | Automation of customer relationship management (crm) tasks responsive to electronic communications | |
| WO2020207454A1 (zh) | 信息推送方法和装置 | |
| WO2014153970A1 (en) | Method and apparatus for text input protection | |
| WO2017133229A1 (zh) | 一种移动终端的图片显示方法和装置 | |
| CN111258736A (zh) | 信息处理方法、装置和电子设备 | |
| CN107635001A (zh) | Web脚本异常处理方法和装置 | |
| CN114090118B (zh) | 启动小程序的方法、装置、设备以及存储介质 | |
| US20160255135A1 (en) | Method and apparatus for displaying processing status | |
| CN109343908B (zh) | 一种延迟加载js脚本的方法和装置 | |
| CN111240952A (zh) | 日志采集方法和装置 | |
| CN110543604A (zh) | 信息处理方法和装置 | |
| CN113760273B (zh) | 页面控制方法和页面控制装置 | |
| CN113378093A (zh) | 资源发布策略的确定方法、装置、电子设备及存储介质 | |
| US10242315B2 (en) | Finite state machine forming | |
| CN107479960A (zh) | 一种单元视图的显示方法和装置 | |
| CN108830937B (zh) | 一种操作冲突的处理方法及服务器 | |
| CN109213815B (zh) | 控制执行次数的方法、装置、服务器终端以及可读介质 | |
| CN113849686B (zh) | 一种视频数据获取方法、装置、电子设备及存储介质 | |
| CN114237755B (zh) | 应用运行方法、装置、电子设备以及存储介质 | |
| US9582368B2 (en) | Method and apparatus for text input protection |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16889041 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16889041 Country of ref document: EP Kind code of ref document: A1 |