Movatterモバイル変換


[0]ホーム

URL:


CN107861853A - Progress prompt method, terminal and computer-readable medium - Google Patents

Progress prompt method, terminal and computer-readable medium
Download PDF

Info

Publication number
CN107861853A
CN107861853ACN201710846739.8ACN201710846739ACN107861853ACN 107861853 ACN107861853 ACN 107861853ACN 201710846739 ACN201710846739 ACN 201710846739ACN 107861853 ACN107861853 ACN 107861853A
Authority
CN
China
Prior art keywords
progress
target process
background
foreground
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201710846739.8A
Other languages
Chinese (zh)
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 Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Jinli Communication Equipment Co LtdfiledCriticalShenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710846739.8ApriorityCriticalpatent/CN107861853A/en
Publication of CN107861853ApublicationCriticalpatent/CN107861853A/en
Withdrawnlegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the invention discloses a kind of progress prompt method, terminal and computer-readable medium, wherein method includes:Target process is determined from background process, wherein, the background process is currently in the process of running background;The resource occupying situation of the target process is monitored;Progress prompt message is exported, the progress prompt message is used for the implementation progress for notifying the target process, wherein, the implementation progress is determined according to the resource occupying situation.The embodiment of the present invention can reduce the frequency that the target process switches between foreground and backstage, improve the acquisition efficiency of the implementation progress of the target process by the implementation progress in foreground notice target process.

Description

Progress prompting method, terminal and computer readable medium
Technical Field
The invention relates to the technical field of computer application, in particular to a progress prompting method, a terminal and a computer readable medium.
Background
Because available network resources are limited, a certain time is needed for loading webpage contents, buffering video files, downloading audio and video files and other resources, and the time is longer when the network condition is poor. Therefore, the user will generally leave the programs that need some time to complete execution in the background to execute slowly, and run other programs in the foreground. If the user wants to know the execution progress of a certain background program, the current background program needs to be switched to the foreground, the program running in the foreground is switched to the background to check the execution progress of the background program, and if the progress is not ideal, the background program needs to be switched to the background again to continue to be executed.
Disclosure of Invention
The embodiment of the invention provides a progress prompting method, which can reduce the frequency of switching a process between a foreground and a background by informing the execution progress of the background process at the foreground.
In a first aspect, an embodiment of the present invention provides a progress prompting method, where the method includes:
determining a target process from background processes, wherein the background processes are processes which are currently running in a background;
monitoring the network resource occupation condition of the target process;
and outputting a progress prompt message, wherein the progress prompt message is used for notifying the execution progress of the target process at a foreground, and the execution progress is determined according to the network resource occupation condition.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes a unit configured to perform the method of the first aspect.
In a third aspect, an embodiment of the present invention provides another terminal, where the terminal includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports the terminal to execute the foregoing method, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the foregoing method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
The embodiment of the invention monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs the progress prompt message to inform the execution progress of the target process at the foreground when the network resource occupation condition is monitored to meet the preset prompt condition, so that the switching frequency of the target process between the foreground and the background can be reduced, and the acquisition efficiency of the execution progress of the target process is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a progress prompting method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of another progress indication method provided by the embodiment of the invention;
fig. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of another terminal provided by an embodiment of the present invention;
fig. 5 is a schematic block diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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 "as" when. Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is received" may be interpreted depending on the context to mean "upon determining" or "in response to determining" or "upon receiving [ described condition or event ]" or "in response to receiving [ described condition or event ]".
In particular implementations, the 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 terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The 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 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.
Fig. 1 is a schematic flow chart of a progress prompting method according to an embodiment of the present invention. In a specific implementation, the steps included in the method may be performed by a terminal. The progress prompting method shown in fig. 1 may include:
and S11, determining the target process from the background processes.
Wherein, a background process refers to a process currently running in the background. It should be noted that a single application may occupy multiple processes. For example, when multiple tab pages are open in a browser program, each tab page may occupy one process. As another example, when multiple news links are opened in a news program, each news link may take up a process. In particular, the terminal may identify the different processes by querying a network address. The process and the network address have a one-to-one correspondence relationship, and the network address may be an Internet Protocol (IP) address, for example.
Specifically, the terminal first detects a background process. It will be appreciated that processes running in the terminal either run in the foreground or in the background. For the process running in the foreground, the user can intuitively see the running conditions such as the execution progress and the like.
Then, the terminal judges which processes occupy network resources in the background processes. It should be noted that, the process needs to occupy the network resource during the execution process, and does not occupy the network resource after the execution is completed. For example, when a user opens a tab page for playing a video file in a browser program, the browser program needs to occupy network resources when buffering the video file, and the browser program does not occupy network resources after buffering the video file. At this time, the user can view the video file offline even if the network connection is disconnected. Specifically, the terminal may determine whether the background process occupies the network resource according to whether the network speed occupied by the background process is greater than 0. Further specifically, when the network speed occupied by the background process is greater than 0, the terminal may determine that the background process occupies the network resource.
And then, the terminal judges which processes have foreground developability in the background processes occupying the network resources. The process has foreground exposibility, which indicates that the process can be displayed to a user in the foreground, and the running of the process is triggered by user operation, such as single-click operation of an application icon of the process by the user or startup set by the user for the process. Specifically, the terminal can customize the process with foreground developability. Since most of the applications really affect the user experience, such as browser programs, instant messaging programs, downloading tool programs, information programs, audio and video programs, and the like, the terminal can define the related processes of the applications as processes with foreground developability. It can be understood that there are many necessary processes in the terminal, which occupy network resources, but these processes are always running in the background and are not shown to the user in the foreground, and the user is not concerned about the execution progress of these processes.
Further, the terminal can determine which processes are triggered by user operation in background processes which occupy network resources and have foreground developability. It will be appreciated that some background processes are performed automatically and that the user does not want to know how the programs are progressing through. Only if the user puts the background into the background and does not execute the finished process, the user can switch the process to the foreground from time to check the execution progress of the process. Specifically, the terminal may determine whether execution of the background process is triggered by a user operation by determining whether the background process appears in the foreground within a preset time. Further specifically, when the background process appears in the foreground within the preset time, that is, the background process runs in the foreground within the preset time, the terminal may determine that the execution of the background process is triggered by the user operation. The preset time may be a default value set by the terminal, or a numerical value customized by the user. The preset time may be, for example, 5 minutes, 10 minutes, etc., and the embodiment of the present invention is not limited thereto.
And finally, the terminal takes a background process which occupies network resources, has foreground developability and is triggered and executed by user operation as a target process.
For example, if the user has started a process to load a video file, but is limited to a network situation, and the video is stuck, the user switches the process to the background to slowly load the video file. At this time, the terminal may take the process as a target process.
It should be noted that the sequence of the three steps, that is, the terminal executes and determines which background processes occupy network resources, determines which background processes have foreground developability, and determines which background processes are triggered to be executed by user operation, is only one feasible example, and the sequence of the three steps executed by the terminal is not limited in the embodiment of the present invention.
And S12, monitoring the network resource occupation condition of the target process.
It can be understood that the terminal may monitor the network resource occupation of a single target process, or may monitor the network resource occupation of multiple target processes respectively.
Specifically, the terminal monitors the network resource occupation condition of the target process to automatically monitor the execution progress of the target process.
And S13, outputting a progress prompt message.
The progress prompting message is used for notifying the execution progress of the target process at the foreground when the execution progress of the target process meets the preset prompting condition. Specifically, when the terminal monitors the network resource occupation condition of a single target process, the progress prompt message is used for notifying the execution progress of the target process in the foreground when the execution progress of the target process meets a preset prompt condition. When the terminal monitors the network resource occupation conditions of the target processes, the progress prompt message is used for notifying the execution progress of a certain target process of the target processes to the foreground when the execution progress of the certain target process meets the preset prompt condition. The preset prompting condition may be, for example, completion of execution.
Specifically, the terminal may output a progress prompting message in a notification bar prompting message or a floating window manner to give a prompt to the user and indicate which background process is. The terminal can judge which background process meets the preset prompting condition by inquiring the network address because the processes and the network address have one-to-one correspondence. Therefore, when other processes are operated in the foreground, the user can know the execution progress (for example, the execution is finished) of a task (for example, a loading or downloading task) of a certain process placed in the background. Further, the user may click on a notification bar reminder message or a floating window to switch the background process to the foreground for viewing the tasks executed by the background process.
It should be noted that the execution progress of the target process is determined according to the network resource occupation of the target process. For example, when the network is in a connected state, i.e. when the network is normal, if the network speed occupied by the target process executing the downloading task suddenly drops from a value greater than 0 (e.g. 500k/s), and finally becomes 0, it indicates that the downloading task has been executed. Therefore, the terminal can inform the user that the downloaded resource is completely downloaded in the informing bar or in a floating window mode. Therefore, the user does not need to always switch the target process back and forth in the foreground and the background to check whether the downloading task is completely downloaded.
For another example, when a browser program opens a plurality of tab pages (i.e., web pages), the browser program occupies a plurality of processes, and the terminal may determine which process corresponds to which tab page according to a network address having a one-to-one correspondence with the processes. Further, the network address also corresponds to a web page title and web page content. When the network speed occupied by a certain process (the title of the webpage corresponding to the process is ' how to view the networking process ') with a certain network address in the browser program is changed from 100k/s to 0, the loading of the webpage corresponding to the process is finished, and the terminal can inform a user that ' you put in the webpage loaded in the background ' how to view the networking process ' is loaded in the foreground. Thus, the user does not always need to switch the target process back and forth between the foreground and the background to check whether the webpage is completely loaded.
In the embodiment of the invention, the terminal monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs the progress prompt message to inform the execution progress of the target process at the foreground when the network resource occupation condition is monitored to meet the preset prompt condition, so that the switching frequency of the target process between the foreground and the background can be reduced, and the acquisition efficiency of the execution progress of the target process is improved.
Fig. 2 is a schematic flow chart of another progress prompting method provided in the embodiment of the present invention. In a specific implementation, the steps included in the method may be performed by a terminal. The progress prompting method shown in fig. 2 may include:
and S21, determining the target process from the background processes.
Specifically, the determining, by the terminal, the target process from the background process may specifically include: the terminal judges whether the background process occupies network resources; if the background process occupies network resources, the terminal judges whether the background process has foreground developability; if the background process has foreground developability, whether the background process of the terminal is triggered and executed by user operation or not is judged; if the background process is triggered to be executed by user operation, the terminal can take the background process as a target process.
Optionally, after the terminal determines whether the background process is triggered to be executed by the user operation, the terminal may further detect whether the execution progress of the background process is currently monitored by the terminal; if the execution progress of the background process is not currently monitored by the terminal, the terminal may use the background process as a target process.
It should be noted that the terminal may periodically determine the required target process from the background process. In the current determination period, if the terminal detects that the execution progress of a certain background process is in the monitoring of the terminal, that is, the background program is the target process determined in the previous determination period, the terminal does not need to repeatedly take the background process as the target process in the current determination period.
It should be further noted that, the terminal executes the sequence indication shown above of the four steps of determining whether the background process occupies the network resource, determining whether the background process has foreground developability, determining whether the background process is triggered to be executed by user operation, and detecting whether the execution progress of the background process is currently in the monitoring of the terminal, and the embodiment of the present invention does not limit the sequence of executing the four steps by the terminal.
It should be further noted that specific technical details of step S21 can be described with reference to relevant portions of step S11 shown in fig. 1 of the present application.
And S22, detecting the current running platform of the target process.
Specifically, the terminal may periodically detect a current running platform of the target process. Wherein the current running platform is a foreground or a background. If the current running platform of the target process is detected to be the background, the terminal executes the step S23; if the current running platform of the target process is detected to be the foreground, indicating that the user manually switches the target process to the foreground running, the terminal may stop executing step S23. Optionally, the terminal may also mark the target process as a foreground process.
And S23, monitoring the network resource occupation condition of the target process.
It can be understood that the terminal may monitor the network resource occupation of a single target process, or may monitor the network resource occupation of multiple target processes respectively.
Specifically, the terminal monitors the network resource occupation condition of the target process to automatically monitor the execution progress of the target process.
And S24, outputting a progress prompt message.
The progress prompting message is used for notifying the execution progress of the target process at the foreground when the execution progress of the target process meets the preset prompting condition.
In an embodiment of the present invention, if the target process is used to load a video file, when it is monitored that the size S of the loaded portion of the video file, the decoding rate V1 of the video file, the average transmission rate V2 of the loaded portion, and the remaining playing time t of the video file satisfy the preset relationship, the terminal may output a progress indication message (i.e., a first progress indication message) for informing the user at the foreground that the video file may be played.
Wherein, the preset relationship is specifically as follows: the size S of the loaded portion of the video file is equal to the difference between the decoding rate V1 of the video file and the average transmission rate V2 of the loaded portion multiplied by the remaining playing time t of the video file, i.e., (VI-V2) × t. When the preset relationship is satisfied, it indicates that the video file is loaded enough to allow the user to watch the video file smoothly, i.e., the video file has a small chance of jamming at the next time.
Optionally, before outputting the progress prompt message, the terminal may also detect a state in which the network is located. The network may be a wired network connection such as a cellular mobile network, or a Wireless network connection such as a Wireless Fidelity (Wi-Fi), and the network may be in a connected state or a disconnected state.
Specifically, in the process of monitoring the network resource occupation of the target process, if it is detected that the network is in a disconnected state, the terminal may notify, in the foreground, the current execution progress (e.g., download percentage) of the target process and/or the current state of the network. And the execution progress of the target process is determined according to the network resource occupation condition of the target process.
For example, when the target process is used to download a video file, if the video file is downloaded to 50%, it is monitored that the network speed occupied by the target process suddenly drops and finally becomes 0, and it is detected that the network connection is suddenly disconnected, the terminal may notify the user that the network connection is disconnected in the foreground and indicate that the video file is downloaded to 50%; or, the terminal may only notify the user that the network connection is disconnected in the foreground, and at this time, the user may switch the target process to the foreground to check the downloading progress of the target process.
In an embodiment of the present invention, when it is monitored that a network resource occupied by a target process is 0, a terminal may detect a current state of a network; if the network is detected to be in a connection state, the terminal can judge that the execution progress of the target process meets a preset prompting condition, and further, the terminal can output a progress prompting message (namely a second progress prompting message) which is used for informing a user that the target process is executed completely at a foreground; if the network is detected to be in the disconnected state, the terminal may output a progress prompting message (i.e., a third progress prompting message) for notifying the user of the current execution progress of the target process and/or the current state of the network in the foreground.
Specifically, the terminal may output a progress prompting message in a notification bar prompting message or a floating window manner to give a prompt to the user. Wherein, the progress prompt message can also indicate the target process.
Further, the user can click a notification bar reminding message or a floating window to switch the target process to the foreground for running, so that the task executed by the target process is viewed.
In the embodiment of the invention, the terminal monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs the progress prompt message to inform the execution progress of the target process at the foreground when the network resource occupation condition is monitored to meet the preset prompt condition, so that a user can timely know the execution progress of the background process at the foreground, the frequency of switching the target process between the foreground and the background can be reduced, the acquisition efficiency of the execution progress of the target process is improved, the user operation is saved, and the user experience is improved.
The embodiment of the present invention further provides a terminal, where the terminal includes a unit configured to execute the method shown in fig. 1 in this application. Specifically, referring to fig. 3, a schematic block diagram of a terminal according to an embodiment of the present invention is provided. The terminal as shown in fig. 3 may include: a first determination unit 31, a monitoring unit 32 and an output unit 33. Wherein,
the first determining unit 31 is configured to determine a target process from background processes, where the background processes are processes currently running in the background.
The monitoring unit 32 is configured to monitor a network resource occupation condition of the target process.
The output unit 33 is configured to output a progress prompting message, where the progress prompting message is used to notify, at a foreground, an execution progress of the target process, where the execution progress is determined according to the network resource occupation condition.
It should be noted that, for the specific work flow of the terminal provided in the embodiment of the present invention, please refer to the method flow portion provided in the embodiment of the present invention, which is not described herein again.
In the embodiment of the invention, the terminal monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs the progress prompt message to inform the execution progress of the target process at the foreground when the network resource occupation condition is monitored to meet the preset prompt condition, so that the switching frequency of the target process between the foreground and the background can be reduced, and the acquisition efficiency of the execution progress of the target process is improved.
The embodiment of the present invention also provides another terminal, where the terminal includes a unit configured to execute the method shown in fig. 2 of the present application. Specifically, referring to fig. 4, a schematic block diagram of another terminal provided in the embodiment of the present invention is shown. The terminal as shown in fig. 4 may include: a first determination unit 41, a detection unit 42, a monitoring unit 43, an output unit 44, a control unit 45, and a switching unit 46. Wherein,
the first determining unit 41 is configured to determine a target process from background processes, where the background processes are processes currently running in the background.
In an embodiment of the present invention, the first determining unit 41 may include: a judgment unit 411 and a second determination unit 412. Wherein,
the determining unit 411 is configured to determine whether the background process occupies a network resource.
The determining unit 411 is further configured to determine whether the background process has foreground developability when the background process occupies a network resource.
The determining unit 411 is further configured to determine whether the background process is triggered to be executed by a user operation when the background process has foreground developability.
The second determining unit 412 is configured to take the background process as a target process when the background process is triggered to be executed by a user operation.
The detecting unit 42 is configured to detect a current running platform of the target process, where the current running platform is a foreground or a background.
The monitoring unit 43 is configured to monitor a network resource occupation condition of the target process.
The output unit 44 is configured to output a progress prompting message, where the progress prompting message is used to notify, at a foreground, an execution progress of the target process, where the execution progress is determined according to the network resource occupation situation.
In an embodiment of the present invention, the target process is configured to load a video file; the output unit 44 executes the output progress prompt message, and is specifically configured to, when the network is in a connected state, output a first progress prompt message if it is monitored that the size of the loaded portion of the video file, the decoding rate of the video file, the average transmission rate of the loaded portion, and the remaining playing time of the video file satisfy a preset relationship, where the first progress prompt message is used to notify that the video file can be played.
Wherein the preset relationship is that the size of the loaded part is equal to the difference between the decoding rate of the video file and the average transmission rate of the loaded part multiplied by the remaining playing time of the video file.
In an embodiment of the present invention, the output unit 44 executes the output progress prompting message, specifically, if it is monitored that the network resource occupied by the target process is 0, the state of the network is detected; and when the network is in a connection state, outputting a second progress prompt message, wherein the second progress prompt message is used for notifying the completion of the execution of the target process.
Further, the output unit 44 is further specifically configured to output a third progress prompting message when the network is in a disconnected state, where the third progress prompting message is used to notify, in the foreground, the current execution progress of the target process and the state of the network.
The control unit 45 is configured to control the monitoring unit 42 to stop executing monitoring of the network resource occupation condition of the target process when the current running platform detected by the detection unit 43 is the foreground.
The switching unit 46 is configured to switch the target process to a foreground operation if a selection operation for the progress prompting message is received.
It should be noted that, for the specific work flow of the terminal provided in the embodiment of the present invention, please refer to the method flow portion provided in the embodiment of the present invention, which is not described herein again.
In the embodiment of the invention, the terminal monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs the progress prompt message to inform the execution progress of the target process at the foreground when the network resource occupation condition is monitored to meet the preset prompt condition, so that a user can timely know the execution progress of the background process at the foreground, the frequency of switching the target process between the foreground and the background can be reduced, the acquisition efficiency of the execution progress of the target process is improved, the user operation is saved, and the user experience is improved.
Referring to fig. 5, a schematic block diagram of another terminal provided in the embodiment of the present invention is shown. The terminal in the present embodiment shown in fig. 5 may include: one or more processors 51, one or more input devices 52, one or more output devices 53, and memory 54. The processor 51, the input device 52, the output device 53, and the memory 54 are connected by a bus 55. The memory 54 is used to store a computer program comprising program instructions.
In particular, the processor 51 is configured to invoke the program instructions to perform:
determining a target process from background processes, wherein the background processes are processes which are currently running in a background;
monitoring the network resource occupation condition of the target process;
and outputting a progress prompt message, wherein the progress prompt message is used for notifying the execution progress of the target process at a foreground, and the execution progress is determined according to the network resource occupation condition.
Optionally, the processor 51 is configured to call the program instruction to execute the following specific execution when the target process is determined from the background process:
judging whether the background process occupies network resources;
if the background process occupies network resources, judging whether the background process has foreground developability;
if the background process has foreground developability, judging whether the background process is triggered to be executed by user operation;
and if the background process is triggered and executed by user operation, taking the background process as a target process.
Optionally, the target process is used for loading a video file; the processor 51 is configured to call the program instruction to execute the output progress prompting message, and specifically execute:
when a network is in a connection state, if the size of a loaded part of a video file, the decoding rate of the video file, the average transmission rate of the loaded part and the remaining playing time of the video file meet a preset relation, outputting a first progress prompt message, wherein the first progress prompt message is used for informing that the video file can be played;
wherein the preset relationship is that the size of the loaded part is equal to the difference between the decoding rate of the video file and the average transmission rate of the loaded part multiplied by the remaining playing time of the video file.
Optionally, the processor 51 is configured to call the program instruction to execute the output progress prompting message, and specifically perform:
if the network resource occupied by the target process is monitored to be 0, detecting the state of the network;
and when the network is in a connection state, outputting a second progress prompt message, wherein the second progress prompt message is used for notifying the completion of the execution of the target process.
Optionally, the processor 51 is configured to call the program instructions to further perform:
and when the network is in a disconnected state, outputting a third progress prompting message, wherein the third progress prompting message is used for informing the current execution progress of the target process and the state of the network in the foreground.
Optionally, the processor 51 is configured to invoke the program instructions to execute the following steps after determining the target process from the background processes:
detecting a current running platform of the target process, wherein the current running platform is a foreground or a background;
and if the detected current running platform is the foreground, stopping executing the monitoring of the network resource occupation condition of the target process.
Optionally, the processor 51 is configured to invoke the program instructions to execute, after the outputting of the progress cue message, further:
and if the selection operation aiming at the progress prompt message is received, switching the target process to the foreground for operation.
It should be understood that, in the embodiment of the present invention, the Processor 51 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 52 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, and the like, and the output device 53 may include a display (Liquid crystal display, LCD, and the like), a speaker, and the like.
The Memory 54 may include a Read-Only Memory (ROM) and a Random Access Memory (RAM), and provides computer programs and data to the processor 51. A portion of the memory 54 may also include non-volatile random access memory. For example, the memory 54 may also store device type information.
In a specific implementation, the processor 51, the input device 52, and the output device 53 described in the embodiment of the present invention may execute an implementation manner of the progress prompting method shown in fig. 1 or fig. 2, which is not described herein again.
In the embodiment of the present invention, the processor 51 calls the program instruction stored in the memory 54, monitors the execution progress of the target process by monitoring the network resource occupation condition of the target process, and outputs a progress prompt message to notify the execution progress of the target process at the foreground when it is monitored that the network resource occupation condition satisfies the preset prompt condition, so as to reduce the frequency of switching the target process between the foreground and the background, and improve the efficiency of acquiring the execution progress of the target process.
In an embodiment of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the progress prompting method shown in fig. 1 or fig. 2 in this application.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, 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 terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that combinations of elements and steps of the examples have been described above generally in terms of their functionality in order to clearly illustrate their interchangeability of hardware and software. 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 terminal and method can 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 also be an electric, mechanical or other form of connection.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
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 of the present invention.
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, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including computer programs for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

CN201710846739.8A2017-09-182017-09-18Progress prompt method, terminal and computer-readable mediumWithdrawnCN107861853A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710846739.8ACN107861853A (en)2017-09-182017-09-18Progress prompt method, terminal and computer-readable medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710846739.8ACN107861853A (en)2017-09-182017-09-18Progress prompt method, terminal and computer-readable medium

Publications (1)

Publication NumberPublication Date
CN107861853Atrue CN107861853A (en)2018-03-30

Family

ID=61699377

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710846739.8AWithdrawnCN107861853A (en)2017-09-182017-09-18Progress prompt method, terminal and computer-readable medium

Country Status (1)

CountryLink
CN (1)CN107861853A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109300037A (en)*2018-09-282019-02-01中国银行股份有限公司Transaction progress display methods and device
CN115002556A (en)*2022-06-172022-09-02深圳创维-Rgb电子有限公司Television channel switching method and device, television and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109300037A (en)*2018-09-282019-02-01中国银行股份有限公司Transaction progress display methods and device
CN109300037B (en)*2018-09-282021-07-30中国银行股份有限公司Transaction progress display method and device
CN115002556A (en)*2022-06-172022-09-02深圳创维-Rgb电子有限公司Television channel switching method and device, television and storage medium
CN115002556B (en)*2022-06-172024-03-22深圳创维-Rgb电子有限公司Television channel switching method and device, television and storage medium

Similar Documents

PublicationPublication DateTitle
US10440652B2 (en)Power management of a mobile communications device
US9727326B2 (en)Providing customized notifications for security software updates
US9672023B2 (en)Providing a unified update center for security software updates and application software updates
CN107181858B (en)Method and terminal for displaying notification message
CN110377141B (en)Application processing method and device, electronic equipment and storage medium
CN106951057B (en)Application control method and mobile terminal
CN107329659B (en) A permission setting method, device, electronic device and storage medium
CN102647515B (en)Terminal state displaying control method and device
CN108304274A (en) A method for information interaction, server and computer-readable medium
CN106534514A (en)Incoming call processing method and terminal
CN106211292A (en) A navigation method for a mobile terminal and the mobile terminal
US10235017B2 (en)Integrated media user interface
JP2023540340A (en) Notification message display control method, device, electronic device and readable storage medium
US10416861B2 (en)Method and system for detection and resolution of frustration with a device user interface
CN107943578A (en)A kind of memory release method, terminal device and computer-readable medium
CN112929254A (en)Message processing method and device and electronic equipment
CN107861853A (en)Progress prompt method, terminal and computer-readable medium
CN108021301A (en)A kind of volume adjusting method, terminal device and computer-readable recording medium
CN108366298A (en)Video playing method, mobile terminal and computer readable storage medium
CN108536512B (en) Interface switching method, device and terminal device
CN112905072B (en)Application processing method and device and electronic equipment
CN112416204B (en)Application management method and device, electronic equipment and readable storage medium
CN114416264A (en)Message display method and device
CN108509111B (en)Application notification method and device and terminal equipment
CN106385704A (en)Group message management method and terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
WW01Invention patent application withdrawn after publication
WW01Invention patent application withdrawn after publication

Application publication date:20180330


[8]ページ先頭

©2009-2025 Movatter.jp