CN107659998A - A kind of method, terminal and the computer-readable medium of control data connection - Google Patents
A kind of method, terminal and the computer-readable medium of control data connection Download PDFInfo
- Publication number
- CN107659998A CN107659998A CN201710762644.8A CN201710762644A CN107659998A CN 107659998 A CN107659998 A CN 107659998A CN 201710762644 A CN201710762644 A CN 201710762644A CN 107659998 A CN107659998 A CN 107659998A
- Authority
- CN
- China
- Prior art keywords
- application
- default
- data
- state
- networking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses method, terminal and the computer-readable medium of a kind of control data connection, wherein this method includes:If network connection state is off-state and data connection state is closed mode, the preset instructions for control targe application are obtained;Wherein, intended application is to need the default application of networking;If getting the preset instructions for control targe application, whether detection intended application belongs to default application group;Wherein, the application that default application group includes has the authority networked using data traffic;If intended application belongs to the default application group, data connection state is set on state;All application activatings to preset in application group use the authority that data traffic is networked.The embodiment of the present invention is by the way that when it is determined that intended application belongs to default application group, turn-on data connects, it is not necessary to the manually opened data connection of user, can simplify the step of turn-on data connects and save data traffic.
Description
Technical field
The present invention relates to electronic technology field, more particularly to method, terminal and the computer of a kind of connection of control data can
Read medium.
Background technology
With the development of development of Mobile Internet technology, user easily can be surfed the Net using mobile terminal.Wherein, move
Dynamic terminal can access WAP (AccessPoint, AP) connection network, it is possible to use data traffic connects network.
When mobile terminal is using data traffic connection network, user needs the mobile data in manually opened informing to open
Mobile data switch in the menu bar of pass or manually opened setting, to enable the terminals to use data traffic.
If however, forgetting to turn on mobile data switch, when user is using the application for needing to network, user needs manual
Open mobile data switch;Or for being unfamiliar with the user of mobile terminal function, such as old man, it may be necessary to which other people help
The enjoyment of mobile Internet access could be enjoyed by opening mobile data switch.
The content of the invention
The embodiment of the present invention provides a kind of method, terminal and the computer-readable medium of control data connection, it is not necessary to uses
The manually opened data connection in family, can simplify the step of turn-on data connects, save data traffic, and eliminate because can not find number
Puzzlement caused by according to connecting valve.
In a first aspect, the embodiments of the invention provide a kind of method of control data connection, this method includes:
If network connection state is off-state and data connection state is closed mode, obtaining should for control targe
Preset instructions;Wherein, the intended application is to need the default application of networking;
If getting the preset instructions for control targe application, detect whether the intended application belongs to default
Application group;Wherein, the application that the default application group includes has the authority networked using data traffic;
If the intended application belongs to the default application group, the data connection state is set on shape
State;
For the authority for using data traffic to network described in all application activatings in the default application group.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes being used to perform above-mentioned first aspect
The unit of method.
The third aspect, the embodiments of the invention provide another terminal, including processor, input equipment, output equipment and
Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch
The computer program that terminal performs the above method is held, the computer program includes programmed instruction, and the processor is configured to use
In calling described program instruction, the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor
The method for stating the above-mentioned first aspect of computing device.
If the embodiment of the present invention is off-state by network connection state and data connection state is closed mode, obtain
Take in the preset instructions of control targe application;Wherein, the intended application is to need the default application of networking;If obtain
To the preset instructions for control targe application, then detect whether the intended application belongs to default application group;Wherein,
The application that the default application group includes has the authority networked using data traffic;If the intended application belongs to described pre-
If application group, then the data connection state is set on state;For all applications in the default application group
Activate the authority networked using data traffic.Terminal is by when it is determined that intended application belongs to default application group, opening
Data connect, it is not necessary to the manually opened data connection of user, can simplify the step of turn-on data connects, and eliminate because looking for not
To data connecting valve and caused by puzzlement;The authority networked using data traffic of the default application group of activation, to preset
Application in application group can be networked using data traffic, prevent from being not belonging to default application group using data
Flow, so as to save data traffic.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the method for control data connection provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of the method for control data connection that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow diagram of the method for control data connection provided in an embodiment of the present invention.
The executive agent for the method that control data connects is terminal in the present embodiment, and terminal includes but is not limited to smart mobile phone, flat board electricity
The mobile terminals such as brain, PAD.It may include as depicted in the method for control data connection:
S101:If network connection state is off-state and data connection state is closed mode, obtain for controlling
The preset instructions of intended application;Wherein, the intended application is to need the default application of networking.
Terminal detects network connection state and data connection state in normal work.Network connection state is used for table
Show whether terminal accesses internet, network connection state includes off-state and connection status.Terminal can pass through wireless network
Network accesses internet, can also access internet by data traffic.
Data connection state includes opening and closed mode.When data connection state is opening, terminal can
Internet is accessed by data traffic.
Terminal is detecting that network connection state is off-state and data connection state is closed mode, obtains for controlling
The preset instructions of intended application processed.Intended application is to need the default application of networking, and intended application includes but is not limited to i.e.
When communications applications, browser application etc..Default control instruction can be for manipulating the default arbitrary instruction using operation, example
Such as, enabled instruction etc..
S102:If getting the preset instructions for control targe application, detect whether the intended application belongs to
In default application group;Wherein, the application that the default application group includes has the authority networked using data traffic.
Terminal is getting the preset instructions for control targe application, judges intended application according to the mark of intended application
Whether default application group is belonged to.Default application group is to pre-set and be stored in the application group in terminal.Default application
The application that group includes can be that dynamic updates, and default application group is the application group pre-set, presets application group
It can be changeless, can also be limited herein according to the networking record dynamic renewal of each application.It is default to apply group
The number of the application included in group can be one, or at least two, it is not limited herein.
Terminal is without any processing when detection intended application is not belonging to default application group, terminates this control flow,
Return to S101;Terminal performs S103 when detection intended application belongs to default application group.
S103:If the intended application belongs to the default application group, the data connection state is set on
Open state.
When it is determined that intended application belongs to default application group, control data connection status is switched to terminal from closed mode
Opening, to enable the terminal to using data traffic access internet.
S104:For the authority for using data traffic to network described in all application activatings in the default application group.
Terminal activates the authority that all application activatings use data traffic to network in default application group, to cause default answer
It can be networked with all applications of group using data traffic, number can not be used by being not belonging to the application of default application group
Networked according to flow.
S103 and S104 can be performed simultaneously.
Such scheme, if terminal network connection state is off-state and data connection state is closed mode, obtain
Preset instructions for control targe application;Wherein, the intended application is to need the default application of networking;If get
The preset instructions for control targe application, then detect whether the intended application belongs to default application group;Wherein, institute
Stating the application that default application group includes has the authority networked using data traffic;If the intended application belongs to described default
Application group, then the data connection state is set on state;Swash for all applications in the default application group
The authority networked using data traffic living.Terminal is by when it is determined that intended application belongs to default application group, opening number
According to connection, it is not necessary to the manually opened data connection of user, the step of turn-on data connects can be simplified, and eliminate because can not find
Data connecting valve and caused by puzzlement;The authority networked using data traffic of the default application group of activation, is answered so as to default
Can be networked with the application in group using data traffic, prevent from being not belonging to default application group using data flow
Amount, so as to save data traffic.
Fig. 2 is referred to, Fig. 2 is a kind of exemplary flow of the method for control data connection that another embodiment of the present invention provides
Figure.The executive agent for the method that control data connects is terminal in the present embodiment, and terminal includes but is not limited to smart mobile phone, flat board
The mobile terminals such as computer, PAD.The method of control data connection as depicted may include:
S201:Default application group is determined according to data traffic usage record corresponding to each application.
Data traffic usage record can include data traffic usage time, data traffic uses duration etc..
Terminal can count each self-corresponding networking frequency of all applications networked in preset time period by data traffic,
The normal application networked using data traffic of preset number is determined according to networking frequency, and preset number is often used into number
The default application group of application composition networked according to flow.For example, terminal is carried out networking frequency by order from high to low
Sequence, frequency of networking is come to the preceding 3 or preceding 5 default application group of application composition, the number for presetting application group can be according to reality
Border situation is set, and is not limited herein.
Networking frequency can count to obtain according to the networking number in preset time period, can also according to networking number and
Networking duration counts to obtain.
Alternatively, S201 can include S2011~S2013.
S2011:According to each application of data traffic usage record statistics corresponding to each application in preset time period
Each self-corresponding networking number of days, networking total duration and last time networking and the time interval between current time.
Data traffic corresponding to each application of data traffic usage record extraction of the terminal out of preset time period uses note
Record, and each each self-corresponding networking number of days of application, networking are total for data traffic usage record statistics according to corresponding to each application
Duration and last time networking and the time interval between current time.
Preset time period can be certain day certain period or a period of time (e.g., nearest 10 across a couple of days
My god), but this is not limited to, it can be specifically configured according to actual conditions, be not limited herein.
S2012:According to default networking score calculative strategy, each self-corresponding networking number of days of each application,
Networking total duration and the time interval, which calculate, described each applies each self-corresponding networking score.
Terminal networking number of days, networking total duration, finally according to corresponding to the networking score calculative strategy to prestore, each application
Once the time interval between networking and current time calculates and each applies each self-corresponding networking score.Networking number of days is actual
The number of days of networking, networking total duration refer to the total duration for accessing network.
Default networking score calculative strategy is used to calculate networking score.Default networking score calculative strategy can be g
=D*a+W*b+K*c.
Wherein, g scores for networking, and D is networking number of days, and a is the first weight corresponding to networking number of days, and W is networking total duration,
B is the second weight corresponding to networking total duration, and K is last time networking and the time interval between current time, and c is last
Secondary the 3rd weight corresponding with the time interval between current time of networking.
For example, D=8 corresponding to certain application (my god), W=12 (hour), K=2, a=0.4, b=0.5, c=0.1, then,
Networking scoring g=8*0.4+12*0.5+2*0.1=9.4 corresponding to the application.
After the same method, it is each right can to calculate all applications networked in preset time period by data traffic for terminal
The networking scoring answered.
S2013:Default application group is determined according to each self-corresponding networking score of each application.
Default application group is determined according to each self-corresponding networking score of each application.Terminal can be by networking score from height
Preset number application is selected successively to low, and the preset number application composition is preset into application group.Preset number can
Think 3 or 5, can also be configured according to actual conditions.
Member's (application) of default application group can with the renewal of the data traffic usage record in preset time period and
Dynamic updates.
S202:If network connection state is off-state and data connection state is closed mode, obtain for controlling
The preset instructions of intended application;Wherein, the intended application is to need the default application of networking.
Terminal detects network connection state and data connection state in normal work.Network connection state is used for table
Show whether terminal accesses internet, network connection state includes off-state and connection status.Terminal can pass through wireless network
Network accesses internet, can also access internet by data traffic.
Data connection state includes opening and closed mode.When data connection state is opening, terminal can
Internet is accessed by data traffic.
Terminal is detecting that network connection state is off-state and data connection state is closed mode, obtains for controlling
The preset instructions of intended application processed.Intended application is to need the default application of networking, and intended application includes but is not limited to i.e.
When communications applications, browser application etc..Default control instruction can be for manipulating the default arbitrary instruction using operation, example
Such as, enabled instruction etc..
S203:If getting the preset instructions for control targe application, detect whether the intended application belongs to
In default application group;Wherein, the application that the default application group includes has the authority networked using data traffic.
Terminal is getting the preset instructions for control targe application, judges intended application according to the mark of intended application
Whether default application group is belonged to.Default application group is to pre-set and be stored in the application group in terminal.Default application
The application that group includes can be that dynamic updates, and default application group is the application group pre-set, presets application group
It can be changeless, can also be limited herein according to the networking record dynamic renewal of each application.It is default to apply group
The number of the application included in group can be one, or at least two, it is not limited herein.
Terminal can terminate this secondary control with without any processing when detecting intended application and being not belonging to default application group
Flow, return to S202;Terminal performs S204 when detection intended application belongs to default application group.
S204:If the intended application belongs to the default application group, the data connection state is set on
Open state.
When it is determined that intended application belongs to default application group, control data connection status is switched to terminal from closed mode
Opening, to enable the terminal to using data traffic access internet.
Alternatively, S204 can include S2041, S2042 or S2043, and S2042 and S2043 is step arranged side by side and selects one and hold
OK.
S2041:If the intended application belongs to the default application group, available data flow value is obtained.
S2042:If the available data flow value is more than or equal to default utilizable flow threshold value, by the data
Connection status is set on state.
Default utilizable flow threshold value can be configured according to actual conditions, be not limited herein.
S2043:If the available data flow value is less than default utilizable flow threshold value, the data are controlled to connect
State remains off.
S205:For the authority for using data traffic to network described in all application activatings in the default application group.
The authority networked using data traffic of all applications in the default application group of terminal activation, to cause default application
All applications of group can be networked using data traffic, be not belonging to the application of default application group and can not be used data
Flow is networked.
S204 and S205 can be performed simultaneously.
Alternatively, after S205, S206 can also be included:If the networking request from the first application is detected, and institute
State the first application and be not belonging to the default application group, be then not responding to the networking request.
The networking request can be user click on first application corresponding to icon or interactive interface triggering or eventually
Internal trigger is held, the first application can be any application of installation in terminal.
Alternatively, S207 can also be included after S205 or S206:If control instruction is not detected by preset duration, or inspection
Measure display screen and be in screen state of going out, then close the data connection.
For terminal when turn-on data connects, the flag bit that data can be set to connect be the first numerical value, the mark that data connect
Will position is used to represent that terminal automatically turns on data connection, so as to which situation about being connected with the manually opened data of user makes a distinction.
The control instruction of terminal detection user's triggering, when being not detected by control instruction in preset duration, terminal recognition
Terminal is not used for user, closes data connection to save data traffic.The control instruction of user's triggering can pass through touch
Screen is triggered or triggered by physical button.
Terminal detect display screen be in go out screen state when, terminal recognition be user be not used terminal, close data connection
To save data traffic, and the flag bit that data are connected is second value, and second value represents current and is turned off data connection.
First numerical value can be 1, and second value can be 0.
Terminal is not detected by control instruction in preset duration, and display screen is in when going out screen state, and terminal recognition is use
Terminal is not used in family, closes data connection to save data traffic.
Alternatively, the method for control data connection can also include S208~S211, wherein, S208~S211 and S202~
S204 is step arranged side by side, and terminal performs S205 after S208~S211 is performed.
S208:If network connection state is off-state and data connection state is closed mode, detection passes through phone
The call instruction of applications trigger.
Call instruction can go electricity to ask or connect by what phone application triggered by what phone application was sent
Instruction is listened, such as, in the answer command that the call reminding interface of phone application is triggered.
S209:If detecting foundation call connection, detect whether contact person corresponding to the call instruction is default connection
It is people.
Terminal goes electric request detecting by what phone application was sent, and detects that opposite equip. responds this and goes electric request
And when establishing call connection with it, terminal detects whether the contact person belongs to default according to the associated person information for going electricity request to carry
Contact person, presetting contact artificially has the contact person for controlling the connection of this terminal turn-on data.Presetting the number of contact person can be
One, or at least two, it is not limited herein.
Terminal can also detect the answer command in the triggering of the call reminding interface of phone application, and answer finger with this
When contact person corresponding to order establishes call connection, the associated person information that terminal incoming call requests according to corresponding to answer command carry is examined
Survey whether the contact person is default contact person.
The method whether contact person corresponding to detection call instruction belongs to default contact person can be, call instruction is corresponding
The telephone number of contact person be compared successively with all telephone numbers corresponding to default contact person, when corresponding to call instruction
When the telephone number of contact person is identical with any telephone number of default contact person, then contact person corresponding to call instruction is identified as
Belong to default contact person, when telephone number all telephone numbers corresponding with default contact person of contact person corresponding to call instruction
When differing, then be identified as call instruction corresponding to contact person be not belonging to default contact person.The number of default contact person can be with
For one, or at least two.When the number of default contact person is at least two, at least two default group of contacts into
Default group of contacts.Each default contact person corresponds with its telephone number, and a default contact person can correspond to one
Telephone number, at least two telephone numbers can also be corresponded to, are not limited herein.
The method whether contact person corresponding to detection call instruction belongs to default contact person can also be:It is the contact person
When being conversed, the speech message of contact person transmission is obtained, and the sound of the contact person is extracted according to the speech message got
Sound feature, the sound characteristic extracted is compared with the sound characteristic of default contact person, to judge the sound spy extracted
Whether sign matches with the sound characteristic of default contact person.Wherein, terminal gathers and stores the sound spy of default contact person in advance
Sign.
Matching degree between the sound characteristic extracted is identical with the sound characteristic of default contact person, or both is more than
Or during equal to preset matching degree threshold value (for example, preset matching degree threshold value is 80%, but being not limited to this), it is identified as the sound got
Sound feature matches with the sound characteristic of default contact person.When the sound characteristic that extracts and default contact person sound characteristic not
With, or both between matching degree to be less than preset matching degree threshold value (but and unlimited for example, preset matching degree threshold value is 80%
In this) when, the sound characteristic for being identified as the sound characteristic and default contact person got mismatches.
Terminal performs S210 when detecting contact artificially default contact person corresponding to call instruction.
S210:If contact person is artificially preset in the contact, detect and be used in the speech message sent from the contact person
Control the default phonetic order of terminal turn-on data connection.
When call instructs corresponding contact artificially default contact person, the language of contact person transmission is obtained in communication process
Sound message, and whether the speech message to getting parses, be used to open so as to judge to include in the speech message got
Open the phonetic order of data connection.Phonetic order for turn-on data connection can be " opening data connection ".
S211:If detecting the default phonetic order, the data connection state is set on state.
For terminal when detecting default phonetic order, control data connection status is switched to opening from closed mode,
To enable the terminal to using data traffic access internet.
Alternatively, terminal can also obtain available data flow value when detecting default phonetic order;And judgement can
Whether data flow value is more than or equal to default utilizable flow threshold value, if available data flow value is more than or equal in advance
If utilizable flow threshold value, then data connection state is set on state;If available data flow value is less than default
Utilizable flow threshold value, then control data connection status remain off.Default utilizable flow threshold value can be according to actual conditions
It is configured, is not limited herein.
Such scheme, if terminal network connection state is off-state and data connection state is closed mode, obtain
Preset instructions for control targe application;Wherein, the intended application is to need the default application of networking;If get
The preset instructions for control targe application, then detect whether the intended application belongs to default application group;Wherein, institute
Stating the application that default application group includes has the authority networked using data traffic;If the intended application belongs to described default
Application group, then the data connection state is set on state;Swash for all applications in the default application group
The authority networked using data traffic living.Terminal is by when it is determined that intended application belongs to default application group, opening number
According to connection, it is not necessary to the manually opened data connection of user, the step of turn-on data connects can be simplified, and eliminate because can not find
Data connecting valve and caused by puzzlement;The authority networked using data traffic of the default application group of activation, is answered so as to default
Can be networked with the application in group using data traffic, prevent from being not belonging to default application group using data flow
Amount, so as to save data traffic.
Terminal turn-on data connection, can reduce use cost, prevent when detecting that currently available flow value is more abundant
Because excess using data traffic brings financial burden to user.
Terminal is gone out screen state detecting that display screen is in, or when being not detected by preset duration control instruction, is closed
Data connect, and can save data traffic.
The embodiment of the present invention also provides a kind of terminal, and the terminal includes being used to perform the control described in foregoing any embodiment
The unit of each step in the method for data connection processed.Specifically, referring to Fig. 3, Fig. 3 is provided in an embodiment of the present invention a kind of whole
The schematic block diagram at end.The terminal 3 of the present embodiment includes:Acquiring unit 310, detection unit 320, opening unit 330 and activation
Unit 340.
Acquiring unit 310, if being off-state for network connection state and data connection state is closed mode, obtain
Take in the preset instructions of control targe application;Wherein, the intended application is to need the default application of networking.
Alternatively, terminal can also include:
Pretreatment unit 300, the default application is determined for the data traffic usage record according to corresponding to each application
Group.
Further, pretreatment unit 300 can include:
Statistic unit 301, for according to corresponding to each application of data traffic usage record statistics in preset time period
The each application of data traffic usage record statistics each self-corresponding networking number of days, networking total duration and last time are networked
Time interval between current time;
Computing unit 302, for according to default networking score calculative strategy, described each using each self-corresponding described
Net number of days, networking total duration and the time interval, which calculate, described each applies each self-corresponding networking score;
Determining unit 303, for determining default application group according to each self-corresponding networking score of each application.
Detection unit 320, if for getting the preset instructions for control targe application, detect the target
Using whether belonging to default application group;Wherein, the application that the default application group includes has is networked using data traffic
Authority.
Opening unit 330, if belonging to the default application group for the intended application, the data are connected into shape
State is set on state.
Alternatively, opening unit 330 includes:
Flow acquiring unit 331, if belonging to the default application group for the intended application, obtain available number
According to flow value;
Status toggle unit 332, if being more than or equal to default utilizable flow threshold for the available data flow value
Value, then be set on state by the data connection state;
State holding elements 333, if being less than default utilizable flow threshold value for the available data flow value, control
The data connection state is made to remain off.
Unit 340 is activated, for join described in all application activatings in the default application group using data traffic
The authority of net.
Alternatively, terminal also includes:
Closing unit 350, for when the data connection state is set on state by opening unit 330, if inspection
Measure display screen and be in screen state of going out, or control instruction is not detected by preset duration, then close the data connection.
Alternatively, terminal can also include:
Networking unit 360, for when the data connection state is set on state by opening unit 330, if inspection
The networking request from the first application is measured, and first application is not belonging to the default application group, then is not responding to described
Networking request.
Alternatively, terminal can also include:
Converse instruction detection unit 370, if being off-state for network connection state and data connection state is closing
State, the then call that detection is triggered by phone application instruct;
Contact person's detection unit 380, if establishing call connection for detecting, detect and join corresponding to the call instruction
It is whether people is default contact person;
Phonetic order detection unit 390, if artificially presetting contact person for the contact, sent from the contact person
The default phonetic order for controlling terminal turn-on data to connect is detected in speech message;
If opening unit 330 is additionally operable to phonetic order detection unit 390 and detects the default phonetic order, by described in
Data connection state is set on state.
Such scheme, if terminal network connection state is off-state and data connection state is closed mode, obtain
Preset instructions for control targe application;Wherein, the intended application is to need the default application of networking;If get
The preset instructions for control targe application, then detect whether the intended application belongs to default application group;Wherein, institute
Stating the application that default application group includes has the authority networked using data traffic;If the intended application belongs to described default
Application group, then the data connection state is set on state;Swash for all applications in the default application group
The authority networked using data traffic living.Terminal is by when it is determined that intended application belongs to default application group, opening number
According to connection, it is not necessary to the manually opened data connection of user, the step of turn-on data connects can be simplified, and eliminate because can not find
Data connecting valve and caused by puzzlement;The authority networked using data traffic of the default application group of activation, is answered so as to default
Can be networked with the application in group using data traffic, prevent from being not belonging to default application group using data flow
Amount, so as to save data traffic.
Terminal turn-on data connection, can reduce use cost, prevent when detecting that currently available flow value is more abundant
Because excess using data traffic brings financial burden to user.
Terminal is gone out screen state detecting that display screen is in, or when being not detected by preset duration control instruction, is closed
Data connect, and can save data traffic.
Referring to Fig. 4, Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention provides.This implementation as depicted
Terminal 4 in example can include:One or more processors 401;One or more input equipments 402, one or more output
Equipment 403 and memory 404.Above-mentioned processor 401, input equipment 402, output equipment 403 and memory 404 pass through bus
405 connections.Memory 402 is used to store computer program, and the computer program includes programmed instruction, and processor 401 is used for
Perform the programmed instruction that memory 402 stores.Wherein, processor 401 is arranged to call described program instruction to perform:
If network connection state is off-state and data connection state is closed mode, obtaining should for control targe
Preset instructions;Wherein, the intended application is to need the default application of networking;
If getting the preset instructions for control targe application, detect whether the intended application belongs to default
Application group;Wherein, the application that the default application group includes has the authority networked using data traffic;
If the intended application belongs to the default application group, the data connection state is set on shape
State;
For the authority for using data traffic to network described in all application activatings in the default application group.
Alternatively, processor 401 is additionally configured to call described program instruction to perform:
The default application group is determined according to data traffic usage record corresponding to each application.
Alternatively, processor 401 is specific is arranged to call described program instruction to perform:
According to data traffic usage record corresponding to each application of data traffic usage record statistics in preset time period
Count each application each self-corresponding networking number of days, networking total duration and last time networking and between current time
Time interval;
It is total according to default networking score calculative strategy, each self-corresponding networking number of days of each application, networking
Duration and the time interval, which calculate, described each applies each self-corresponding networking score;
Default application group is determined according to each self-corresponding networking score of each application.
Alternatively, processor 401 is specific is arranged to call described program instruction to perform:
If the intended application belongs to the default application group, available data flow value is obtained;
If the available data flow value is more than or equal to default utilizable flow threshold value, the data are connected into shape
State is set on state;
If the available data flow value is less than default utilizable flow threshold value, the data connection state is controlled to protect
Hold closed mode.
Alternatively, the authority networked described in all application activatings in for the default application group using data traffic
Before, processor 401 is specific is arranged to call described program instruction to perform:
If network connection state is off-state and data connection state is closed mode, detection is touched by phone application
The call instruction of hair;
If detecting foundation call connection, detect whether contact person corresponding to the call instruction is default contact person;
If contact person is artificially preset in the contact, detected in the speech message sent from the contact person for controlling end
Hold the default phonetic order of turn-on data connection;
If detecting the default phonetic order, the data connection state is set on state.
Alternatively, processor 401 is additionally configured to call described program instruction to perform:
If detecting, display screen is in screen state of going out, or control instruction is not detected by preset duration, then described in closing
Data connect.
Alternatively, if the intended application belongs to the default application group, the data connection state is arranged to
After opening, processor 401 is additionally configured to call described program instruction to perform:
If the networking request from the first application is detected, and first application is not belonging to the default application group,
Then it is not responding to the networking request.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint
Directional information), microphone etc., output equipment 403 can include display (LCD etc.), loudspeaker etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the output equipment 403 described in the embodiment of the present invention can
Perform the reality described in the first embodiment and second embodiment of the method for control data connection provided in an embodiment of the present invention
Existing mode, the implementation of the terminal described by the embodiment of the present invention is also can perform, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and the computer program includes programmed instruction, and described program instruction is realized when being executed by processor:
If network connection state is off-state and data connection state is closed mode, obtaining should for control targe
Preset instructions;Wherein, the intended application is to need the default application of networking;
If getting the preset instructions for control targe application, detect whether the intended application belongs to default
Application group;Wherein, the application that the default application group includes has the authority networked using data traffic;
If the intended application belongs to the default application group, the data connection state is set on shape
State;
For the authority for using data traffic to network described in all application activatings in the default application group.
Alternatively, also realized when described program instruction is executed by processor:Made according to data traffic corresponding to each application
The default application group is determined with record.
Alternatively, implemented when described program instruction is executed by processor:
According to data traffic usage record corresponding to each application of data traffic usage record statistics in preset time period
Count each application each self-corresponding networking number of days, networking total duration and last time networking and between current time
Time interval;
It is total according to default networking score calculative strategy, each self-corresponding networking number of days of each application, networking
Duration and the time interval, which calculate, described each applies each self-corresponding networking score;
Default application group is determined according to each self-corresponding networking score of each application.
Alternatively, implemented when described program instruction is executed by processor:
If the intended application belongs to the default application group, available data flow value is obtained;
If the available data flow value is more than or equal to default utilizable flow threshold value, the data are connected into shape
State is set on state;
If the available data flow value is less than default utilizable flow threshold value, the data connection state is controlled to protect
Hold closed mode.
Alternatively, be the default application group in all application activatings described in using data traffic network authority it
Before, described program instruction implements when being executed by processor:
If network connection state is off-state and data connection state is closed mode, detection is touched by phone application
The call instruction of hair;
If detecting foundation call connection, detect whether contact person corresponding to the call instruction is default contact person;
If contact person is artificially preset in the contact, detected in the speech message sent from the contact person for controlling end
Hold the default phonetic order of turn-on data connection;
If detecting the default phonetic order, the data connection state is set on state.
Alternatively, if the intended application belongs to the default application group, the data connection state is arranged to
After opening, described program instruction is also realized when being executed by processor:
If detecting, display screen is in screen state of going out, or control instruction is not detected by preset duration, then described in closing
Data connect.
Alternatively, if the intended application belongs to the default application group, the data connection state is arranged to
After opening, described program instruction is also realized when being executed by processor:
If the networking request from the first application is detected, and first application is not belonging to the default application group,
Then it is not responding to the networking request.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing
Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
- A kind of 1. method of control data connection, it is characterised in that including:If network connection state is off-state and data connection state is closed mode, obtain for control targe application Preset instructions;Wherein, the intended application is to need the default application of networking;If getting the preset instructions for control targe application, detect whether the intended application belongs to default application Group;Wherein, the application that the default application group includes has the authority networked using data traffic;If the intended application belongs to the default application group, the data connection state is set on state;For the authority for using data traffic to network described in all application activatings in the default application group.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:The default application group is determined according to data traffic usage record corresponding to each application.
- 3. according to the method for claim 2, it is characterised in that each data traffic uses note to the basis corresponding to application Record determines the default application group, including:According to data traffic usage record statistics corresponding to each application of data traffic usage record statistics in preset time period The time that each application each self-corresponding networking number of days, networking total duration and the last time were networked between current time Interval;According to default networking score calculative strategy, each self-corresponding networking number of days of each application, networking total duration And the time interval calculates and described each applies each self-corresponding networking score;Default application group is determined according to each self-corresponding networking score of each application.
- 4. according to the method for claim 1, it is characterised in that if the intended application belongs to the default application group Group, then the data connection state is set on state, including:If the intended application belongs to the default application group, available data flow value is obtained;If the available data flow value is more than or equal to default utilizable flow threshold value, the data connection state is set It is set to opening;If the available data flow value is less than default utilizable flow threshold value, the data connection state is controlled to keep closing Closed state.
- 5. according to the method for claim 1, it is characterised in that described is that all applications in the default application group swash Before the authority networked using data traffic living, methods described also includes:If network connection state is off-state and data connection state is closed mode, detection is triggered by phone application Call instruction;If detecting foundation call connection, detect whether contact person corresponding to the call instruction is default contact person;If contact person is artificially preset in the contact, detected in the speech message sent from the contact person for controlling terminal to open Open the default phonetic order of data connection;If detecting the default phonetic order, the data connection state is set on state.
- 6. according to the method described in any one of claim 1 to 5, it is characterised in that if the intended application belongs to described Default application group, then after the data connection state being set on into state, methods described also includes:If detecting, display screen is in screen state of going out, or control instruction is not detected by preset duration, then closes the data Connection.
- 7. according to the method for claim 6, it is characterised in that if the intended application belongs to the default application group Group, then after the data connection state being set on into state, methods described also includes:If the networking request from the first application is detected, and first application is not belonging to the default application group, then not Respond the networking request.
- 8. a kind of terminal, it is characterised in that including the list for performing the method as described in claim 1-7 any claims Member.
- 9. a kind of terminal, it is characterised in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store computer program, the computer Program includes programmed instruction, and the processor is arranged to call described program instruction, performed such as any one of claim 1-7 Described method.
- A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710762644.8A CN107659998A (en) | 2017-08-30 | 2017-08-30 | A kind of method, terminal and the computer-readable medium of control data connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710762644.8A CN107659998A (en) | 2017-08-30 | 2017-08-30 | A kind of method, terminal and the computer-readable medium of control data connection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107659998A true CN107659998A (en) | 2018-02-02 |
Family
ID=61128008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710762644.8A Withdrawn CN107659998A (en) | 2017-08-30 | 2017-08-30 | A kind of method, terminal and the computer-readable medium of control data connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107659998A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116302454A (en) * | 2023-05-22 | 2023-06-23 | 荣耀终端有限公司 | Method for applying network resources and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219383A (en) * | 2014-08-20 | 2014-12-17 | 小米科技有限责任公司 | Terminal power information prompting method and device |
CN105791560A (en) * | 2016-02-26 | 2016-07-20 | 广东欧珀移动通信有限公司 | Data network access control method and user terminal |
CN106332225A (en) * | 2016-09-23 | 2017-01-11 | 依偎科技(南昌)有限公司 | Method for freezing application based on WIFI and related device |
CN106792434A (en) * | 2016-11-14 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of focus method for building up and terminal device |
-
2017
- 2017-08-30 CN CN201710762644.8A patent/CN107659998A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219383A (en) * | 2014-08-20 | 2014-12-17 | 小米科技有限责任公司 | Terminal power information prompting method and device |
CN105791560A (en) * | 2016-02-26 | 2016-07-20 | 广东欧珀移动通信有限公司 | Data network access control method and user terminal |
CN106332225A (en) * | 2016-09-23 | 2017-01-11 | 依偎科技(南昌)有限公司 | Method for freezing application based on WIFI and related device |
CN106792434A (en) * | 2016-11-14 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of focus method for building up and terminal device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116302454A (en) * | 2023-05-22 | 2023-06-23 | 荣耀终端有限公司 | Method for applying network resources and electronic equipment |
CN116302454B (en) * | 2023-05-22 | 2023-10-20 | 荣耀终端有限公司 | Method for applying network resources and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110413315B (en) | Application program control method and electronic equipment | |
CN107861773A (en) | Associate management-control method, device, storage medium and the mobile terminal started | |
CN110413364A (en) | A kind of information processing method and terminal | |
CN108108216A (en) | A kind of method, terminal and computer readable storage medium for managing message | |
CN107870706A (en) | One kind management figure calibration method, terminal and computer-readable medium | |
CN107390969B (en) | A kind of method and terminal controlling suspended window | |
CN106980445A (en) | Manipulate the awaking method and device, electronic equipment of menu | |
CN109224436A (en) | Virtual key based on interface defines method, terminal and storage medium | |
CN107908349A (en) | Display interface amplification method, terminal and computer-readable recording medium | |
CN107168602A (en) | One kind control application drawing calibration method and terminal | |
CN107197082A (en) | A kind of information prompting method and terminal | |
CN107864270A (en) | A kind of method, terminal and computer-readable recording medium for handling incoming call | |
CN107957913A (en) | Associate management-control method, device, storage medium and the mobile terminal started | |
CN108170341A (en) | Interface operation button adaptive approach, terminal and computer readable storage medium | |
CN107608724A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN107465818A (en) | The method and terminal of a kind of virtual incoming call | |
CN107608719A (en) | A kind of interface operation method, terminal and computer-readable recording medium | |
CN107087018A (en) | A kind of method and terminal for running web application | |
CN107463350A (en) | A kind of footmark method of adjustment and terminal | |
CN107491300A (en) | The reminding method and its terminal of a kind of intelligent function | |
CN107844341A (en) | Management-control method, device and the storage medium and mobile terminal of process initiation | |
CN107920162A (en) | Control method, mobile terminal and the computer-readable recording medium of alarm clock | |
CN107734121B (en) | Volume control method and device, storage medium and electronic equipment | |
CN108092911A (en) | A kind of method, terminal and computer-readable medium for managing data traffic | |
CN108153458A (en) | A kind of dialog box processing method, terminal device and computer readable storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180202 |
|
WW01 | Invention patent application withdrawn after publication |