CN110445924B - Network task execution method and terminal equipment - Google Patents

Network task execution method and terminal equipment Download PDF

Info

Publication number
CN110445924B
CN110445924B CN201910563829.5A CN201910563829A CN110445924B CN 110445924 B CN110445924 B CN 110445924B CN 201910563829 A CN201910563829 A CN 201910563829A CN 110445924 B CN110445924 B CN 110445924B
Authority
CN
China
Prior art keywords
network
application program
target network
terminal device
terminal equipment
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
CN201910563829.5A
Other languages
Chinese (zh)
Other versions
CN110445924A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910563829.5A priority Critical patent/CN110445924B/en
Publication of CN110445924A publication Critical patent/CN110445924A/en
Application granted granted Critical
Publication of CN110445924B publication Critical patent/CN110445924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network task execution method and terminal equipment, relates to the technical field of communication, and aims to solve the problem that the process of surfing the internet by using a mobile data network is complicated. The method comprises the following steps: under the condition that a first application program is to execute a target network task, acquiring the network state of terminal equipment, and detecting whether the terminal equipment meets the preset condition; if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task; wherein the preset condition comprises at least one of the following: the time length for starting the target network mode is less than or equal to a preset time length, the data traffic consumed after starting the target network mode is less than or equal to a preset traffic, and the first application program is an application program in at least one preset application program allowing the target network mode to be used.

Description

Network task execution method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network task execution method and terminal equipment.
Background
With the rapid development of network technology, the network coverage rate is higher and higher, and convenience is brought to users in the aspects of video conversation, online games, file transmission and the like.
Currently, a terminal device may access a wireless fidelity (WIFI) network or a mobile data network. When a terminal device performs an internet task such as a video session, the type of a current access network is usually detected. If the current accessed network is detected to be the WIFI network, the terminal equipment can continue to execute the internet surfing task; and if the currently accessed network is detected to be the mobile data network, the terminal equipment stops the internet surfing task and displays a message popup window to prompt the user to confirm whether to continue the internet surfing task and consume the flow of the mobile data network.
In view of the above situation of accessing the mobile data network, the terminal device may display at least one message popup window every time it executes an internet access task, and if the user wants to continue to access the internet, the user needs to frequently click the confirmation key in the message popup window, which results in a cumbersome process of accessing the internet using the mobile data network.
Disclosure of Invention
The embodiment of the invention provides a network task execution method and terminal equipment, and aims to solve the problem that the process of surfing the internet by using a mobile data network is complicated.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a network task execution method, where the method includes: under the condition that a first application program is to execute a target network task, acquiring the network state of terminal equipment, and detecting whether the terminal equipment meets a preset condition; if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task; wherein the preset condition comprises at least one of the following: the time length for starting the target network mode is less than or equal to a preset time length, the data traffic consumed after starting the target network mode is less than or equal to a preset traffic, and the first application program is an application program in at least one preset application program allowing the target network mode to be used.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes an obtaining module, a detecting module, and a control module. The acquisition module is used for acquiring the network state of the terminal equipment under the condition that the first application program is to execute the target network task; the detection module is used for detecting whether the terminal equipment meets a preset condition or not under the condition that a first application program is to execute a target network task; and the control module is used for controlling the first application program to execute the target network task if the network accessed by the terminal equipment acquired by the acquisition module is a mobile communication network, the target network mode is in an open state, and the detection module detects that the terminal equipment meets a preset condition. Wherein the preset condition comprises at least one of the following: the time length for starting the target network mode is less than or equal to a preset time length, the data traffic consumed after starting the target network mode is less than or equal to a preset traffic, and the first application program is an application program in at least one preset application program allowing the target network mode to be used.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps of the network task execution method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the network task execution method provided in the first aspect.
In the embodiment of the invention, the network state of the terminal equipment can be acquired under the condition that the first application program is to execute the target network task, and whether the terminal equipment meets the preset condition or not is detected; if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task; wherein the preset condition comprises at least one of the following: the time length for starting the target network mode is less than or equal to a preset time length, the data traffic consumed after starting the target network mode is less than or equal to a preset traffic, and the first application program is an application program in at least one preset application program allowing the target network mode to be used. Through the scheme, when the first application program of the terminal equipment is about to execute target network tasks such as video playing and the like, if the target network mode is in the open state and the terminal equipment meets the preset conditions, even if the network accessed by the terminal equipment is a mobile data network, the first application program can still automatically execute the target network tasks such as video playing and the like without displaying message popup windows or frequently operating the message popup windows by a user, so that the process of surfing the internet by using the mobile data network can be simplified, and the network experience of the user can be improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network task execution method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a setting interface of a target network mode according to an embodiment of the present invention;
fig. 4 is a second schematic diagram illustrating a network task execution method according to an embodiment of the present invention;
fig. 5 is a third schematic diagram illustrating a network task execution method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a third schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of a terminal device 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.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first identifier, the second identifier, etc. are used to distinguish between different identifiers, rather than to describe a particular order of identifiers.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a network task execution method and terminal equipment, which can acquire the network state of the terminal equipment under the condition that a first application program is to execute a target network task, and detect whether the terminal equipment meets the preset condition or not; if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task; wherein the preset condition comprises at least one of the following: the time length for starting the target network mode is less than or equal to a preset time length, the data traffic consumed after starting the target network mode is less than or equal to a preset traffic, and the first application program is an application program in at least one preset application program allowing the target network mode to be used. Through the scheme, when the first application program of the terminal equipment is about to execute target network tasks such as video playing and the like, if the target network mode is in the open state and the terminal equipment meets the preset conditions, even if the network accessed by the terminal equipment is a mobile data network, the first application program can still automatically execute the target network tasks such as video playing and the like without displaying message popup windows or frequently operating the message popup windows by a user, so that the process of surfing the internet by using the mobile data network can be simplified, and the network experience of the user can be improved.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the network task execution method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the network task execution method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the network task execution method may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the network task execution method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. For example, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the network task execution method provided by the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the network task execution method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain a network task execution method provided by the embodiment of the present invention.
When a user triggers an application program (hereinafter, may be referred to as a first application program) in the terminal device to perform a network task such as a video session, the first application program may send a call function to a system of the terminal device to request to acquire a network type currently accessed by the terminal device. If the result returned by the system of the terminal equipment is that the currently accessed network is a mobile data network, the first application program stops the network task and displays a message popup window to prompt the user to confirm whether to continue the internet surfing task. In the embodiment of the invention, in order to avoid frequent message popup operation by a user, the first application program can still automatically execute the network task even if the network accessed by the terminal equipment is a mobile data network by opening the target network mode.
It should be noted that the target network mode may be a customized network function mode, and the target network mode may be named as a KAFI mode. Specifically, under the condition that the user triggers the terminal device to open the KAFI mode, if the terminal device detects that the accessed network is a mobile data network, the terminal device can change the detection result into a wireless local area network, so that the application program of the terminal device can automatically execute the network task without displaying a message popup.
In addition, the network task execution method provided by the embodiment of the invention can be suitable for users who have signed a package of unlimited flow, users who have signed a large flow on a certain day, or other specific network users, and the like.
As shown in fig. 2, an embodiment of the present invention provides a network task execution method. The method can be applied to terminal equipment. The method may include S101 and S102 described below.
S101, under the condition that a first application program is to execute a target network task, the terminal equipment acquires the network state of the terminal equipment and detects whether the terminal equipment meets a preset condition.
It should be noted that, in the embodiment of the present invention, the execution sequence of the "acquiring the network state of the terminal device" and the "detecting whether the terminal device meets the preset condition" is not specifically limited.
Specifically, a possible implementation manner is that the terminal device may first acquire a network state of the terminal device, and detect whether the terminal device meets a preset condition when a network to which the terminal device is connected is a mobile communication network and a target network mode is in an on state.
Another possible implementation manner is that the terminal device may first detect whether the terminal device meets a preset condition, and obtain the network state of the terminal device when the terminal device meets the preset condition.
Another possible implementation manner is that the terminal device may obtain a network state of the terminal device, and simultaneously detect whether the terminal device meets a preset condition.
Optionally, in this embodiment of the present invention, the first application program may be an application program with a function of executing internet surfing.
For example, the first application may be a video playing type application, a game type application, a map type application, a music playing type application, or other possible applications, etc.
Optionally, in the embodiment of the present invention, when the first application executes the target network task, the data traffic consumed by the terminal device is greater than or equal to the preset traffic value.
Optionally, in this embodiment of the present invention, the target network task may be a video session, an online game (e.g., a large-scale network game), an online video, a loading of a dynamic graph (e.g., a gif-format dynamic graph), a file update (e.g., an operating system update), a file download (e.g., an application download), a file upload, or other possible network tasks.
Optionally, in this embodiment of the present invention, the first application may call the target function to obtain the network state of the terminal device from the system of the terminal device.
For example, the first application is taken as an online video playing application for example. Under the condition that the terminal device displays the main interface of the online video playing application program, the user can select one online movie A from the main interface, namely, the target network task to be executed is the online playing movie A. The online video playing application may then call a connectivitymanager.
Optionally, in this embodiment of the present invention, the network state of the terminal device may be any of the following: the network accessed by the terminal equipment is a wireless local area network; the network accessed by the terminal equipment is a mobile communication network, and the target network mode is in an open state; the network accessed by the terminal equipment is a mobile communication network, and the target network mode is in a closed state.
Further, the wireless local area network may be a WIFI network or other possible networks.
Further, the mobile communication network may be a fifth Generation wireless communication (5-Generation, 5G) network, a fourth Generation wireless communication (4-Generation, 4G) network, a third Generation wireless communication (3-Generation, 3G) network, or other possible networks.
Optionally, the preset condition may include at least one of the following first condition, second condition and third condition.
Under the first condition, the starting time of the target network mode is less than or equal to the preset time.
In the embodiment of the present invention, the starting duration of the target network mode refers to a duration from a first time to a second time, where the first time is a time when the target network mode is started by the slave terminal device, and the second time is a time when whether the preset condition of the terminal device is detected.
And secondly, under the condition that the consumed data flow is less than or equal to the preset flow after the target network mode is started.
In the embodiment of the present invention, the traffic consumed after the target network mode is turned on refers to data traffic consumed by the terminal device accumulatively from the time when the terminal device turns on the target network mode.
And thirdly, the first application program is an application program in at least one preset application program which allows the target network mode to be used.
In the embodiment of the invention, under the condition that the network accessed by the terminal equipment is a mobile communication network and the target network mode is in the open state, if a part of application programs in the terminal equipment are to execute the target network task, the terminal equipment can change the detection result into the wireless local area network, so that the part of application programs can automatically execute the target network task without displaying the message popup. In this case, the part of the application may be referred to as a preset application that allows the use of the target network mode.
However, for another part of the application programs in the terminal device, after the terminal device determines that the another part of the application programs are to execute the target network task, although the target network mode is in the on state, the detection result of the terminal device is always the mobile communication network, so the another part of the application programs cannot automatically execute the target network task. In this case, the other part of the application may be referred to as a preset application that is not allowed to use the target network mode.
Optionally, if the preset condition includes at least two of the three conditions, a possible implementation manner is that the terminal device may detect the at least two conditions at the same time; another possible implementation manner is that the terminal device may first detect one of the at least two conditions, and detect another/two of the at least two conditions when the terminal device detects that the terminal device satisfies the one condition.
For example, the preset conditions include the above three conditions. When the network state of the terminal device is that the network to which the terminal device accesses is a mobile communication network and the target network mode is in an open state, first, the terminal device may detect whether the duration of the target network mode is less than or equal to a preset duration, and if the duration of the target network mode is less than or equal to the preset duration, the terminal device may detect whether the data traffic consumed after the target network mode is opened is less than or equal to a preset traffic. Secondly, if the data traffic consumed after the target network mode is started is less than or equal to the preset traffic, the terminal device may detect whether the first application is an application of at least one preset application that allows the target network mode to be used. And thirdly, if the first application program is an application program in at least one preset application program allowing the target network mode to be used, the terminal device can control the first application program to execute the target network task.
And S102, if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, the terminal equipment controls the first application program to execute the target network task.
For example, it is assumed that the preset duration is 24 hours, the preset flow rate is 1G, the first application is an online video playing application, and the target network task is online playing of movie a. If the terminal device detects that the starting time of the target network mode is 10 hours and the consumed data flow after the target network mode is started is 500M, the terminal device can determine that the terminal device meets the preset condition and control the online video playing application program to play the movie A online.
The embodiment of the invention provides a network task execution method, when a first application program of a terminal device is about to execute target network tasks such as video playing and the like, if a target network mode is in an open state and the terminal device meets preset conditions, even if a network accessed by the terminal device is a mobile data network, the first application program can still automatically execute the target network tasks such as video playing and the like without displaying a message popup window or frequently operating the message popup window by a user, so that the process of surfing the internet by using the mobile data network can be simplified, and the network experience of the user can be improved.
Optionally, in this embodiment of the present invention, before the terminal device executes S101 and S102, the network task execution method provided in this embodiment of the present invention may further include S103 and S104 described below.
S103, the terminal equipment receives target input of preset conditions set by a user.
And S104, the terminal equipment responds to the target input and stores the preset condition in the terminal equipment.
Optionally, in this embodiment of the present invention, the target input may be selection input of a setting option and option content in a setting interface displayed by the terminal device.
Illustratively, table 1 is a table of correspondence between option types and option contents provided in the embodiment of the present invention.
TABLE 1
Figure BDA0002108994360000061
As shown in table 1, the option types may include: KAFI mode, single start duration, single traffic limit, and allowed applications list. Wherein, the KAFI mode includes the options: and opening and closing, wherein the terminal equipment can judge whether the terminal equipment meets the preset conditions according to the stored preset conditions under the condition that the user opens the KAFI mode. The single start duration includes the options: the day, month, 24 hours, 48 hours, permanent, custom, each duration option may be used to set a preset duration. The single flow restriction includes the options: 100M, 500M, 1G, 5G, 10G, custom, each flow option may be used to set a preset flow. The allowed applications list includes the options: application 1, application 2, application 3, application 4, application 5, application 6, application 7, application 8, application 9, each application option may be used to set a preset application.
The following describes an exemplary selection type and selection content with reference to fig. 3.
As shown in (a) of fig. 3, the setting interface of the KAFI mode may include 4 options: KAFI mode, single start duration, single traffic limit, and allowed applications list.
If the user clicks on the area where the "single start duration" is located as shown in (a) of fig. 3, the terminal device may switch the interface as shown in (a) of fig. 3 to the interface as shown in (b) of fig. 3. As shown in (b) of fig. 3, the single start time period may include options for setting the preset time period, such as "day", "month", "24 hours", "48 hours", "permanent", and "custom".
If the user clicks an area where "single flow restriction" is located as shown in (a) of fig. 3, the terminal device may switch the interface as shown in (a) of fig. 3 to the interface as shown in (c) of fig. 3. As shown in (c) of fig. 3, the single flow restriction may include options of "100M", "500M", "1G", "5G", "10G", and "custom" for setting the preset flow rate.
If the user clicks an area where the "allowed application list" is located as shown in (a) of fig. 3, the terminal device may switch the interface as shown in (a) of fig. 3 to the interface as shown in (d) of fig. 3. As shown in (d) of fig. 3, the permitted application list may include options for setting preset applications, such as "application 1", "application 2", "application 3", "application 4", "application 5", "application 6", "application 7", "application 8", and "application 9".
According to the network task execution method provided by the embodiment of the invention, the user can preset and store the preset condition in the terminal device, so that when the first application program of the terminal device is to execute the target network task, whether the terminal device meets the preset condition can be judged according to the preset condition.
Optionally, with reference to fig. 2, as shown in fig. 4, the above S102 may be specifically implemented by S102A described below; the network task execution method provided by the embodiment of the present invention may further include the following S105. Wherein, S102A and S105 are alternatively executed.
S102A, if the network accessed by the terminal device is a mobile communication network, the target network mode is in an open state, and the terminal device meets the preset condition, the terminal device sends a first identifier to the first application program, so as to control the first application program to execute the target network task according to the first identifier.
The first identifier may be used to indicate that a network accessed by the terminal device is a wireless local area network.
And S105, if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment does not meet the preset condition, the terminal equipment closes the target network mode and sends a second identifier to the first application program so as to control the first application program to display the first information according to the second identifier.
The second identifier may be used to indicate that a network accessed by the terminal device is a mobile communication network. The first information may be used to prompt whether the first application is allowed to perform the target network task.
It should be noted that, the terminal device not meeting the preset condition means that the terminal device does not meet at least one condition. For example, assume that the preset conditions include: the method comprises the following steps that firstly, the starting duration of a target network mode is less than or equal to a preset duration; secondly, under the condition that the consumed data flow is less than or equal to the preset flow after the target network mode is started; and thirdly, the first application program is an application program in at least one preset application program which allows the target network mode to be used. If the terminal device does not satisfy the first condition, but satisfies the second condition and the third condition, the terminal device may determine that the terminal device does not satisfy the preset condition.
Optionally, in this embodiment of the present invention, the first information may be a message popup, or may be in other possible message forms. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, it is assumed that the preset duration is 24 hours, the preset flow rate is 1G, the first application is an online video playing application, and the target network task is online playing of movie a. If the terminal device detects that the starting time of the target network mode is 10 hours and the consumed data flow after the target network mode is started is 500M, the terminal device can determine that the preset condition is met, and send a first identifier to the online video playing application program, so that the online video playing application program can determine that the network accessed by the terminal device is a wireless local area network according to the first identifier, and play the movie A online. If the terminal device detects that the starting duration of the target network mode is 25 hours and the consumed data traffic is 900M after the target network mode is started, the terminal device may determine that the preset condition is not met, and send a second identifier to the online video playing application program, so that the online video playing application program may determine that the network to which the terminal device is connected is a mobile communication network according to the second identifier, and display a message popup, and the content in the message popup is "whether playing video is to consume the data traffic, and continue playing".
On one hand, when the target network mode is in an open state (that is, the current network type is the mobile communication network) and the terminal device meets the preset condition, the first identifier is returned to the first application program, so that the first application program can regard the current network type as the wireless local area network, the target network task is automatically executed, and the problem that a user is disturbed by displaying a message popup window can be avoided. On the other hand, when the target network mode is in an open state (that is, the current network type is the mobile communication network) and the terminal device does not meet the preset condition, the first application program can know that the current network type is the mobile communication network by returning the second identifier to the first application program, so that the terminal device cannot automatically execute the target network task, and displays the first information (such as a message popup window), thereby reducing the consumed data traffic.
Optionally, after the step S101, the network task execution method provided in the embodiment of the present invention may further include the following step S106, S107, or S108. It should be noted that, in the embodiment of the present invention, S102, S105, S106, S107, and S108 are alternatively executed.
And S106, if the network accessed by the terminal equipment is a mobile communication network and the target network mode is in a closed state, the terminal equipment displays the first information.
The first information may be used to prompt whether to allow the first application to execute the target network task.
And S107, if the network accessed by the terminal equipment is a wireless local area network, the terminal equipment controls the first application program to execute the target network task.
And S108, if the terminal equipment does not access the network, the terminal equipment displays the second information.
The second information may be used to prompt whether to allow the terminal device to access the network.
Optionally, in this embodiment of the present invention, the second information may be a message popup, or may be in other possible message forms. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, the first application is still taken as an online video playing application, and the target network task to be executed is taken as online playing movie a. The terminal device may obtain a network state of the terminal device, and if the network state obtained by the terminal device is "the network to which the terminal device accesses is the mobile communication network, and the target network mode is in a closed state", the terminal device may display a message popup (i.e., a first message), where the content in the message popup is "whether to consume data traffic to play a video, and continue playing". If the network state acquired by the terminal device is that the network accessed by the terminal device is a wireless local area network, the terminal device can control the online video playing application program to automatically play the movie A. If the network status acquired by the terminal device is that the network accessed by the terminal device is a wireless local area network, the terminal device may perform a message popup (i.e., a second message), where the content in the message popup is "unconnected with the network, please check the network setting".
The network task execution method provided by the embodiment of the invention can execute different processing actions according to the network state of the terminal equipment, thereby improving the flexibility of the terminal equipment for executing the target network task.
Optionally, with reference to fig. 2, as shown in fig. 5, the network task execution method provided in the embodiment of the present invention may further include the following steps S109 and S110; alternatively, S109 and S111 described below may be included. That is, after S109, S110 and S111 are alternatively executed.
S109, the terminal equipment receives a first input of a user.
Wherein the first input may be used to determine to turn on the target network mode.
Illustratively, the first input may be an open input to a KAFI open option as shown in (a) of fig. 3.
And S110, if the network accessed by the terminal equipment is the mobile communication network, the terminal equipment responds to the first input, starts a target network mode and keeps accessing to the mobile communication network.
And S111, if the network accessed by the terminal equipment is the wireless local area network, the terminal equipment responds to the first input, starts a target network mode, and switches the network accessed by the terminal equipment from the wireless local area network to a mobile communication network.
In the embodiment of the invention, the target network mode and the wireless local area network type are mutually exclusive network types, namely the target network mode and the wireless local area network cannot be started simultaneously.
For example, after the user determines to turn on the target network mode, the terminal device may detect the currently accessed network type. If the network type accessed by the terminal equipment is the mobile communication network, the terminal equipment can start a target network mode and keep accessing to the mobile communication network; if the network type accessed by the terminal equipment is the wireless local area network, the terminal equipment can start the target network mode and switch the network accessed by the terminal equipment from the wireless local area network to the mobile communication network.
It should be noted that, in the embodiment of the present invention, the execution sequence of S109 and S110 (or S111), S101 and S102 is not specifically limited, and may be specifically determined according to actual use requirements. For example, the terminal device may perform S109 and S110 (or S111) first, and then perform S101 and S102; it is also possible to perform S101 and S102 first and then perform S109 and S110 (or S111).
According to the network task execution method provided by the embodiment of the invention, as the target network mode and the wireless local area network cannot be started simultaneously, when the target network mode is started, the network accessed by the terminal equipment can be ensured to be a mobile communication network, so that the problem that the message popup is continuously displayed in the process of using the mobile communication network can be solved.
Optionally, the network task execution method provided in the embodiment of the present invention may further include the following S112 and S113.
And S112, under the condition that the target network mode is in the starting state, the terminal equipment receives a second input of the user.
Wherein the second input may be used to confirm the closing of the mobile communication network.
Illustratively, the second input may be a close input to the KAFI on option as shown in (a) of fig. 3.
S113, the terminal device closes the mobile communication network and closes the target network mode in response to the second input.
Optionally, the step S113 may specifically be any one of the following manners:
in the first mode, the terminal device responds to the second input, closes the mobile communication network and closes the target network mode.
And in the second mode, the terminal equipment responds to the second input, closes the mobile communication network, opens the wireless local area network and closes the target network mode.
It should be noted that, in the embodiment of the present invention, the execution sequence of S112 and S113, and S101 and S102 is not specifically limited, and may be determined according to actual use requirements. For example, the terminal device may perform S112 and S113 first, and then perform S101 and S102; s101 and S102 may be executed first, and then S112 and S113 may be executed.
According to the network task execution method provided by the embodiment of the invention, the target network mode does not need to execute corresponding functions under the condition that the terminal equipment is accessed to the non-mobile communication network, so that the target network mode can be closed after the user confirms to close the mobile communication network, and the intelligence of the terminal equipment can be improved.
It should be noted that, in the embodiment of the present invention, the network task execution methods shown in the above drawings are all exemplarily described by referring to one drawing in the embodiment of the present invention. In specific implementation, the network task execution method shown in each of the above figures may also be implemented by combining any other combinable figures shown in the above embodiments, and details are not described here again.
As shown in fig. 6, an embodiment of the present invention provides a terminal device 600. The terminal device may include an acquisition module 601, a detection module 602, and a control module 603. The obtaining module 601 may be configured to obtain a network state of the terminal device when the first application program is to execute the target network task. The detecting module 602 may be configured to detect whether the terminal device meets a preset condition under the condition that the first application program is to execute the target network task. The control module 603 may be configured to control the first application to execute the target network task if the network acquired by the acquisition module 601 and accessed by the terminal device is a mobile communication network, the target network mode is in an open state, and the detection module 602 detects that the terminal device meets the preset condition.
Wherein the preset condition may include at least one of the following: the starting time of the target network mode is less than or equal to the preset time, the consumed data flow after the target network mode is started is less than or equal to the preset flow, and the first application program is an application program in at least one preset application program allowing the target network mode to be used.
Optionally, in this embodiment of the present invention, the control module 603 may be specifically configured to send the first identifier to the first application program, so as to control the first application program to execute the target network task according to the first identifier. The first identifier may be used to indicate that a network accessed by the terminal device is a wireless local area network.
Optionally, in this embodiment of the present invention, the control module 603 may be further configured to, if the network acquired by the acquisition module 601 is a mobile communication network, the target network mode is in an open state, and the detection module 602 detects that the terminal device does not meet the preset condition, close the target network mode, and send the second identifier to the first application program, so as to control the first application program to display the first information according to the second identifier. The second identifier may be used to indicate that the network accessed by the terminal device is a mobile communication network, and the first information may be used to prompt whether to allow the first application to perform the target network task.
Optionally, with reference to fig. 6, as shown in fig. 7, the terminal device provided in the embodiment of the present invention may further include a receiving module 604. The receiving module 604 may be configured to receive a first input from a user, where the first input may be used to determine to turn on the target network mode. The control module 603 may be further configured to, if the network that the terminal device accesses is obtained by the obtaining module 601 is a mobile communication network, respond to the first input received by the receiving module 604, start the target network mode, and keep accessing to the mobile communication network; or, if the obtaining module 601 obtains that the network accessed by the terminal device is the wireless local area network, the target network mode is started in response to the first input, and the network accessed by the terminal device is switched from the wireless local area network to the mobile communication network.
Optionally, as shown in fig. 7, the terminal device provided in the embodiment of the present invention may further include a receiving module 604. The receiving module 604 may be configured to receive a second input from the user when the target network mode is in the on state, where the second input may be used to confirm that the mobile communication network is turned off. The control module 603 may be further configured to turn off the mobile communication network and turn off the target network mode in response to a second input.
Optionally, with reference to fig. 6, as shown in fig. 8, the terminal device provided in the embodiment of the present invention may further include a display module 605. The display module 605 may be configured to display first information if the network acquired by the acquisition module 601 and accessed by the terminal device is a mobile communication network and the target network mode is in a closed state, where the first information may be used to prompt whether to allow the first application to execute the target network task; or, if the obtaining module 601 obtains that the terminal device does not access the network, second information is displayed, where the second information may be used to prompt whether to allow the terminal device to access the network. The control module 603 may be configured to, when the obtaining module 601 obtains that the network accessed by the terminal device is a wireless local area network, control the first application to execute the target network task.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The embodiment of the invention provides a terminal device, when a first application program of the terminal device is about to execute target network tasks such as video playing, and if a target network mode is in an open state and the terminal device meets preset conditions, even if a network accessed by the terminal device is a mobile data network, the first application program can still automatically execute the target network tasks such as video playing, and the like, without displaying a message popup window or frequently operating the message popup window by a user, so that the process of surfing the internet by using the mobile data network can be simplified, and the network experience of the user can be improved.
Fig. 9 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 9, the terminal device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 9 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 210 may be configured to acquire a network state of the terminal device and detect whether the terminal device meets a preset condition under the condition that the first application program is to execute the target network task; and if the network accessed by the terminal equipment is a mobile communication network, the target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task.
The embodiment of the invention provides a terminal device, when a first application program of the terminal device is about to execute target network tasks such as video playing, and if a target network mode is in an open state and the terminal device meets preset conditions, even if a network accessed by the terminal device is a mobile data network, the first application program can still automatically execute the target network tasks such as video playing, and the like, without displaying a message popup window or frequently operating the message popup window by a user, so that the process of surfing the internet by using the mobile data network can be simplified, and the network experience of the user can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 202, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The terminal device 200 further comprises at least one sensor 205, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 2061 and/or the backlight when the terminal apparatus 200 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The Display unit 206 may include a Display panel 2061, and the Display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 9, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 208 is an interface for connecting an external device to the terminal apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 200 or may be used to transmit data between the terminal apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the terminal device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
Terminal device 200 may also include a power source 211 (e.g., a battery) for providing power to various components, and optionally, power source 211 may be logically connected to processor 210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the terminal device 200 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 210 shown in fig. 9, the memory 209, and a computer program stored in the memory 209 and capable of running on the processor 210, where the computer program, when executed by the processor 210, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A network task execution method is applied to terminal equipment and is characterized by comprising the following steps:
under the condition that a first application program is to execute a target network task, acquiring the network state of the terminal equipment, and detecting whether the terminal equipment meets a preset condition;
if the network accessed by the terminal equipment is a mobile communication network, a target network mode is in an open state, and the terminal equipment meets the preset condition, controlling the first application program to execute the target network task;
wherein the preset condition comprises at least one of the following: the starting time of the target network mode is less than or equal to preset time, the consumed data flow after the target network mode is started is less than or equal to preset flow, and the first application program is an application program in at least one preset application program which allows the target network mode to be used;
the controlling the first application program to execute the target network task includes:
sending a first identifier to the first application program to control the first application program to execute the target network task according to the first identifier;
the first identifier is used for indicating that a network accessed by the terminal equipment is a wireless local area network.
2. The method of claim 1, further comprising:
if the network accessed by the terminal equipment is a mobile communication network, a target network mode is in an open state, and the terminal equipment does not meet the preset condition, closing the target network mode, and sending a second identifier to the first application program so as to control the first application program to display first information according to the second identifier;
the second identifier is used for indicating that a network accessed by the terminal equipment is a mobile communication network, and the first information is used for prompting a user whether to allow the first application program to execute the target network task.
3. The method according to any one of claims 1 to 2, further comprising:
receiving a first input of a user, wherein the first input is used for determining to start the target network mode;
if the network accessed by the terminal equipment is the mobile communication network, responding to the first input, starting the target network mode, and keeping accessing to the mobile communication network; alternatively, the first and second electrodes may be,
and if the network accessed by the terminal equipment is a wireless local area network, responding to the first input, starting the target network mode, and switching the network accessed by the terminal equipment from the wireless local area network to the mobile communication network.
4. The method of claim 1, wherein after obtaining the network status of the terminal device, the method further comprises:
if the network accessed by the terminal equipment is a mobile communication network and the target network mode is in a closed state, displaying first information, wherein the first information is used for prompting a user whether to allow the first application program to execute the target network task; alternatively, the first and second electrodes may be,
if the network accessed by the terminal equipment is a wireless local area network, controlling the first application program to execute the target network task; alternatively, the first and second electrodes may be,
and if the terminal equipment is not accessed to the network, displaying second information, wherein the second information is used for prompting whether the terminal equipment is allowed to be accessed to the network or not.
5. The terminal equipment is characterized by comprising an acquisition module, a detection module and a control module;
the acquisition module is used for acquiring the network state of the terminal equipment under the condition that a first application program is to execute a target network task;
the detection module is used for detecting whether the terminal equipment meets a preset condition or not under the condition that a first application program is to execute a target network task;
the control module is configured to control the first application program to execute the target network task if the acquisition module acquires that the network to which the terminal device is accessed is a mobile communication network, a target network mode is in an on state, and the detection module detects that the terminal device meets the preset condition;
wherein the preset condition comprises at least one of the following: the starting time of the target network mode is less than or equal to preset time, the consumed data flow after the target network mode is started is less than or equal to preset flow, and the first application program is an application program in at least one preset application program which allows the target network mode to be used;
the control module is specifically configured to send a first identifier to the first application program, so as to control the first application program to execute the target network task according to the first identifier;
the first identifier is used for indicating that a network accessed by the terminal equipment is a wireless local area network.
6. The terminal device according to claim 5, wherein the control module is further configured to, if the network that the obtaining module obtains that the terminal device accesses is a mobile communication network, a target network mode is in an on state, and the detecting module detects that the terminal device does not satisfy the preset condition, close the target network mode, and send a second identifier to the first application program, so as to control the first application program to display first information according to the second identifier;
the second identifier is used for indicating that a network accessed by the terminal equipment is a mobile communication network, and the first information is used for prompting a user whether to allow the first application program to execute the target network task.
7. The terminal device according to any one of claims 5 to 6, wherein the terminal device further comprises a receiving module;
the receiving module is used for receiving a first input of a user, wherein the first input is used for determining to start the target network mode;
the control module is further configured to, if the network to which the terminal device is accessed is the mobile communication network, respond to the first input received by the receiving module, start the target network mode, and keep accessing to the mobile communication network; or, if the acquisition module acquires that the network accessed by the terminal device is a wireless local area network, the target network mode is started in response to the first input, and the network accessed by the terminal device is switched from the wireless local area network to the mobile communication network.
8. The terminal device according to claim 5, wherein the terminal device further comprises a display module;
the display module is configured to display first information if the network accessed by the terminal device is a mobile communication network and the target network mode is in a closed state, where the first information is used to prompt a user whether to allow the first application program to execute the target network task; or if the acquisition module acquires that the terminal equipment is not accessed to the network, displaying second information, wherein the second information is used for prompting whether the terminal equipment is allowed to be accessed to the network or not;
the control module is configured to control the first application program to execute the target network task if the network accessed by the terminal device, which is obtained by the obtaining module, is a wireless local area network.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the network task execution method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the network task execution method according to any one of claims 1 to 4.
CN201910563829.5A 2019-06-26 2019-06-26 Network task execution method and terminal equipment Active CN110445924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910563829.5A CN110445924B (en) 2019-06-26 2019-06-26 Network task execution method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563829.5A CN110445924B (en) 2019-06-26 2019-06-26 Network task execution method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110445924A CN110445924A (en) 2019-11-12
CN110445924B true CN110445924B (en) 2021-06-04

Family

ID=68429064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563829.5A Active CN110445924B (en) 2019-06-26 2019-06-26 Network task execution method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110445924B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112996042A (en) * 2019-12-13 2021-06-18 华为技术有限公司 Network acceleration method, terminal device, server and storage medium
CN111314964B (en) * 2020-01-22 2023-09-15 维沃移动通信有限公司 Data flow control method and electronic equipment
CN111417173B (en) * 2020-03-31 2022-08-02 维沃移动通信有限公司 Cut-off recovery method and electronic equipment
CN112752316B (en) * 2020-12-28 2023-12-19 维沃移动通信有限公司 Electronic equipment networking control method and device, electronic equipment and storage medium
CN113342415B (en) * 2021-06-04 2022-11-29 海信视像科技股份有限公司 Timed task execution method and display device
CN114501674B (en) * 2021-06-10 2022-12-30 荣耀终端有限公司 Hotspot connection method, terminal device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819702A (en) * 2017-11-16 2018-03-20 珠海市魅族科技有限公司 A kind of flow allocation method and device, terminal and readable storage medium storing program for executing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516502A (en) * 2015-12-16 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and flow control method therefor
CN105517089A (en) * 2016-02-26 2016-04-20 宁波萨瑞通讯有限公司 Method capable of automatically connecting to network and mobile terminal
CN107800651B (en) * 2017-10-31 2021-03-02 Oppo广东移动通信有限公司 Application program closing method and device, storage medium and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819702A (en) * 2017-11-16 2018-03-20 珠海市魅族科技有限公司 A kind of flow allocation method and device, terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110445924A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN108255378B (en) Display control method and mobile terminal
CN110445924B (en) Network task execution method and terminal equipment
CN108055408B (en) Application program control method and mobile terminal
CN109542282B (en) Interface display method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN110913066A (en) Display method and electronic equipment
CN111142991A (en) Application function page display method and electronic equipment
CN111027030B (en) Permission setting method and terminal device
CN110837327B (en) Message viewing method and terminal
CN108681427B (en) Access right control method and terminal equipment
CN110944408B (en) Data transmission method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN110752981B (en) Information control method and electronic equipment
CN110231972B (en) Message display method and terminal equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN111030917B (en) Message display method and electronic equipment
CN108804151B (en) Method and terminal for restarting application program
CN108008892B (en) Function starting method and terminal
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN109933267B (en) Method for controlling terminal equipment and terminal equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN111399715B (en) Interface display method and electronic equipment
CN109857305B (en) Input response method and mobile terminal

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