CN110381376B - Application processing method and device and terminal - Google Patents

Application processing method and device and terminal Download PDF

Info

Publication number
CN110381376B
CN110381376B CN201910613770.6A CN201910613770A CN110381376B CN 110381376 B CN110381376 B CN 110381376B CN 201910613770 A CN201910613770 A CN 201910613770A CN 110381376 B CN110381376 B CN 110381376B
Authority
CN
China
Prior art keywords
application
network
terminal
background
network quality
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
CN201910613770.6A
Other languages
Chinese (zh)
Other versions
CN110381376A (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.)
Vidaa Netherlands International Holdings BV
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201910613770.6A priority Critical patent/CN110381376B/en
Publication of CN110381376A publication Critical patent/CN110381376A/en
Application granted granted Critical
Publication of CN110381376B publication Critical patent/CN110381376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Abstract

The embodiment of the invention provides an application processing method, an application processing device and a terminal. The terminal is provided with an application, and the method comprises the following steps: the terminal determines whether a network is connected currently; and if the network is not connected, forbidding starting the application in the background. According to the invention, by monitoring the network state, when the terminal is not connected with the network, the application is prohibited from being started in the background, so that unnecessary system resource consumption is avoided.

Description

Application processing method and device and terminal
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to an application processing method, an application processing device, and a terminal.
Background
With the rapid development of network technologies, more and more applications based on the internet are available. In order to improve user experience, after the terminal is started, the application is started in the background, and the application content is loaded, so that a user can quickly see the application content when using the application.
If the terminal is not connected to the network when being started, the application is started, so that the terminal is continuously in a loading state, and the consumption of system resources is large.
Disclosure of Invention
In view of the above, the present invention provides an application processing method, an application processing apparatus, and a terminal, for reducing consumption of system resources by application processing, in order to solve the problem that the consumption of system resources by the existing application processing is large.
In order to achieve the purpose of the invention, the invention provides the following technical scheme:
in a first aspect, the present invention provides an application processing method, applied to a terminal, where an application is installed, the method including:
determining whether a network is currently connected;
and if the network is not connected, forbidding starting the application in the background.
Optionally, the method further includes:
if the network is connected, determining a first value representing the quality of the current network;
and if the network quality represented by the first value is lower than the network quality represented by a preset first threshold value, forbidding the application from being started in the background.
Optionally, the method further includes:
and if the network quality represented by the first value reaches the network quality represented by the first threshold value, starting the application in the background.
Optionally, after the application is started in the background, the method further includes:
and if the network connection is disconnected, closing the application.
In a second aspect, the present invention provides an application processing apparatus, applied to a terminal, where an application is installed, the apparatus including:
a connection determining unit for determining whether a network is currently connected;
and the starting forbidding unit is used for forbidding to start the application in the background if the network is not connected.
Optionally, the apparatus further comprises:
a quality determination unit, configured to determine a first value representing a current network quality if a network is connected;
the start prohibiting unit is further configured to prohibit starting the application in the background if the network quality represented by the first value is lower than the network quality represented by a preset first threshold.
Optionally, the apparatus further comprises:
and the application starting unit is used for starting the application in the background if the network quality represented by the first value reaches the network quality represented by the first threshold.
Optionally, the apparatus further comprises:
and the application relation unit is used for closing the application if the network connection is disconnected.
In a third aspect, the present invention provides a terminal comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the machine-executable instructions, when executed by the processor, implementing the application processing method described above.
In a fourth aspect, the present invention provides a machine-readable storage medium having stored therein machine-executable instructions, which when executed by a processor, implement the above-described application processing method.
As can be seen from the above description, in the present invention, the terminal monitors the network status, and when the network is not connected, the application is prohibited from being started in the background, thereby avoiding unnecessary consumption of system resources.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced 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 based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for application processing according to an embodiment of the present invention;
FIG. 2 is another application process flow illustrated by an embodiment of the present invention;
FIG. 3 is another application process flow illustrated by embodiments of the present invention;
fig. 4 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. As used in the examples 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 also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, the negotiation information may also be referred to as second information, and similarly, the second information may also be referred to as negotiation information without departing from the scope of embodiments of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The embodiment of the invention provides an application processing method. In the method, the terminal prohibits starting the application in the background when the terminal is not connected with the network by monitoring the network state, thereby avoiding unnecessary system resource consumption.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following detailed description of the embodiments of the present invention is performed with reference to the accompanying drawings and specific embodiments:
referring to fig. 1, a flowchart of an application processing method according to an embodiment of the present invention is provided. The flow is applied to a terminal which can be connected with the internet. Such as a web tv. The terminal is equipped with an internet-based application.
As shown in fig. 1, the process may include the following steps:
in step 101, the terminal determines whether a network is currently connected.
For example, in a home application scenario, a network television (terminal) may access a Wireless router through WiFi (Wireless Fidelity).
If the access is successful, determining that the terminal is connected with the network; otherwise, the terminal is determined not to be connected with the network.
And 102, if the network is not connected, the terminal prohibits starting the application in the background.
If the terminal is determined not to be connected to the network in step 101, it indicates that the terminal cannot use the internet resource. If the application is started at this time, the terminal will continuously try to load the application content from the internet, resulting in unnecessary resource consumption.
Therefore, when the terminal is determined not to be connected with the network, the application is prohibited from being started in the background, so that unnecessary resource consumption is avoided.
Thus, the flow shown in fig. 1 is completed.
As can be seen from the flow shown in fig. 1, in the present invention, the terminal detects the network connection state, and prohibits starting the application in the background when it is determined that the terminal is not connected to the network, thereby avoiding unnecessary consumption of system resources.
Alternatively, as an embodiment, if it is determined that the terminal is connected to the network through step 101, the terminal may perform the following process flow. Referring to fig. 2, another application processing flow is shown for the embodiment of the present invention.
As shown in fig. 2, the process may include the following steps:
in step 201, if the network is connected, the terminal determines a first value representing the current network quality.
When it is determined that the terminal is connected to the network in step 101, the terminal further determines the current network quality in the present invention.
The evaluation of the network quality typically involves a number of parameters, such as transmission rate, packet loss rate, delay rate, bandwidth, etc. In the invention, the terminal can select any parameter or any combination of a plurality of parameters to determine the current network quality. The present invention is not limited thereto.
And the first value is a numerical value which is determined by the terminal according to the selected parameters and is used for representing the network quality. Here, the first value is named for convenience of description only and is not intended to be limiting.
In step 202, if the network quality represented by the first value is lower than the network quality represented by the preset first threshold, the terminal prohibits starting the application in the background.
In the invention, a terminal presets a first threshold value representing network quality. Here, the first threshold is named only for convenience of description and is not intended to be limiting.
If the network quality represented by the first value determined in step 201 is lower than the network quality represented by the first threshold, which indicates that the current network quality is poor, the terminal prohibits starting the application in the background. That is, the application content is prohibited from being loaded through a network of poor quality.
Thus, the flow shown in fig. 2 is completed.
As can be seen from the flow shown in fig. 2, in the present invention, even if the terminal is already connected to the network, if the network quality is not good, the application will not be started. Therefore, unnecessary resource consumption caused by loading wrong application content due to poor network quality is avoided.
Optionally, as an embodiment, if the network quality represented by the first value determined in step 201 reaches the network quality represented by the first threshold, which indicates that the current network quality is better, the terminal starts the application in the background, and loads the application content through the current network, thereby completing the preloading of the application. When the user clicks the application foreground, the application content can be quickly seen, and the user experience is improved.
Optionally, as an embodiment, after the terminal starts the application in the background, if the network connection is disconnected, the terminal closes the application started in the background, so as to release the system resource occupied by the application.
The method provided by the embodiment of the invention is described by a specific embodiment as follows:
referring to fig. 3, a flow of application processing is shown for an embodiment of the present invention. As shown in fig. 3, the process may include the following steps:
in step 301, a terminal (e.g., a network television) is powered on.
In step 302, the terminal determines whether a network is currently connected. If the network is connected, go to step 304; if no network is connected, go to step 303.
Step 303, the terminal prohibits the application from being started in the background, and returns to step 302.
In step 304, the terminal determines the current network quality.
Specifically, the terminal may determine the current network quality according to the network transmission rate, transmission delay, bandwidth, and the like. If the current network quality is better, go to step 305; otherwise, go to step 303.
The terminal starts the application in the background, step 305.
Step 306, the terminal loads the application content through the current network.
Step 307, the terminal detects whether the network is disconnected. If so, go to step 308.
And step 308, the terminal closes the application in the background.
Step 309, the terminal releases the resources occupied by the application.
This completes the description of the present embodiment.
The method provided by the embodiment of the invention is described above, and the device provided by the embodiment of the invention is described below:
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. The device includes: a connection determining unit 401 and an activation prohibiting unit 402, wherein:
a connection determining unit 401 for determining whether a network is currently connected;
a start prohibition unit 402, configured to prohibit starting the application in the background if the network is not connected.
As an embodiment, the apparatus further comprises:
a quality determination unit, configured to determine a first value representing a current network quality if a network is connected;
the start prohibiting unit 402 is further configured to prohibit starting the application in the background if the network quality represented by the first value is lower than the network quality represented by the preset first threshold.
As an embodiment, the apparatus further comprises:
and the application starting unit is used for starting the application in the background if the network quality represented by the first value reaches the network quality represented by the first threshold.
As an embodiment, the apparatus further comprises:
and the application relation unit is used for closing the application if the network connection is disconnected.
The description of the apparatus shown in fig. 4 is thus completed. In the invention, the terminal detects the network connection state, and prohibits starting the application in the background when the terminal is determined not to be connected with the network, thereby avoiding unnecessary system resource consumption.
The following describes a terminal provided in an embodiment of the present invention:
fig. 5 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention. The terminal may include a processor 501, a machine-readable storage medium 502 having machine-executable instructions stored thereon. The processor 501 and the machine-readable storage medium 502 may communicate via a system bus 503. Also, the processor 501 may perform the application processing method described above by reading and executing machine-executable instructions in the machine-readable storage medium 502 corresponding to the application processing logic.
The machine-readable storage medium 502 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium 502 may include at least one of the following storage media: volatile memory, non-volatile memory, other types of storage media. The volatile Memory may be a Random Access Memory (RAM), and the nonvolatile Memory may be a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, and a storage disk (e.g., a compact disk, a DVD).
Embodiments of the present invention also provide a machine-readable storage medium, such as the machine-readable storage medium 502 in fig. 5, comprising machine-executable instructions, which can be executed by the processor 501 in the terminal to implement the application processing method described above.
Up to this point, the description of the terminal shown in fig. 5 is completed.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the embodiments of the present invention should be included in the scope of the present invention.

Claims (10)

1. An application processing method applied to a terminal, wherein the terminal is provided with an application based on the internet, the method comprising:
when the terminal is started, determining whether a network is connected currently;
and if the network is not connected, forbidding starting the application in the background.
2. The method of claim 1, wherein the method further comprises:
if the network is connected, determining a first value representing the quality of the current network;
and if the network quality represented by the first value is lower than the network quality represented by a preset first threshold value, forbidding the application from being started in the background.
3. The method of claim 2, wherein the method further comprises:
and if the network quality represented by the first value reaches the network quality represented by the first threshold value, starting the application in the background.
4. The method of claim 3, wherein after the launching of the application in the background, the method further comprises:
and if the network connection is disconnected, closing the application.
5. An application processing apparatus applied to a terminal, wherein the terminal is installed with an internet-based application, the apparatus comprising:
a connection determining unit, configured to determine whether a network is currently connected when the terminal is powered on;
and the starting forbidding unit is used for forbidding to start the application in the background if the network is not connected.
6. The apparatus of claim 5, wherein the apparatus further comprises:
a quality determination unit, configured to determine a first value representing a current network quality if a network is connected;
the start prohibiting unit is further configured to prohibit the application from being started in the background if the network quality represented by the first value is lower than the network quality represented by a preset first threshold.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the application starting unit is used for starting the application in the background if the network quality represented by the first value reaches the network quality represented by the first threshold.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the application relation unit is used for closing the application if the network connection is disconnected.
9. A terminal, characterized in that the terminal comprises a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the machine-executable instructions when executed by the processor implementing the method steps of any one of claims 1-4.
10. A machine-readable storage medium having stored therein machine-executable instructions which, when executed by a processor, perform the method steps of any of claims 1-4.
CN201910613770.6A 2019-07-09 2019-07-09 Application processing method and device and terminal Active CN110381376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910613770.6A CN110381376B (en) 2019-07-09 2019-07-09 Application processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910613770.6A CN110381376B (en) 2019-07-09 2019-07-09 Application processing method and device and terminal

Publications (2)

Publication Number Publication Date
CN110381376A CN110381376A (en) 2019-10-25
CN110381376B true CN110381376B (en) 2022-08-02

Family

ID=68252513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910613770.6A Active CN110381376B (en) 2019-07-09 2019-07-09 Application processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN110381376B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045749B (en) * 2019-12-18 2021-06-08 青岛海信传媒网络技术有限公司 Application program starting method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867583A (en) * 2016-03-18 2016-08-17 联想(北京)有限公司 Information processing method and electronic device
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7757074B2 (en) * 2004-06-30 2010-07-13 Citrix Application Networking, Llc System and method for establishing a virtual private network
CN104680060B (en) * 2014-11-25 2017-04-05 北京奇虎科技有限公司 A kind of program opens management method and device certainly
CN105094279A (en) * 2015-07-07 2015-11-25 北京奇虎科技有限公司 Method, apparatus and system for improving standby performance of intelligent terminal
CN106603467A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Network application management method, device and terminal
CN109213537A (en) * 2018-08-16 2019-01-15 Oppo广东移动通信有限公司 Starting control method, device, storage medium and the terminal of application program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867583A (en) * 2016-03-18 2016-08-17 联想(北京)有限公司 Information processing method and electronic device
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device

Also Published As

Publication number Publication date
CN110381376A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US8601137B2 (en) Method of creating and managing session between wireless universal serial bus host and wireless universal serial bus device and providing wireless universal serial bus host and wireless universal serial bus device
US8239564B2 (en) Dynamic throttling based on network conditions
US20140254499A1 (en) Tethering of mobile wireless devices
KR20080027266A (en) Efficient formation of ad hoc networks
CN110381376B (en) Application processing method and device and terminal
CN108710539A (en) A kind of information processing method, terminal and readable storage medium storing program for executing
CN109495397B (en) Flow control method and device
US20140372621A1 (en) AirSharing Method, AirSharing Apparatus, and Terminal Device
CN104216739A (en) Method, device and terminal for download processing
CN101841554A (en) Resource downloading request method of terminal and terminal
KR102071107B1 (en) Method and system for data processing
CN104267803A (en) Information processing method and electronic equipment
CN111405313B (en) Method and system for storing streaming media data
CN110351334B (en) Service request processing method and device and payment service request processing method and device
US11277745B2 (en) Integrity protection control method, network device and computer storage medium
US20080107015A1 (en) Apparatus for and method of preventing device address from conflicting in WiMedia MAC
CN115066873A (en) Multiple network controller systems, methods and computer programs for providing enhanced network services
CN110134449A (en) A kind of server starting method, apparatus, equipment and computer readable storage medium
JP4709857B2 (en) Information processing device
CN104123099A (en) Access control apparatusand access control method
CN111524059A (en) Memory utilization method, system, terminal and storage medium during image caching
CN112153128B (en) Communication method, device, equipment and readable storage medium
US9554407B2 (en) Linking method between communication devices and related machine readable medium
CN110990354B (en) Private client cache data refreshing method, device, equipment and medium
CN108494677B (en) Link binding method and device

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
TR01 Transfer of patent right

Effective date of registration: 20221026

Address after: 83 Intekte Street, Devon, Netherlands

Patentee after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 266061 room 131, 248 Hong Kong East Road, Laoshan District, Qingdao City, Shandong Province

Patentee before: QINGDAO HISENSE MEDIA NETWORKS Ltd.

TR01 Transfer of patent right