[go: up one dir, main page]

CN106506401A - A kind of flow managing method and mobile terminal - Google Patents

A kind of flow managing method and mobile terminal Download PDF

Info

Publication number
CN106506401A
CN106506401A CN201610933089.6A CN201610933089A CN106506401A CN 106506401 A CN106506401 A CN 106506401A CN 201610933089 A CN201610933089 A CN 201610933089A CN 106506401 A CN106506401 A CN 106506401A
Authority
CN
China
Prior art keywords
application program
priority
data exchange
application
traffic
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.)
Pending
Application number
CN201610933089.6A
Other languages
Chinese (zh)
Inventor
闵曲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610933089.6A priority Critical patent/CN106506401A/en
Publication of CN106506401A publication Critical patent/CN106506401A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供了一种流量管理方法,包括:当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定所述前台运行的应用程序对应的优先级;依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。通过本发明实施例提供的流量管理方法及移动终端,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。

An embodiment of the present invention provides a traffic management method, including: when it is detected that the remaining traffic value is lower than the preset traffic value, acquiring the application program running in the foreground; determining the priority corresponding to the application program running in the foreground; The priority of the application program is used to control the data exchange status of the application program. Through the traffic management method and the mobile terminal provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to perform cumbersome management operations manually. , which can improve the user experience.

Description

一种流量管理方法及移动终端A traffic management method and mobile terminal

技术领域technical field

本发明涉及通讯技术领域,特别是涉及一种流量管理方法及移动终端。The invention relates to the technical field of communications, in particular to a flow management method and a mobile terminal.

背景技术Background technique

在当今的信息时代,互联网信息产业经济愈加蓬勃,发展兴盛,计算机技术的应用已经深入到社会的每一个角落,计算机的应用日益普遍,给我们的生活带来了诸多的便利。随着3G、4G网络的建设普及,网络带宽的提升,网速越来越快,看视频、浏览网页、聊天成为了手机等移动终端的主要用途,然而随之而来的是不断增加的流量使用。目前运营商提供的各种套餐中,300M、500M甚至1G的流量都不足以让我们大多数用无所顾忌的使用手机,在不知情的情况下看电影或者视频聊天会消耗掉套餐内的所有流量。在这种背景下,用户不得不对流量斤斤计较,只有在需要的时候打开流量使用开关,使用完毕就需立刻关掉数据网络。In today's information age, the Internet information industry economy is becoming more and more prosperous, and the application of computer technology has penetrated into every corner of society. The application of computers is becoming more and more common, bringing many conveniences to our lives. With the construction and popularization of 3G and 4G networks, the improvement of network bandwidth, and the faster and faster network speed, watching videos, browsing the web, and chatting have become the main uses of mobile terminals such as mobile phones. However, the traffic is constantly increasing use. Among the various packages currently provided by operators, 300M, 500M or even 1G traffic is not enough for most of us to use mobile phones without any scruples. Watching movies or video chatting without knowing it will consume all the data in the package. flow. In this context, users have to worry about traffic, only turn on the traffic usage switch when needed, and turn off the data network immediately after use.

目前的移动终端在进行流量管理时,仅仅提供单个开关供用户使用,需要聊天或者看新闻时打开,使用完需立刻关闭,使用极不方便。很多时候可能用户仅仅是为了发条信息,也需要进入设置或者快捷开关中打开数据网络,发完消息再进入设置或者快捷开关中关闭开关,关闭后别人发的消息也收不到,尽管聊天应用流量花销很小,但为了防止其他应用在不知情的情况下偷偷消耗流量,用户不得不选择关闭数据网络。The current mobile terminal only provides a single switch for users to use when performing traffic management. It is turned on when chatting or watching news is needed, and it needs to be turned off immediately after use, which is extremely inconvenient to use. In many cases, the user may only need to enter the settings or the shortcut switch to enable the data network just to send a message, and then enter the settings or the shortcut switch to turn off the switch after sending the message. The traffic cost is very small, but in order to prevent other applications from secretly consuming traffic without knowing it, users have to choose to turn off the data network.

目前现有技术对流量的管理很繁琐,不便于用户操作,影响用户的使用体验。Currently, traffic management in the prior art is cumbersome, inconvenient for user operations, and affects user experience.

发明内容Contents of the invention

本发明提供了一种流量管理方法及移动终端,以解决现有技术中存在的对流量进行管理时的操作繁琐的问题。The invention provides a flow management method and a mobile terminal to solve the problem of cumbersome operations in flow management in the prior art.

为了解决上述问题,本发明公开了一种流量管理方法,应用于移动终端所述方法包括:当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定所述前台运行的应用程序对应的优先级;依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。In order to solve the above problems, the present invention discloses a traffic management method, which is applied to a mobile terminal. The method includes: when it is detected that the remaining traffic value is lower than the preset traffic value, acquiring the application program running in the foreground; The priority corresponding to the application program; according to the priority of the application program, the data exchange state of the application program is controlled.

为了解决上述问题,本发明还公开了一种移动终端,包括:获取模块,用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定优先级模块,用于确定所述前台运行的应用程序对应的优先级;管理模块,用于依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。In order to solve the above problems, the present invention also discloses a mobile terminal, including: an acquisition module, used to acquire the application program running in the foreground when it is detected that the remaining flow value is lower than the preset flow value; a priority determination module, used to Determine the priority corresponding to the application running in the foreground; the management module is used to control the data exchange status of the application according to the priority of the application.

与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

本发明实施例提供的一种流量管理方法及移动终端,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的流量管理方法及移动终端,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。The traffic management method and mobile terminal provided by the embodiments of the present invention detect the traffic in the package of the mobile terminal in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, obtain the application program running in the foreground and the application running in the foreground The priority of the program controls the data exchange status of the application program according to the priority of the application program. It can be seen that, through the traffic management method and the mobile terminal provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package, without requiring the user to manually perform cumbersome management operations , therefore, the user experience can be improved.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1为本发明实施例一的一种流量管理方法流程图;FIG. 1 is a flow chart of a traffic management method in Embodiment 1 of the present invention;

图2为本发明实施例二的一种流量管理方法流程图;FIG. 2 is a flow chart of a traffic management method in Embodiment 2 of the present invention;

图3为本发明实施例三的一种流量管理方法流程图;FIG. 3 is a flowchart of a flow management method according to Embodiment 3 of the present invention;

图4为本发明实施例四提供的一种移动终端结构框图;FIG. 4 is a structural block diagram of a mobile terminal provided by Embodiment 4 of the present invention;

图5为本发明实施例五提供的一种移动终端结构框图;FIG. 5 is a structural block diagram of a mobile terminal provided by Embodiment 5 of the present invention;

图6为本发明实施例六移动终端的结构框图;FIG. 6 is a structural block diagram of a mobile terminal according to Embodiment 6 of the present invention;

图7为本发明实施例七移动终端的结构框图。FIG. 7 is a structural block diagram of a mobile terminal according to Embodiment 7 of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

实施例一Embodiment one

参照图1,示出了本发明实施例一的一种流量管理方法流程图。Referring to FIG. 1 , it shows a flow chart of a traffic management method according to Embodiment 1 of the present invention.

本发明实施例流量管理方法包括如下步骤:The traffic management method in the embodiment of the present invention includes the following steps:

步骤101:当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序。Step 101: when it is detected that the remaining traffic value is lower than the preset traffic value, obtain the application programs running in the foreground.

一般移动终端内的套餐流量是一定的,对移动终端内的套餐流量进行实时检测,将实时监测到的流量值与第一预设流量值进行比较,当检测到的流量值低于第一预设流量值时,开启流量管理模式,获取当前在前台运行的应用程序。Generally, the package traffic in the mobile terminal is fixed. The package traffic in the mobile terminal is detected in real time, and the real-time monitored traffic value is compared with the first preset traffic value. When the detected traffic value is lower than the first preset traffic value When setting the flow value, turn on the flow management mode and get the application currently running in the foreground.

需要说明的是,本领域技术人员可以根据实际需要对第一预设流量值进行设置,例如,第一预设流量值可以设置为100MB、500MB等,本发明实施例中对此不作具体限制。It should be noted that those skilled in the art can set the first preset traffic value according to actual needs. For example, the first preset traffic value can be set to 100MB, 500MB, etc., which is not specifically limited in this embodiment of the present invention.

步骤102:确定前台运行的应用程序对应的优先级。Step 102: Determine the priority corresponding to the application running in the foreground.

不同的应用程序使用时所消耗的流量不同,在具体实现过程中,可以预先依据应用程序消耗的流量对应用程序进行优先级分类。Different application programs consume different traffic when used, and in the specific implementation process, the application programs may be prioritized according to the traffic consumed by the application programs in advance.

在确定某一个应用程序的优先级时,则确定应用程序所属的优先级分类即可确定其对应的优先级。在获取当前运行的应用程序的优先级后,则可执行下一步操作。When determining the priority of a certain application program, the corresponding priority can be determined by determining the priority category to which the application program belongs. After obtaining the priority of the currently running application, the next step can be performed.

步骤103:依据应用程序的优先级,对应用程序的数据交换状态进行控制。Step 103: Control the data exchange state of the application program according to the priority of the application program.

其中,前台运行的应用程序可以为一个也可以为多个,多个应用程序在前台运行的的情况可以是多个应用程序在界面上分屏显示,用户可以在界面上同时对这些应用程序进行浏览和操作。Among them, the application program running in the foreground can be one or more, and the situation of multiple application programs running in the foreground can be that multiple application programs are displayed in split screens on the interface, and the user can simultaneously control these application programs on the interface. Browse and operate.

本步骤中,可以依据应用程序对应的优先级,对应用程序的数据交换状态进行控制,如对应用程序的数据交换请求进行拦截或者响应等。In this step, the data exchange state of the application program can be controlled according to the priority corresponding to the application program, such as intercepting or responding to the data exchange request of the application program.

本发明实施例提供的一种流量管理方法,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的流量管理方法,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。A traffic management method provided by an embodiment of the present invention detects the traffic in the package of the mobile terminal in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, obtains the application program running in the foreground and the priority of the application program running in the foreground Level, according to the priority of the application, the data exchange status of the application is controlled. It can be seen that through the traffic management method provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to perform cumbersome management operations manually. Therefore, Can improve user experience.

实施例二Embodiment two

参照图2,示出了本发明实施例二的一种流量管理方法流程图。Referring to FIG. 2 , it shows a flowchart of a traffic management method according to Embodiment 2 of the present invention.

本发明实施例流量管理方法包括如下步骤:The traffic management method in the embodiment of the present invention includes the following steps:

步骤201:确定各应用程序的消耗流量值。Step 201: Determine the traffic consumption value of each application program.

移动终端中安装的每个应用程序使用时所消耗的流量不同。具体地,可以根据用户对应用程序的使用行为,例如:使用的偏好、使用时长等,依据用户对应用程序的使用行为计算出用户在各应用程序上的流量消耗值。Each application program installed in the mobile terminal consumes different traffic when used. Specifically, the data consumption value of the user on each application program may be calculated according to the user's use behavior of the application program, such as: use preference, use duration, etc., according to the user's use behavior of the application program.

步骤202:依据消耗流量值对各应用程序进行优先级分类。Step 202: Perform priority classification for each application program according to the consumption flow value.

本步骤中依据步骤201确定的各应用程序所消耗的流量值,对各应用程序进行优先级分类。In this step, each application program is prioritized according to the traffic value consumed by each application program determined in step 201 .

一种优选的对各应用程序进行优先级分类的方式如下:A preferred way of classifying the priority of each application program is as follows:

针对每个应用程序,将应用程序对应的消耗流量值与第二预设流量值进行比较;For each application, comparing the consumption flow value corresponding to the application with the second preset flow value;

若消耗流量值大于第二预设流量值,则确定应用程序的优先级为第一优先级;If the consumption flow value is greater than the second preset flow value, the priority of the application program is determined to be the first priority;

若消耗流量值小于第三预设流量值,则确定应用程序的优先级为第三优先级;If the consumption flow value is less than the third preset flow value, the priority of the application program is determined to be the third priority;

若消耗流量值小于或等于第二预设流量值,且大于或等于所述第三预设流量值,则确定所述应用程序的优先级为第二优先级。If the consumed flow value is less than or equal to the second preset flow value and greater than or equal to the third preset flow value, it is determined that the priority of the application program is the second priority.

需要说明的是,本领域技术人员可以对第二预设流量值以及第三预设流量值进行设置,例如,第二预设流量值与第三预设流量值可以为500MB、1G等,对此不作具体限制。It should be noted that those skilled in the art can set the second preset flow value and the third preset flow value, for example, the second preset flow value and the third preset flow value can be 500MB, 1G, etc., for This is not specifically limited.

其中,第一优先级的应用程序可以为各大视频的应用程序,第二优先级的应用程序可以为购物类应用程序或者新闻客户端等。第三优先级的应用程序可以为流量消耗较小的文字类应用程序,如聊天应用程序等。Wherein, the application programs of the first priority may be application programs of major videos, and the application programs of the second priority may be shopping application programs or news clients. The third-priority application program may be a text-based application program that consumes less traffic, such as a chat application program.

对各个应用程序的优先级分类不局限于上述形式,也可以用户根据个人喜好进行优先级设置,对此不作具体限制。The priority classification of each application program is not limited to the above forms, and the user can also set the priority according to personal preferences, which is not specifically limited.

步骤203:当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序。Step 203: when it is detected that the remaining traffic value is lower than the preset traffic value, obtain the application running in the foreground.

一般移动终端内的套餐流量是一定的,对移动终端内的套餐流量进行实时检测,将实时监测到的流量值与第一预设流量值进行比较,当检测到的流量值低于第一预设流量值时,开启流量管理模式。Generally, the package traffic in the mobile terminal is fixed. The package traffic in the mobile terminal is detected in real time, and the real-time monitored traffic value is compared with the first preset traffic value. When the detected traffic value is lower than the first preset traffic value When setting the flow value, turn on the flow management mode.

需要说明的是,本领域技术人员可以根据实际需要对第一预设流量值进行设置,例如,第一预设流量值可以设置为100MB、500MB等,对此不作具体限制。It should be noted that those skilled in the art can set the first preset traffic value according to actual needs, for example, the first preset traffic value can be set to 100MB, 500MB, etc., and there is no specific limitation on this.

步骤204:检测前台运行的应用程序的功能状态。Step 204: Detect the function status of the application running in the foreground.

每个应用程序有不同的功能,比如:微信既可以聊天也可以视频。当用户在使用应用程序上不同的功能时,应用程序处于不同的功能状态。Each app has different functions, for example: Wechat can both chat and video. When the user is using different functions on the application, the application is in different functional states.

步骤205:确定功能状态对应的优先级。Step 205: Determine the priority corresponding to the function status.

每个应用程序在不同功能状态下所消耗的流量不同,例如:微信在聊天时消耗的流量非常小,但是在进行视频时,所消耗的流量时却非常的大。Each application consumes different traffic in different functional states. For example, WeChat consumes very little traffic when chatting, but consumes a lot of traffic when making videos.

需要详细说明的是,应用程序的功能状态与优先级的对应方法为:与该功能状态同类的应用程序所对应的优先级。例如,步骤204中检测到用户在使用微信应用来播放视频时,微信处于视频相关的功能状态,那么该功能状态对应的优先级与视频类应用对应的优先级相同。It should be explained in detail that the method for corresponding the functional state of the application program to the priority is: the priority corresponding to the application program of the same type as the functional state. For example, when it is detected in step 204 that the user is using the WeChat application to play the video, and WeChat is in a video-related functional state, then the priority corresponding to this functional state is the same as that corresponding to the video-type application.

步骤206:确定应用程序的功能状态对应的优先级和优先级对应的预设瞬时流量阈值,并将应用程序在当前功能状态下的瞬时流量值与预设瞬时流量阈值进行比较。Step 206: Determine the priority corresponding to the functional state of the application program and the preset instantaneous traffic threshold corresponding to the priority, and compare the instantaneous traffic value of the application program in the current functional state with the preset instantaneous traffic threshold.

在移动终端预先设置有预设瞬时流量阈值,预设瞬时流量阈值为:当用户进入某一应用程序使用某一功能时,在一定时间内会进行流量消耗,在这一定时间内所消耗的流量为预设瞬时流量阈值。The preset instantaneous traffic threshold is preset in the mobile terminal, and the preset instantaneous traffic threshold is: when a user enters a certain application program to use a certain function, the traffic will be consumed within a certain period of time, and the traffic consumed in this certain period of time is the preset instantaneous flow threshold.

需要说明的是,本领域技术人员可以根据实际情况对预设流量阈值进行设定,可以为在0-5S内所消耗的流量,或者5-10S内所消耗的流量。It should be noted that those skilled in the art can set the preset traffic threshold according to the actual situation, which can be the traffic consumed in 0-5S, or the traffic consumed in 5-10S.

步骤207:根据瞬时流量值和预设瞬时流量阈值的比较关系,对应用程序的数据交换进行控制。Step 207: Control the data exchange of the application program according to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold.

在步骤206中,将当前瞬时流量值与预设瞬时流量阈值进行比较,若当前瞬时流量值大于或者等于预设瞬时流量阈值,则禁止当前应用程序进行数据信息交换。In step 206, the current instantaneous flow value is compared with a preset instantaneous flow threshold, and if the current instantaneous flow value is greater than or equal to the preset instantaneous flow threshold, the current application program is prohibited from exchanging data information.

若当前瞬时流量值小于预设瞬时流量阈值,则当前应用程序可以进行数据交换。If the current instantaneous flow value is less than the preset instantaneous flow threshold, the current application program can perform data exchange.

通过对应用程序中使用的不同的功能来确定不同的流量管理策略,方便用户在使用应用程序的过程中对流量实时进行管理。By determining different traffic management strategies for different functions used in the application, it is convenient for the user to manage the traffic in real time during the use of the application.

本发明实施例提供的一种流量管理方法,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的流量管理方法,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。A traffic management method provided by an embodiment of the present invention detects the traffic in the package of the mobile terminal in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, obtains the application program running in the foreground and the priority of the application program running in the foreground Level, according to the priority of the application, the data exchange status of the application is controlled. It can be seen that through the traffic management method provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to perform cumbersome management operations manually. Therefore, Can improve user experience.

实施例三Embodiment Three

参照图3,示出了本发明实施例三的一种流量管理方法流程图。Referring to FIG. 3 , it shows a flowchart of a traffic management method according to Embodiment 3 of the present invention.

本发明实施例流量管理方法包括如下步骤:The traffic management method in the embodiment of the present invention includes the following steps:

步骤301:确定各应用程序的消耗流量值。Step 301: Determine the traffic consumption value of each application program.

移动终端中安装的每个应用程序使用时所消耗的流量不同。具体地,可以根据用户对应用程序的使用行为,例如:使用的偏好、使用时长等,依据用户对应用程序的使用行为计算出用户在各应用程序上的流量消耗值。Each application program installed in the mobile terminal consumes different traffic when used. Specifically, the data consumption value of the user on each application program may be calculated according to the user's use behavior of the application program, such as: use preference, use duration, etc., according to the user's use behavior of the application program.

步骤302:依据消耗流量值对各所述应用程序进行优先级分类。Step 302: Perform priority classification for each of the application programs according to the consumption flow value.

本步骤中依据步骤301确定的各应用程序所消耗的流量值,对各应用程序进行优先级分类。In this step, each application program is prioritized according to the traffic value consumed by each application program determined in step 301 .

一种优选的对各应用程序进行优先级分类的方式如下:A preferred way of classifying the priority of each application program is as follows:

针对每个应用程序,将应用程序对应的消耗流量值与第二预设流量值进行比较;For each application, comparing the consumption flow value corresponding to the application with the second preset flow value;

若消耗流量值大于第二预设流量值,则确定应用程序的优先级为第一优先级;If the consumption flow value is greater than the second preset flow value, the priority of the application program is determined to be the first priority;

若消耗流量值小于第三预设流量值,则确定应用程序的优先级为第三优先级;If the consumption flow value is less than the third preset flow value, the priority of the application program is determined to be the third priority;

若消耗流量值小于或等于第二预设流量值,且大于或等于所述第三预设流量值,则确定所述应用程序的优先级为第二优先级。If the consumed flow value is less than or equal to the second preset flow value and greater than or equal to the third preset flow value, it is determined that the priority of the application program is the second priority.

需要说明的是,本领域技术人员可以对第二预设流量值以及第三预设流量值进行设置,例如,第二预设流量值与第三预设流量值可以为500MB、1G等,对此不作具体限制。It should be noted that those skilled in the art can set the second preset flow value and the third preset flow value, for example, the second preset flow value and the third preset flow value can be 500MB, 1G, etc., for This is not specifically limited.

其中,第一优先级的应用程序可以为各大视频的应用程序,第二优先级的应用程序可以为购物类应用程序或者新闻客户端等。第三优先级的应用程序可以为流量消耗较小的文字类应用程序,如聊天应用程序等。Wherein, the application programs of the first priority may be application programs of major videos, and the application programs of the second priority may be shopping application programs or news clients. The third-priority application program may be a text-based application program that consumes less traffic, such as a chat application program.

对各个应用程序的优先级分类不局限于上述形式,也可以用户根据个人喜好进行优先级设置,对此不作具体限制。The priority classification of each application program is not limited to the above forms, and the user can also set the priority according to personal preferences, which is not specifically limited.

步骤303:当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序。Step 303: when it is detected that the remaining traffic value is lower than the preset traffic value, obtain the application running in the foreground.

一般移动终端内的套餐流量是一定的,对移动终端内的套餐流量进行实时检测,将实时监测到的流量值与第一预设流量值进行比较,当检测到的流量值低于第一预设流量值时,开启流量管理模式。Generally, the package traffic in the mobile terminal is fixed. The package traffic in the mobile terminal is detected in real time, and the real-time monitored traffic value is compared with the first preset traffic value. When the detected traffic value is lower than the first preset traffic value When setting the flow value, turn on the flow management mode.

需要说明的是,本领域技术人员可以根据实际需要对第一预设流量值进行设置,例如,第一预设流量值可以设置为100MB、500MB等,对此不作具体限制。It should be noted that those skilled in the art can set the first preset traffic value according to actual needs, for example, the first preset traffic value can be set to 100MB, 500MB, etc., and there is no specific limitation on this.

步骤304:确定前台运行的应用程序对应的优先级。Step 304: Determine the priority corresponding to the application running in the foreground.

步骤302中已为移动终端中安装的各应用程序进行了优先级分类,因此,本步骤中在确定当前运行的各应用程序的优先级时,先确定应用程序所属的优先级分类,然后即可确定其对应用的优先级。在获取当前运行的应用程序的优先级后,则可执行下一步操作。Priority classification has been carried out for each application program installed in the mobile terminal in step 302, therefore, in this step, when determining the priority of each application program currently running, first determine the priority classification to which the application program belongs, and then Determine its priority for the application. After obtaining the priority of the currently running application, the next step can be performed.

步骤305:当应用程序为第一优先级时,显示第一提示信息。Step 305: When the application program has the first priority, display the first prompt information.

第一提示信息为提示用户选择是否继续使用数据网络的信息。The first prompt information is information prompting the user to choose whether to continue using the data network.

步骤306:若检测到用户的确定操作,则响应应用程序的数据交换请求;当应用程序在后台运行时,拦截应用程序的数据交换请求。Step 306: If a certain operation of the user is detected, respond to the data exchange request of the application program; when the application program is running in the background, intercept the data exchange request of the application program.

步骤307:若检测到用户的取消操作,则拦截应用程序的数据交换请求。Step 307: If the cancel operation of the user is detected, intercept the data exchange request of the application program.

具体地,当确定当前运行的应用程序优先级为第一优先级时,对应用程序流量的管理如下:Specifically, when it is determined that the priority of the currently running application program is the first priority, the management of application program traffic is as follows:

处理器会发送一个提示信息,则为第一提示信息,提示用户当前应用程序流量消耗大,提示用户选择是否需要使用数据网络。用户可以根据实际需要点击是或者否按钮。The processor will send a prompt message, which is the first prompt message, reminding the user that the current application program consumes a lot of traffic, and prompting the user to choose whether to use the data network. The user can click the yes or no button according to actual needs.

当用户点击是按钮时,处理器接收用户的选定操作,并响应此操作,进行数据交换。当用户不需要使用当前应用程序,将当前应用程序关闭时,可能会在后台运行,此时会拦截应用程序的所有数据交换请求。When the user clicks the Yes button, the processor receives the user's selected operation, and in response to this operation, performs data exchange. When the user does not need to use the current application and closes the current application, it may run in the background, and all data exchange requests of the application will be intercepted at this time.

当用户点击否按钮时,处理器接收用户的取消操作,则拦截应用程序的所有数据交换请求。When the user clicks the No button, the processor receives the user's cancel operation, and then intercepts all data exchange requests of the application program.

步骤305-步骤307为当应用程序的优先级为第一优先级时,显示第一提示信息以及显示提示信息后的执行流程。需要说明的是,当应用程序的优先级不同时,显示的提示信息、以及显示提示信息后的具体执行流程不同。Steps 305 to 307 are the execution flow after displaying the first prompt information and displaying the prompt information when the priority of the application program is the first priority. It should be noted that when the priorities of the application programs are different, the displayed prompt information and the specific execution process after the prompt information is displayed are different.

当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应应用程序的数据交换请求。When the application program has the second priority, display a second prompt message prompting the user to use with caution, and respond to the data exchange request of the application program.

当应用程序在后台运行时,拦截应用程序的数据交换请求。When the application is running in the background, intercept the data exchange request of the application.

具体地,当确定当前运行的应用程序优先级为第二优先级时,对应用程序流量的管理如下:Specifically, when it is determined that the priority of the currently running application program is the second priority, the management of the application program traffic is as follows:

处理器会发送一个提示信息,即第二提示信息,提示信息显示预设时间后自动关闭,即第二提示信息以闪现的显示方式进行显示。第二提示信息用于提示用户谨慎使用流量,同样,当应用程序关闭后,处理器拦截应用程序的所有数据交换请求。The processor will send a prompt message, that is, the second prompt message, and the prompt message will be automatically closed after the preset time is displayed, that is, the second prompt message will be displayed in a flashing display manner. The second prompt information is used to remind the user to use the traffic carefully. Similarly, when the application program is closed, the processor intercepts all data exchange requests of the application program.

当应用程序为第三优先级,则响应应用程序的数据交换请求。When the application program has the third priority, it responds to the data exchange request of the application program.

具体地,当确定当前运行的应用程序优先级为第三优先级时,始终允许这类应用程序进行数据网络交换,无论处于前台还是后台。Specifically, when it is determined that the priority of the currently running application program is the third priority, this type of application program is always allowed to perform data network exchange, no matter it is in the foreground or in the background.

本发明实施例提供的一种流量管理方法,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的流量管理方法,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。A traffic management method provided by an embodiment of the present invention detects the traffic in the package of the mobile terminal in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, obtains the application program running in the foreground and the priority of the application program running in the foreground Level, according to the priority of the application, the data exchange status of the application is controlled. It can be seen that through the traffic management method provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to perform cumbersome management operations manually. Therefore, Can improve user experience.

实施例四Embodiment Four

参照图4,示出了本发明实施例四的一种移动终端的结构框图。Referring to FIG. 4 , it shows a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention.

本发明实施例移动终端包括:获取模块401,用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定优先级模块402,用于确定所述前台运行的应用程序对应的优先级;管理模块403,用于依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。The mobile terminal in the embodiment of the present invention includes: an acquiring module 401, configured to acquire an application running in the foreground when it is detected that the remaining flow value is lower than a preset flow value; a priority determining module 402, configured to determine the application running in the foreground The priority corresponding to the program; the management module 403 is configured to control the data exchange state of the application according to the priority of the application.

本发明实施例提供的一种移动终端,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的移动终端,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。A mobile terminal provided by an embodiment of the present invention detects the traffic in the package of the mobile terminal in real time, and obtains the application program running in the foreground and the priority of the application program running in the foreground when it detects that the remaining traffic in the package is lower than the preset traffic value , to control the data exchange state of the application program according to the priority of the application program. It can be seen that, through the mobile terminal provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to manually perform cumbersome management operations. Therefore, it is possible to Improve user experience.

实施例五Embodiment five

参照图5,示出了本发明实施例五的一种移动终端的结构框图。Referring to FIG. 5 , it shows a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention.

本发明实施例移动终端包括:获取模块501,用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定优先级模块502,用于确定所述前台运行的应用程序对应的优先级;管理模块503,用于依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。The mobile terminal in the embodiment of the present invention includes: an acquiring module 501, configured to acquire an application running in the foreground when it is detected that the remaining traffic value is lower than a preset traffic value; a priority determining module 502, configured to determine the application running in the foreground The priority corresponding to the program; the management module 503 is configured to control the data exchange state of the application according to the priority of the application.

优选地,所述移动终端还包括:确定消耗流量值模块504,用于在获取模块在检测到剩余流量值低于预设流量值时,获取前台运行的应用程序之前用于确定各应用程序的消耗流量值;优先级分类模块505,用于依据所述消耗流量值对各所述应用程序进行优先级分类。Preferably, the mobile terminal further includes: a module for determining the consumption flow value 504, which is used to determine the flow rate of each application program before acquiring the application program running in the foreground when the acquisition module detects that the remaining flow value is lower than the preset flow value The consumption flow value; the priority classifying module 505, configured to classify the priority of each of the application programs according to the consumption flow value.

优选地,所述管理模块503包括:第一提示子模块5031,用于当所述应用程序的优先级为第一优先级时,显示第一提示信息为提示用户选择是否继续使用数据网络信息;操作子模块5032,用于若检测到用户的确定操作,则响应所述应用程序的数据交换请求,当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求;第一拦截子模块5033,用于若检测到用户的取消操作时,则拦截所述应用程序的数据交换请求。Preferably, the management module 503 includes: a first prompt sub-module 5031, configured to display a first prompt message to prompt the user to choose whether to continue using the data network information when the priority of the application program is the first priority; The operation sub-module 5032 is configured to respond to the data exchange request of the application program if a certain operation of the user is detected, and intercept the data exchange request of the application program when the application program is running in the background; the first interception sub-module Module 5033, configured to intercept the data exchange request of the application program if the cancel operation of the user is detected.

优选地,所述管理模块503包括:第二提示子模块5034,用于当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应所述应用程序的数据交换请求;第二拦截子模块5035,用于当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求。Preferably, the management module 503 includes: a second prompt sub-module 5034, configured to display a second prompt message prompting the user to use with caution when the application program has the second priority, and respond to the data of the application program Exchange request; the second interception submodule 5035 is configured to intercept the data exchange request of the application program when the application program is running in the background.

优选地,所述管理模块503包括:响应子模块5036,用于当所述应用程序为第三优先级,则响应所述应用程序的数据交换请求。Preferably, the management module 503 includes: a response submodule 5036, configured to respond to the data exchange request of the application program when the application program has the third priority.

优选地,所述确定优先级模块502包括:功能状态检测子模块5021,用于检测所述前台运行的应用程序的功能状态;功能状态优先级确定子模块5022,用于确定所述功能状态对应的优先级;所述管理模块具体用于:依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制。Preferably, the determining priority module 502 includes: a functional state detection submodule 5021, configured to detect the functional state of the application program running in the foreground; a functional state priority determining submodule 5022, configured to determine the corresponding function state priority; the management module is specifically configured to: control the data exchange status of the application program according to the priority corresponding to the functional status of the application program.

优选地,所述管理模块503包括:瞬时流量阈值确定子模块5037,用于确定所述应用程序的功能状态对应的优先级和所述优先级对应的预设瞬时流量阈值,并将所述应用程序在当前功能状态下的瞬时流量值与所述预设瞬时流量阈值进行比较;控制子模块5038,用于根据所述瞬时流量值和所述预设瞬时流量阈值的比较关系,对所述应用程序的数据交换进行控制。Preferably, the management module 503 includes: an instantaneous traffic threshold determination sub-module 5037, configured to determine the priority corresponding to the functional status of the application and the preset instantaneous traffic threshold corresponding to the priority, and set the application The instantaneous flow value of the program in the current functional state is compared with the preset instantaneous flow threshold; the control submodule 5038 is used to control the application according to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold. Program data exchange is controlled.

本发明实施例提供的一种移动终端用于实现前述实施例一、实施例二中相应的流量管理方法,并具有与方法实施例相应的有益效果,在此不再赘述。A mobile terminal provided by an embodiment of the present invention is used to implement the traffic management method corresponding to the foregoing first and second embodiments, and has beneficial effects corresponding to those of the method embodiment, which will not be repeated here.

实施例六Embodiment six

参照图6,示出了本发明实施例六的移动终端的结构框图。Referring to FIG. 6 , it shows a structural block diagram of a mobile terminal according to Embodiment 6 of the present invention.

本发明实施例的移动终端800包括:至少一个处理器801、存储器802、至少一个网络接口804和其他用户接口803。移动终端800中的各个组件通过总线系统805耦合在一起。可理解,总线系统805用于实现这些组件之间的连接通信。总线系统805除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统805。The mobile terminal 800 in this embodiment of the present invention includes: at least one processor 801 , a memory 802 , at least one network interface 804 and other user interfaces 803 . Various components in the mobile terminal 800 are coupled together through a bus system 805 . It can be understood that the bus system 805 is used to realize connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 805 in FIG. 6 for clarity of illustration.

其中,用户接口803可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 803 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.

可以理解,本发明实施例中的存储器802可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本发明实施例描述的系统和方法的存储器802旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 802 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable In addition to programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 802 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器802存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统8021和应用程序8022。In some implementations, the memory 802 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 8021 and an application program 8022 .

其中,操作系统8021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序8022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序8022中。Among them, the operating system 8021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 8022 .

在本发明实施例中,通过调用存储器802存储的程序或指令,具体的,可以是应用程序8022中存储的程序或指令,处理器801用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定所述前台运行的应用程序对应的优先级;依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, the processor 801 is configured to detect that the remaining flow value is lower than the preset flow value Obtaining the application program running in the foreground; determining the priority corresponding to the application program running in the foreground; controlling the data exchange status of the application program according to the priority of the application program.

上述本发明实施例揭示的方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801 . The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 801 or instructions in the form of software. The above-mentioned processor 801 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本发明实施例中所述功能的模块(例如过程、函数等)来实现本发明实施例中所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器801还用于:确定各应用程序的消耗流量值;依据所述消耗流量值对各所述应用程序进行优先级分类。Optionally, the processor 801 is further configured to: determine the consumption flow value of each application program; and classify the priority of each application program according to the consumption flow value.

可选地,处理器801还用于:当所述应用程序为第一优先级时,显示第一提示信息,所述第一提示信息为提示用户选择是否继续使用数据网络的信息;若检测到用户的确定操作,则响应所述应用程序的数据交换请求;当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求;若检测到用户的取消操作,则拦截所述应用程序的数据交换请求。Optionally, the processor 801 is further configured to: when the application program has the first priority, display a first prompt message, the first prompt message is information prompting the user to choose whether to continue using the data network; if it is detected If the user confirms the operation, then respond to the data exchange request of the application program; when the application program is running in the background, intercept the data exchange request of the application program; if the cancel operation of the user is detected, then intercept the application program data exchange requests.

可选地,处理器801还用于:当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应所述应用程序的数据交换请求;当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求。Optionally, the processor 801 is further configured to: when the application program has the second priority, display a second prompt message prompting the user to use it with caution, and respond to the data exchange request of the application program; when the application program When running in the background, intercept the data exchange request of the application program.

可选地,处理器801还用于:当所述应用程序为第三优先级,则响应所述应用程序的数据交换请求。Optionally, the processor 801 is further configured to: respond to a data exchange request of the application program when the application program has the third priority.

可选地,处理器801还用于:检测所述前台运行的应用程序的功能状态;确定所述功能状态对应的优先级;所述依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制的步骤,包括:依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制。Optionally, the processor 801 is further configured to: detect the functional state of the application program running in the foreground; determine the priority corresponding to the functional state; The step of controlling the data exchange state includes: controlling the data exchange state of the application program according to the priority corresponding to the function state of the application program.

可选地,处理器801还用于:确定所述应用程序的功能状态对应的优先级和所述优先级对应的预设瞬时流量阈值,并将所述应用程序在当前功能状态下的瞬时流量值与所述预设瞬时流量阈值进行比较;根据所述瞬时流量值和所述预设瞬时流量阈值的比较关系,对所述应用程序的数据交换进行控制。Optionally, the processor 801 is further configured to: determine the priority corresponding to the functional state of the application and the preset instantaneous traffic threshold corresponding to the priority, and calculate the instantaneous traffic of the application in the current functional state The value is compared with the preset instantaneous flow threshold; according to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold, the data exchange of the application program is controlled.

移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.

通过本发明实施例提供的移动终端,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的移动终端,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。Through the mobile terminal provided by the embodiment of the present invention, the traffic in the package of the mobile terminal is detected in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, the application program running in the foreground and the priority of the application program running in the foreground are acquired, According to the priority of the application program, the data exchange state of the application program is controlled. It can be seen that, through the mobile terminal provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to manually perform cumbersome management operations. Therefore, it is possible to Improve user experience.

实施例七Embodiment seven

参照图7,示出了本发明实施例的移动终端的结构框图。Referring to FIG. 7 , it shows a structural block diagram of a mobile terminal according to an embodiment of the present invention.

本发明实施例中的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图7中的移动终端包括射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、处理器960、音频电路970、WiFi(Wireless Fidelity)模块980和电源990。The mobile terminal in FIG. 7 includes a radio frequency (Radio Frequency, RF) circuit 910 , a memory 920 , an input unit 930 , a display unit 940 , a processor 960 , an audio circuit 970 , a WiFi (Wireless Fidelity) module 980 and a power supply 990 .

其中,输入单元930可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元930可以包括触控面板931。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器960,并能接收处理器960发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 930 can be used to receive number or character information input by the user, and generate signal input related to user setting and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931 . The touch panel 931, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 931 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 931 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 960, and can receive and execute commands sent by the processor 960. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元940可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元940可包括显示面板941,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。Wherein, the display unit 940 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板931可以覆盖显示面板941,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器960以确定触摸事件的类型,随后处理器960根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 931 can cover the display panel 941 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 960 to determine the type of the touch event, and then the processor The 960 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器960是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器921内的软件程序和/或模块,以及调用存储在第二存储器922内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器960可包括一个或多个处理单元。Wherein the processor 960 is the control center of the mobile terminal, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 921, and calling the software programs and/or modules stored in the second memory The data in 922 executes various functions of the mobile terminal and processes data, so as to monitor the mobile terminal as a whole. Optionally, the processor 960 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器921内的软件程序和/或模块和/或该第二存储器922内的数据,处理器960用于:用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;确定所述前台运行的应用程序对应的优先级;依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 921 and/or the data in the second memory 922, the processor 960 is used for: when detecting that the remaining flow value is low When the traffic value is preset, the application program running in the foreground is obtained; the priority corresponding to the application program running in the foreground is determined; and the data exchange state of the application program is controlled according to the priority of the application program.

可选地,处理器906还用于:确定各应用程序的消耗流量值;依据所述消耗流量值对各所述应用程序进行优先级分类。Optionally, the processor 906 is further configured to: determine the consumption flow value of each application program; and classify the priority of each application program according to the consumption flow value.

可选地,处理器906还用于:当所述应用程序为第一优先级时,显示第一提示信息,所述第一提示信息为提示用户选择是否继续使用数据网络的信息;若检测到用户的确定操作,则响应所述应用程序的数据交换请求;当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求;若检测到用户的取消操作,则拦截所述应用程序的数据交换请求。Optionally, the processor 906 is further configured to: when the application program has the first priority, display a first prompt message, the first prompt message is information prompting the user to choose whether to continue using the data network; If the user confirms the operation, then respond to the data exchange request of the application program; when the application program is running in the background, intercept the data exchange request of the application program; if the cancel operation of the user is detected, then intercept the application program data exchange requests.

可选地,处理器906还用于:当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应所述应用程序的数据交换请求;当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求。Optionally, the processor 906 is further configured to: when the application program has the second priority, display a second prompt message prompting the user to use it with caution, and respond to the data exchange request of the application program; when the application program When running in the background, intercept the data exchange request of the application program.

可选地,处理器906还用于:当所述应用程序为第三优先级,则响应所述应用程序的数据交换请求。Optionally, the processor 906 is further configured to: respond to a data exchange request of the application program when the application program has the third priority.

可选地,处理器906还用于:检测所述前台运行的应用程序的功能状态;确定所述功能状态对应的优先级;所述依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制的步骤,包括:依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制。Optionally, the processor 906 is further configured to: detect the functional state of the application running in the foreground; determine the priority corresponding to the functional state; The step of controlling the data exchange state includes: controlling the data exchange state of the application program according to the priority corresponding to the function state of the application program.

可选地,处理器906还用于:确定所述应用程序的功能状态对应的优先级和所述优先级对应的预设瞬时流量阈值,并将所述应用程序在当前功能状态下的瞬时流量值与所述预设瞬时流量阈值进行比较;根据所述瞬时流量值和所述预设瞬时流量阈值的比较关系,对所述应用程序的数据交换进行控制。Optionally, the processor 906 is further configured to: determine the priority corresponding to the functional state of the application and the preset instantaneous traffic threshold corresponding to the priority, and calculate the instantaneous traffic of the application in the current functional state The value is compared with the preset instantaneous flow threshold; according to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold, the data exchange of the application program is controlled.

通过本发明实施例提供的移动终端,对移动终端套餐内的流量实时检测,当检测到套餐剩余流量低于预设流量值时,获取前台运行的应用程序以及前台运行的应用程序的优先级,依据应用程序的优先级,对应用程序的数据交换状态进行控制。可见,通过本发明实施例提供的移动终端,将移动终端内的应用程序进行优先级分类,智能的对流量合理进行管理,防止超出套餐流量,而无需用户手动执行繁琐的管理操作,因此,能够提升用户的使用体验。Through the mobile terminal provided by the embodiment of the present invention, the traffic in the package of the mobile terminal is detected in real time, and when it is detected that the remaining traffic of the package is lower than the preset traffic value, the application program running in the foreground and the priority of the application program running in the foreground are acquired, According to the priority of the application program, the data exchange state of the application program is controlled. It can be seen that, through the mobile terminal provided by the embodiment of the present invention, the application programs in the mobile terminal are prioritized, and the traffic is intelligently and reasonably managed to prevent the traffic from exceeding the package without requiring the user to manually perform cumbersome management operations. Therefore, it is possible to Improve user experience.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

在此提供的应用程序搜索方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本发明方案的系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The application search scheme provided herein is not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct a system having the solution of the present invention is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的中央处理器控制方案中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the central processor control scheme according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

以上对本发明所提供的一种流量管理方法及移动终端,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A flow management method and a mobile terminal provided by the present invention have been introduced above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as Limitations on the Invention.

Claims (14)

1.一种流量管理方法,应用于移动终端,其特征在于,所述方法包括:1. A traffic management method applied to a mobile terminal, characterized in that the method comprises: 当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;When it is detected that the remaining flow value is lower than the preset flow value, obtain the application running in the foreground; 确定所述前台运行的应用程序对应的优先级;determining the priority corresponding to the application running in the foreground; 依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。According to the priority of the application program, the data exchange state of the application program is controlled. 2.根据权利要求1所述的流量管理方法,其特征在于,在所述当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序的步骤之前,所述方法还包括:2. The flow management method according to claim 1, characterized in that, before the step of obtaining the application program running in the foreground when it is detected that the remaining flow value is lower than the preset flow value, the method further comprises: 确定各应用程序的消耗流量值;Determine the consumption flow value of each application; 依据所述消耗流量值对各所述应用程序进行优先级分类。Perform priority classification for each of the application programs according to the consumption flow value. 3.根据权利要求1所述的流量管理方法,其特征在于,所述依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制的步骤包括:3. The traffic management method according to claim 1, wherein the step of controlling the data exchange state of the application program according to the priority of the application program comprises: 当所述应用程序为第一优先级时,显示第一提示信息,所述第一提示信息为提示用户选择是否继续使用数据网络的信息;When the application program has the first priority, displaying first prompt information, the first prompt information is information prompting the user to choose whether to continue using the data network; 若检测到用户的确定操作,则响应所述应用程序的数据交换请求;当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求;If a certain operation by the user is detected, then respond to the data exchange request of the application program; when the application program is running in the background, intercept the data exchange request of the application program; 若检测到用户的取消操作,则拦截所述应用程序的数据交换请求。If the cancel operation of the user is detected, the data exchange request of the application program is intercepted. 4.根据权利要求1所述的流量管理方法,其特征在于,所述依据所述应用程序的优先级,对所述应用程序的数据交换进行控制的步骤包括:4. The traffic management method according to claim 1, wherein the step of controlling the data exchange of the application program according to the priority of the application program comprises: 当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应所述应用程序的数据交换请求;When the application program has the second priority, displaying a second prompt message prompting the user to use it with caution, and responding to the data exchange request of the application program; 当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求。When the application program is running in the background, the data exchange request of the application program is intercepted. 5.根据权利要求1所述的流量管理方法,其特征在于,所述依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制的步骤包括:5. The traffic management method according to claim 1, wherein the step of controlling the data exchange state of the application program according to the priority of the application program comprises: 当所述应用程序为第三优先级,则响应所述应用程序的数据交换请求。When the application program has the third priority, respond to the data exchange request of the application program. 6.根据权利要求1所述的流量管理方法,其特征在于,所述确定所述前台运行的应用程序对应的优先级的步骤,包括:6. The traffic management method according to claim 1, wherein the step of determining the priority corresponding to the application running in the foreground comprises: 检测所述前台运行的应用程序的功能状态;Detecting the functional state of the application program running in the foreground; 确定所述功能状态对应的优先级;determining the priority corresponding to the functional state; 所述依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制的步骤,包括:The step of controlling the data exchange state of the application program according to the priority of the application program includes: 依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制。The data exchange state of the application program is controlled according to the priority corresponding to the function state of the application program. 7.根据权利要求6所述的流量管理方法,其特征在于,所述依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制的步骤包括:7. The traffic management method according to claim 6, wherein the step of controlling the data exchange status of the application program according to the priority corresponding to the functional status of the application program comprises: 确定所述应用程序的功能状态对应的优先级和所述优先级对应的预设瞬时流量阈值,并将所述应用程序在当前功能状态下的瞬时流量值与所述预设瞬时流量阈值进行比较;determining the priority corresponding to the functional state of the application and the preset instantaneous flow threshold corresponding to the priority, and comparing the instantaneous flow value of the application in the current functional state with the preset instantaneous flow threshold ; 根据所述瞬时流量值和所述预设瞬时流量阈值的比较关系,对所述应用程序的数据交换进行控制。According to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold, the data exchange of the application program is controlled. 8.一种移动终端,其特征在于,所述移动终端包括:8. A mobile terminal, characterized in that the mobile terminal comprises: 获取模块,用于当检测到剩余流量值低于预设流量值时,获取前台运行的应用程序;The acquisition module is used to obtain the application program running in the foreground when it is detected that the remaining flow value is lower than the preset flow value; 确定优先级模块,用于确定所述前台运行的应用程序对应的优先级;determining a priority module, configured to determine the priority corresponding to the application running in the foreground; 管理模块,用于依据所述应用程序的优先级,对所述应用程序的数据交换状态进行控制。The management module is used to control the data exchange state of the application program according to the priority of the application program. 9.根据权利要求8所述的移动终端,其特征在于,所述移动终端还包括:9. The mobile terminal according to claim 8, wherein the mobile terminal further comprises: 确定消耗流量值模块,用于在所述获取模块在检测到剩余流量值低于预设流量值时,获取前台运行的应用程序之前,确定各应用程序的消耗流量值;The module for determining the consumption flow value is used to determine the consumption flow value of each application program before the acquisition module detects that the remaining flow value is lower than the preset flow value and obtains the application program running in the foreground; 优先级分类模块,用于依据所述消耗流量值对各所述应用程序进行优先级分类。A priority classifying module, configured to classify each of the application programs according to the priority of the consumed traffic value. 10.根据权利要求8所述的移动终端,其特征在于,所述管理模块包括:10. The mobile terminal according to claim 8, wherein the management module comprises: 第一提示子模块,用于当所述应用程序的优先级为第一优先级时,显示第一提示信息为提示用户选择是否继续使用数据网络信息;The first prompt submodule is used to display the first prompt information to prompt the user to select whether to continue using the data network information when the priority of the application program is the first priority; 操作子模块,用于若检测到用户的确定操作,则响应所述应用程序的数据交换请求,当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求;The operation sub-module is used to respond to the data exchange request of the application program if a certain operation of the user is detected, and intercept the data exchange request of the application program when the application program is running in the background; 第一拦截子模块,用于若检测到用户的取消操作时,则拦截所述应用程序的数据交换请求。The first intercepting sub-module is configured to intercept the data exchange request of the application program if the cancel operation of the user is detected. 11.根据权利要求8所述的移动终端,其特征在于,所述管理模块包括:11. The mobile terminal according to claim 8, wherein the management module comprises: 第二提示子模块,用于当所述应用程序为第二优先级时,显示提示用户谨慎使用的第二提示信息,并响应所述应用程序的数据交换请求;The second prompting submodule is configured to display a second prompting message prompting the user to use with caution when the application program is of the second priority, and respond to the data exchange request of the application program; 第二拦截子模块,用于当所述应用程序在后台运行时,拦截所述应用程序的数据交换请求。The second interception submodule is used for intercepting the data exchange request of the application program when the application program is running in the background. 12.根据权利要求8所述的移动终端,其特征在于,所述管理模块包括:12. The mobile terminal according to claim 8, wherein the management module comprises: 响应子模块,用于当所述应用程序为第三优先级,则响应所述应用程序的数据交换请求。The response submodule is configured to respond to the data exchange request of the application program when the application program has the third priority. 13.根据权利要求8所述的移动终端,其特征在于,所述确定优先级模块包括:13. The mobile terminal according to claim 8, wherein the determining priority module comprises: 功能状态检测子模块,用于检测所述前台运行的应用程序的功能状态;A functional state detection submodule, configured to detect the functional state of the application running in the foreground; 功能状态优先级确定子模块,用于确定所述功能状态对应的优先级;A functional state priority determination submodule, configured to determine the priority corresponding to the functional state; 所述管理模块具体用于:依据所述应用程序的功能状态对应的优先级,对所述应用程序的数据交换状态进行控制。The management module is specifically configured to: control the data exchange state of the application program according to the priority corresponding to the function state of the application program. 14.根据权利要求13所述的移动终端,管理模块包括:14. The mobile terminal according to claim 13, the management module comprising: 瞬时流量阈值确定子模块,用于确定所述应用程序的功能状态对应的优先级和所述优先级对应的预设瞬时流量阈值,并将所述应用程序在当前功能状态下的瞬时流量值与所述预设瞬时流量阈值进行比较;The instantaneous flow threshold determination submodule is used to determine the priority corresponding to the functional state of the application program and the preset instantaneous flow threshold value corresponding to the priority, and compare the instantaneous flow value of the application program in the current functional state with the The preset instantaneous flow threshold is compared; 控制子模块,用于根据所述瞬时流量值和所述预设瞬时流量阈值的比较关系,对所述应用程序的数据交换进行控制。The control submodule is configured to control the data exchange of the application program according to the comparison relationship between the instantaneous flow value and the preset instantaneous flow threshold.
CN201610933089.6A 2016-10-31 2016-10-31 A kind of flow managing method and mobile terminal Pending CN106506401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610933089.6A CN106506401A (en) 2016-10-31 2016-10-31 A kind of flow managing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610933089.6A CN106506401A (en) 2016-10-31 2016-10-31 A kind of flow managing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN106506401A true CN106506401A (en) 2017-03-15

Family

ID=58319802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610933089.6A Pending CN106506401A (en) 2016-10-31 2016-10-31 A kind of flow managing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106506401A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982167A (en) * 2017-04-19 2017-07-25 深圳金三立视频科技股份有限公司 Flow managing method and its system
CN107634940A (en) * 2017-08-30 2018-01-26 努比亚技术有限公司 Control method, terminal, server and the readable storage medium storing program for executing that a kind of flow uses
CN107846693A (en) * 2017-10-30 2018-03-27 努比亚技术有限公司 A kind of control method of data traffic, device and computer-readable recording medium
CN107846667A (en) * 2017-10-30 2018-03-27 努比亚技术有限公司 A kind of data flux management method, terminal and computer-readable recording medium
CN108307337A (en) * 2017-08-22 2018-07-20 深圳市爱培科技术股份有限公司 Flux monitoring method, system and the storage device of vehicle mounted guidance terminal
CN108768870A (en) * 2018-05-04 2018-11-06 Oppo广东移动通信有限公司 Flow control method, device and mobile terminal
WO2018223375A1 (en) * 2017-06-09 2018-12-13 深圳市伊特利网络科技有限公司 Controlling and reminding method and system for terminal traffic
CN110139305A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 The monitoring method and device of flow service condition, storage medium
CN110266613A (en) * 2019-07-09 2019-09-20 深圳传音控股股份有限公司 Application flow management method and terminal
CN111817980A (en) * 2020-06-30 2020-10-23 深圳市高德信通信股份有限公司 Network flow distribution management system based on Internet
CN112398751A (en) * 2020-10-12 2021-02-23 联通智网科技有限公司 Flow speed control method and device, computer equipment and storage medium
CN112732356A (en) * 2021-01-11 2021-04-30 江西中瑞防雷技术有限公司 Data monitoring management system of intelligent platform system
CN115278648A (en) * 2021-09-14 2022-11-01 中国联合网络通信集团有限公司 Service bearer switching method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248756A (en) * 2013-03-28 2013-08-14 广东欧珀移动通信有限公司 Method for switching internet browsing modes according to surplus flow of mobile phone
CN103354513A (en) * 2013-07-16 2013-10-16 上海斐讯数据通信技术有限公司 Flow monitoring method and mobile terminal
CN103402243A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Method and device for adjusting data updating frequency applied to mobile terminal
CN104065822A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Standby flow control method and standby flow control device
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248756A (en) * 2013-03-28 2013-08-14 广东欧珀移动通信有限公司 Method for switching internet browsing modes according to surplus flow of mobile phone
CN103354513A (en) * 2013-07-16 2013-10-16 上海斐讯数据通信技术有限公司 Flow monitoring method and mobile terminal
CN103402243A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Method and device for adjusting data updating frequency applied to mobile terminal
CN104065822A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Standby flow control method and standby flow control device
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982167A (en) * 2017-04-19 2017-07-25 深圳金三立视频科技股份有限公司 Flow managing method and its system
WO2018223375A1 (en) * 2017-06-09 2018-12-13 深圳市伊特利网络科技有限公司 Controlling and reminding method and system for terminal traffic
CN108307337A (en) * 2017-08-22 2018-07-20 深圳市爱培科技术股份有限公司 Flux monitoring method, system and the storage device of vehicle mounted guidance terminal
CN107634940A (en) * 2017-08-30 2018-01-26 努比亚技术有限公司 Control method, terminal, server and the readable storage medium storing program for executing that a kind of flow uses
CN107846667A (en) * 2017-10-30 2018-03-27 努比亚技术有限公司 A kind of data flux management method, terminal and computer-readable recording medium
CN107846693A (en) * 2017-10-30 2018-03-27 努比亚技术有限公司 A kind of control method of data traffic, device and computer-readable recording medium
CN110139305A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 The monitoring method and device of flow service condition, storage medium
CN110139305B (en) * 2018-02-08 2022-02-25 中兴通讯股份有限公司 Method and device for monitoring traffic use condition and storage medium
CN108768870A (en) * 2018-05-04 2018-11-06 Oppo广东移动通信有限公司 Flow control method, device and mobile terminal
CN110266613A (en) * 2019-07-09 2019-09-20 深圳传音控股股份有限公司 Application flow management method and terminal
CN111817980A (en) * 2020-06-30 2020-10-23 深圳市高德信通信股份有限公司 Network flow distribution management system based on Internet
CN112398751A (en) * 2020-10-12 2021-02-23 联通智网科技有限公司 Flow speed control method and device, computer equipment and storage medium
CN112732356A (en) * 2021-01-11 2021-04-30 江西中瑞防雷技术有限公司 Data monitoring management system of intelligent platform system
CN115278648A (en) * 2021-09-14 2022-11-01 中国联合网络通信集团有限公司 Service bearer switching method and device
CN115278648B (en) * 2021-09-14 2024-03-29 中国联合网络通信集团有限公司 Service carrier switching method and device

Similar Documents

Publication Publication Date Title
CN106506401A (en) A kind of flow managing method and mobile terminal
CN108549513B (en) Application display method, device, storage medium and electronic device
AU2023203591A1 (en) Display method and apparatus
CN109426428B (en) Method for providing operation guidance information of terminal and terminal equipment
US20200042171A1 (en) Screen-split display method and mobile terminal
CN106304276B (en) A kind of wireless network processing method and mobile terminal
CN107256129A (en) Method and device for switching applications in split-screen mode and related equipment
CN104978267B (en) webpage test method, terminal and server
CN106528160B (en) Method and terminal for adding application icon
CN106708367A (en) Display method of conversation interface and mobile terminal
CN107193451B (en) Information display method, apparatus, computer equipment, and computer-readable storage medium
CN107566616A (en) A kind of display methods of information, terminal and computer-readable recording medium
CN106484262A (en) Method, device and terminal for generating a clone application
US10311254B2 (en) Electronic apparatus and information access control method thereof
CN107648844A (en) A kind of game mode method to set up and mobile terminal
US20190205367A1 (en) Method and Apparatus for Obtaining Web Content
CN106326073B (en) The method and mobile terminal of information processing
CN106250014A (en) Application recommended method and device
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106886409A (en) A kind of method for information display and mobile terminal
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
CN106455018A (en) Video call processing method and mobile terminal
US9380438B2 (en) Method and device for forwarding an incoming call according to a remaining battery capacity
CN107908527B (en) Application icon display method and device
CN111694626A (en) Application skipping method and device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315

RJ01 Rejection of invention patent application after publication