CN106792878B - Method and device for monitoring data flow - Google Patents
Method and device for monitoring data flow Download PDFInfo
- Publication number
- CN106792878B CN106792878B CN201611227669.XA CN201611227669A CN106792878B CN 106792878 B CN106792878 B CN 106792878B CN 201611227669 A CN201611227669 A CN 201611227669A CN 106792878 B CN106792878 B CN 106792878B
- Authority
- CN
- China
- Prior art keywords
- icon
- application program
- data traffic
- mobile network
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及领域电子技术领域,尤其涉及一种数据流量监控方法及装置。The present invention relates to the field of electronic technology, and in particular, to a data flow monitoring method and device.
背景技术Background technique
随着智能移动终端的发展和移动互联网的高速成长,带有触摸屏的移动终端的使用越来越广泛,已经成为人们生活不可缺少的一部分。移动终端的应用功能越来越丰富,从原来的打电话发短信,发展到可以安装各种应用程序,例如浏览资讯、新闻,播放视频、看小说、社交、收发电子邮件,玩游戏,移动办公、购物等。而在蜂窝移动网络环境下,应用程序对于数据流量的消耗是用户关注的重要方面。With the development of intelligent mobile terminals and the rapid growth of mobile Internet, mobile terminals with touch screens are used more and more widely, and have become an indispensable part of people's lives. The application functions of mobile terminals are becoming more and more abundant. From the original call and text messages, various applications can be installed, such as browsing information, news, playing videos, reading novels, socializing, sending and receiving emails, playing games, and mobile office. , shopping, etc. In the cellular mobile network environment, the consumption of data traffic by an application is an important aspect that users pay attention to.
而目前的智能移动终端中,对数据流量监控的方法大致分两种做法,一种是设置总的数据流量可用量。当达到该数据流量可用量,移动终端自动与蜂窝移动网络断开连接,进而实现数据流量的控制。此种方式虽然简单,但是用户无需获取单个应用程序的数据流量消耗情况,且导致用户所有联网应用都不能使用,因此,致使某些用户不想用的应用程序却在消耗流量,因此用户的使用体验非常差。另外一种控制方式,就是进入设置界面后,需要经过多次操作,才能获知在当月所有应用程序的流量消耗情况以及控制相应的应用联网功能。该种情况,由于设置的交互层级太多,用户无法尽快获知流量消耗情况,操作起来并不是特别简洁方便。In the current intelligent mobile terminal, there are roughly two methods for monitoring data traffic. One is to set the total available data traffic. When the available amount of data flow is reached, the mobile terminal is automatically disconnected from the cellular mobile network, thereby realizing data flow control. Although this method is simple, the user does not need to obtain the data traffic consumption of a single application, and all the connected applications of the user cannot be used. Therefore, some applications that the user does not want to use are consuming traffic, so the user experience very bad. Another control method is that after entering the setting interface, you need to go through multiple operations to know the traffic consumption of all applications in the month and control the corresponding application networking functions. In this case, because there are too many interactive levels set, the user cannot know the traffic consumption as soon as possible, and the operation is not particularly simple and convenient.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提出一种数据流量监控方法及装置,旨在解决现有技术中在对应用程序的数据流流量进行查询和控制时,操作繁琐并且耗时的问题。The main purpose of the present invention is to provide a data flow monitoring method and device, which aims to solve the problem of complicated and time-consuming operation when querying and controlling the data flow flow of an application program in the prior art.
为实现上述发明目的,本发明采用下述的技术方案:In order to realize the above-mentioned purpose of the invention, the present invention adopts the following technical scheme:
依据本发明的一个方面,提供一种数据流量监控方法,包括:According to one aspect of the present invention, a data flow monitoring method is provided, comprising:
预先配置允许接入蜂窝移动网络的应用程序;Pre-configured applications that allow access to cellular mobile networks;
在蜂窝移动网络下,对所述应用程序的数据流量消耗量进行统计,并将所述数据流量消耗量显示在所述应用程序的图标中;Under the cellular mobile network, collect statistics on the data traffic consumption of the application, and display the data traffic consumption in the icon of the application;
在所述应用程序的图标处检测是否有预设操作,并当检测到所述预设操作时,获取控制所述应用程序使用蜂窝移动网络的开关。It is detected whether there is a preset operation at the icon of the application program, and when the preset operation is detected, a switch for controlling the application program to use the cellular mobile network is acquired.
可选的,在将所述数据流量消耗量显示在所述应用程序的图标中时,具体包括:预先设置数据流量消耗与显示颜色的映射关系;Optionally, when displaying the data traffic consumption in the icon of the application program, it specifically includes: pre-setting a mapping relationship between data traffic consumption and display color;
根据所述映射关系获取所述数据流量消耗量所对应的显示颜色;Obtain the display color corresponding to the data traffic consumption according to the mapping relationship;
将所述显示颜色填充在所述应用程序图标周围预设的环绕显示区域中。The display color is filled in a preset surrounding display area around the application icon.
可选的,在将所述数据流量消耗量显示在所述应用程序的图标中时,具体包括:Optionally, when the data traffic consumption is displayed in the icon of the application, it specifically includes:
预设数据流量消耗量与图标大小的映射关系;The mapping relationship between preset data traffic consumption and icon size;
根据所述映射关系获取所述数据流量消耗量所对应的图标的大小,并将相应大小的图标进行显示。The size of the icon corresponding to the data traffic consumption is acquired according to the mapping relationship, and the icon of the corresponding size is displayed.
可选的,在将相应大小的图标进行显示时,具体包括:Optionally, when displaying an icon of a corresponding size, it specifically includes:
获取所述允许接入蜂窝移动网络的所有应用程序的图标大小;Obtain the icon size of all applications that are allowed to access the cellular mobile network;
根据图标大小顺序将所述所有应用程序的图标进行显示。The icons of all the applications are displayed according to the size of the icons.
可选的,在所述应用程序的图标处检测是否有预设操作,并当检测到所述预设操作时,获取控制所述应用程序使用蜂窝移动网络的开关,具体包括:Optionally, detecting whether there is a preset operation at the icon of the application program, and when the preset operation is detected, acquiring a switch for controlling the application program to use the cellular mobile network, specifically including:
当触控屏为压感式触控屏时,在所述图标处检测触控压力值是否达到预设压力阈值时,并达到所述预设压力阈值后,获取控制所述应用程序使用蜂窝移动网络的开关;或者,When the touch screen is a pressure-sensitive touch screen, it is detected at the icon whether the touch pressure value reaches a preset pressure threshold, and after the preset pressure threshold is reached, obtain and control the application to use cellular movement network switch; or,
当触控屏为非压感式触控屏时,在所述图标处检测触控时间是否达到预设时间阈值时,并达到所述预设时间阈值后,获取控制所述应用程序使用蜂窝移动网络的开关。When the touch screen is a non-pressure-sensitive touch screen, when it is detected at the icon whether the touch time reaches a preset time threshold, and after the preset time threshold is reached, obtain control of the application to use cellular movement network switch.
依据本发明的又一个方面,提供一种数据流量监控装置,包括:According to yet another aspect of the present invention, a data flow monitoring device is provided, comprising:
设置单元,用于预先配置允许接入蜂窝移动网络的应用程序;a setting unit for preconfiguring an application program that allows access to the cellular mobile network;
显示单元,用于在蜂窝移动网络下,对所述应用程序的数据流量消耗量进行统计,并将所述数据流量消耗量显示在所述应用程序的图标中;a display unit, configured to collect statistics on the data traffic consumption of the application under the cellular mobile network, and display the data traffic consumption in the icon of the application;
控制单元,用于在所述应用程序的图标处检测是否有预设操作,当检测到所述预设操作时,对所述应用程序的蜂窝移动网络的使用情况进行控制处理。The control unit is configured to detect whether there is a preset operation at the icon of the application program, and when the preset operation is detected, perform control processing on the usage of the cellular mobile network of the application program.
可选的,所述设置单元,还用于预先设置数据流量消耗与显示颜色的映射关系;Optionally, the setting unit is further configured to preset a mapping relationship between data flow consumption and display color;
所述显示单元,具体用于根据所述映射关系获取所述数据流量消耗量所对应的显示颜色;The display unit is specifically configured to obtain a display color corresponding to the data traffic consumption according to the mapping relationship;
将所述显示颜色填充在所述应用程序图标周围预设的环绕显示区域中。The display color is filled in a preset surrounding display area around the application icon.
可选的,所述设置单元,还用于预设数据流量消耗量与图标大小的映射关系;Optionally, the setting unit is further configured to preset the mapping relationship between the data traffic consumption and the icon size;
所述显示单元,具体用于根据所述映射关系获取所述数据流量消耗量所对应的图标的大小,并将相应大小的图标进行显示。The display unit is specifically configured to acquire the size of the icon corresponding to the data traffic consumption according to the mapping relationship, and display the icon of the corresponding size.
可选的,所述显示单元,具体用于:Optionally, the display unit is specifically used for:
获取所述允许接入蜂窝移动网络的所有应用程序的图标大小;Obtain the icon size of all applications that are allowed to access the cellular mobile network;
根据图标大小顺序将所述所有应用程序的图标进行显示。The icons of all the applications are displayed according to the size of the icons.
可选的,所述控制单元,具体用于:Optionally, the control unit is specifically used for:
当触控屏为压感式触控屏时,在所述图标处检测触控压力值是否达到预设压力阈值时,并达到所述预设压力阈值后,获取控制所述应用程序使用蜂窝移动网络的开关;或者,When the touch screen is a pressure-sensitive touch screen, it is detected at the icon whether the touch pressure value reaches a preset pressure threshold, and after the preset pressure threshold is reached, obtain and control the application to use cellular movement network switch; or,
当触控屏为非压感式触控屏时,在所述图标处检测触控时间是否达到预设时间阈值时,并达到所述预设时间阈值后,获取控制所述应用程序使用蜂窝移动网络的开关。When the touch screen is a non-pressure-sensitive touch screen, when it is detected at the icon whether the touch time reaches a preset time threshold, and after the preset time threshold is reached, obtain control of the application to use cellular movement network switch.
本发明所提出的数据流量监控方法及装置,通过将应用程序所使用的数据流量情况在图标中进行显示,使得用户可以非常直观的了解自己的移动终端上每个应用程序的数据流量消耗情况,还可以直接通过应用程序的图标对该应用程序蜂窝移动网络的连接情况进行控制。可知,本发明不需要进行繁琐的设置界面找到应用程序的联网开关在对联网情况进行控制,有效减少用户的操作,提升用户对于该移动终端的使用体验。The data flow monitoring method and device provided by the present invention, by displaying the data flow status used by the application program in the icon, enables the user to understand the data flow consumption status of each application program on his mobile terminal very intuitively, You can also control the application's cellular network connection directly through the application's icon. It can be seen that the present invention does not require the complicated setting interface to find the networking switch of the application program to control the networking situation, which effectively reduces the user's operation and improves the user's experience of using the mobile terminal.
附图说明Description of drawings
图1为实现本发明各个实施例一可选的移动终端的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
图2为如图1所示的移动终端的无线通信系统示意图;Fig. 2 is the wireless communication system schematic diagram of the mobile terminal as shown in Fig. 1;
图3为本发明一实施例中数据流量监控方法的流程图;3 is a flowchart of a data flow monitoring method in an embodiment of the present invention;
图4a和图4b为本发明不同实施例中应用程序图标显示方式的示意图;4a and 4b are schematic diagrams of display modes of application icons in different embodiments of the present invention;
图5为本发明一实施例中数据流量监控装置的结构框图。FIG. 5 is a structural block diagram of a data flow monitoring apparatus according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present invention, and have no specific meaning per se. Therefore, "module" and "part" can be mixed.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Computer), a PMP (Portable Multimedia Player), a navigation device, and the like mobile terminals as well as stationary terminals such as digital TVs, desktop computers, etc. Below, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will understand that the configuration according to the embodiments of the present invention can also be applied to stationary type terminals, in addition to elements especially for mobile purposes.
图1为实现本发明各个实施例一可选的移动终端的硬件结构示意图。FIG. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
移动终端100可以包括用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。The
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括广播接收模块111、移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。The
广播接收模块111经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播信道可以包括卫星信道和/或地面信道。广播管理服务器可以是生成并发送广播信号和/或广播相关信息的服务器或者接收之前生成的广播信号和/或广播相关信息并且将其发送给终端的服务器。广播信号可以包括TV广播信号、无线电广播信号、数据广播信号等等。而且,广播信号可以进一步包括与TV或无线电广播信号组合的广播信号。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以由移动通信模块112来接收。广播信号可以以各种形式存在,例如,其可以以数字多媒体广播(DMB)的电子节目指南(EPG)、数字视频广播手持(DVB-H)的电子服务指南(ESG)等等的形式而存在。广播接收模块111可以通过使用各种类型的广播系统接收信号广播。特别地,广播接收模块111可以通过使用诸如多媒体广播-地面(DMB-T)、数字多媒体广播-卫星(DMB-S)、数字视频广播-手持(DVB-H),前向链路媒体(MediaFLO@)的数据广播系统、地面数字广播综合服务(ISDB-T)等等的数字广播系统接收数字广播。广播接收模块111可以被构造为适合提供广播信号的各种广播系统以及上述数字广播系统。经由广播接收模块111接收的广播信号和/或广播相关信息可以存储在存储器160(或者其它类型的存储介质)中。The
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。The short-
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块的典型示例是GPS(全球定位系统)。根据当前的技术,GPS模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块115能够通过实时地连续计算当前位置信息来计算速度信息。The
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。The
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。The
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、音频输出模块152、警报单元153等等。In addition, when the
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。The
警报单元153可以提供输出以将事件的发生通知给移动终端100。典型的事件可以包括呼叫接收、消息接收、键信号输入、触摸输入等等。除了音频或视频输出之外,警报单元153可以以不同的方式提供输出以通知事件的发生。例如,警报单元153可以以振动的形式提供输出,当接收到呼叫、消息或一些其它进入通信(incomingcommunication)时,警报单元153可以提供触觉输出(即,振动)以将其通知给用户。通过提供这样的触觉输出,即使在用户的移动电话处于用户的口袋中时,用户也能够识别出各种事件的发生。警报单元153也可以经由显示单元151或音频输出模块152提供通知事件的发生的输出。The
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The
存储器160可以包括至少一种类型的存储介质,存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。The
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in computer-readable media using, for example, computer software, hardware, or any combination thereof. For hardware implementation, the embodiments described herein can be implemented using application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( FPGA), processors, controllers, microcontrollers, microprocessors, electronic units designed to perform the functions described herein are implemented, in some cases such implementations may be implemented in the
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its functions. Hereinafter, for the sake of brevity, a slide-type mobile terminal among various types of mobile terminals such as a folder-type, bar-type, swing-type, slide-type mobile terminal and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide-type mobile terminal.
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。A communication system in which a mobile terminal according to the present invention can operate will now be described with reference to FIG. 2 .
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。Such communication systems may use different air interfaces and/or physical layers. For example, air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE) ), Global System for Mobile Communications (GSM), etc. As a non-limiting example, the following description refers to a CDMA communication system, but such teachings are equally applicable to other types of systems.
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC2750。2 , a CDMA wireless communication system may include a plurality of
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。The intersection of partitions and frequency assignments may be referred to as CDMA channels.
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。As shown in FIG. 2, a broadcast transmitter (BT) 295 transmits broadcast signals to
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。In Figure 2, a number of
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。As a typical operation of a wireless communication system, the
基于上述移动终端硬件结构,提出本发明移动终端和方法各个实施例。Based on the above-mentioned mobile terminal hardware structure, various embodiments of the mobile terminal and method of the present invention are proposed.
本发明一实施例所提供的数据流量监控方法,如图3所示,特别适合应用于上述的移动终端,该方法包括以下具体步骤:The data flow monitoring method provided by an embodiment of the present invention, as shown in FIG. 3 , is particularly suitable for application to the above-mentioned mobile terminal, and the method includes the following specific steps:
步骤301,预先配置允许接入蜂窝移动网络的应用程序。Step 301, preconfigure an application program that allows access to the cellular mobile network.
在该步骤中,用户可以通过设置界面中对移动终端中应用程序的联网方式进行成批设置,也可以在应用程序安装后,在应用程序图标处检测是否有预设操作,对单个应用程序的联网方式进行设置。这里,对于配置的方式不做特定的限定。In this step, the user can set the networking mode of the applications in the mobile terminal in batches through the setting interface, or can detect whether there is a preset operation at the icon of the application after the application is installed. Set up via internet. Here, there is no specific limitation on the configuration method.
步骤302,在蜂窝移动网络下,对应用程序的数据流量消耗量进行统计,并将数据流量消耗量显示在应用程序的图标中。Step 302 , under the cellular mobile network, collect statistics on the data traffic consumption of the application, and display the data traffic consumption in the icon of the application.
在该步骤中,当移动终端的网络为蜂窝移动网络时,获取应用程序消耗的数据流量。这里的数据流量可以为获取当前时刻相对于用户某一自定义时刻的数据流量消耗量,即从用户设定的时刻开始对应用程序的数据流量消耗量进行实时统计,当然也可以为当月的数据流量消耗量。In this step, when the network of the mobile terminal is a cellular mobile network, the data traffic consumed by the application is acquired. The data traffic here can be the data traffic consumption of the current moment relative to a user-defined moment, that is, the real-time statistics of the data traffic consumption of the application from the moment set by the user, and of course the data of the current month. traffic consumption.
具体地,在将数据流量消耗量显示在应用程序的图标中,可以根据预先设置的数据流量消耗量与显示特征的映射关系,获取数据流量消耗量所对应的显示特征,并将该显示特征在图标中进行显示,对于采用的显示特征,后续进行说明。Specifically, when the data traffic consumption is displayed in the icon of the application, the display feature corresponding to the data traffic consumption can be obtained according to the preset mapping relationship between the data traffic consumption and the display feature, and the display feature can be displayed in the It is displayed in the icon, and the adopted display features will be described later.
其中,若移动终端的网络类型发生切换时,例如由蜂窝移动网络切换WIFI时,则将数据流量消耗量进行保存。当检测到再次切换至窝移动网络时,则获取之前保存的数据流量消耗量,并在此基础上进行累加统计。Wherein, if the network type of the mobile terminal is switched, for example, when the WIFI is switched by the cellular mobile network, the data traffic consumption is saved. When it is detected that the mobile network is switched to the cellular network again, the previously saved data traffic consumption is acquired, and accumulated statistics are performed on this basis.
步骤303,在应用程序的图标处检测是否有预设操作,并当检测到预设操作时,获取控制应用程序使用蜂窝移动网络的开关。Step 303: Detect whether there is a preset operation at the icon of the application program, and when the preset operation is detected, acquire a switch for controlling the application program to use the cellular mobile network.
其中,在步骤303中,主界面中显示应用程序的图标后,需要实时检测图标处是否有预设操作。这里,在图标处检测是否有预设操作并不局限于,获取数据流量消耗量后的图标,还可以在其他没有接入蜂窝移动网络的应用程序的图标处。也就是说,在任何网络类型下,只要检测到主界面中的图标处有预设操作时,即可对该应用程序的蜂窝移动网络的开关进行控制。Wherein, in step 303, after the icon of the application program is displayed on the main interface, it is necessary to detect in real time whether there is a preset operation at the icon. Here, the detection of whether there is a preset operation at the icon is not limited to the icon after the data traffic consumption is obtained, and may also be at the icon of other applications that do not access the cellular mobile network. That is to say, under any network type, as long as it is detected that there is a preset operation at the icon in the main interface, the switch of the cellular mobile network of the application can be controlled.
基于上述可知,本发明实施例中数据流量监控方法,通过将应用程序所使用的数据流量情况在图标中进行显示,使得用户可以非常直观的了解自己的移动终端上每个应用程序的数据流量消耗情况,还可以直接通过应用程序的图标对该应用程序蜂窝移动网络的连接情况进行控制。可知,本发明不需要进行繁琐的设置界面找到应用程序的联网开关在对联网情况进行控制,有效减少用户的操作,提升用户对于该移动终端的使用体验。Based on the above, in the data flow monitoring method in the embodiment of the present invention, the data flow used by the application is displayed in the icon, so that the user can intuitively understand the data flow consumption of each application on his mobile terminal. In some cases, you can also directly control the connection status of the application's cellular mobile network through the application's icon. It can be seen that the present invention does not require the complicated setting interface to find the networking switch of the application program to control the networking situation, which effectively reduces the user's operation and improves the user's experience of using the mobile terminal.
本发明一实施例所提供的数据流量监控方法,基于上述的实施例。在该实施例中,对于步骤302,在将数据流量消耗量显示在应用程序的图标中的显示方式做了进一步地限定。The data flow monitoring method provided by an embodiment of the present invention is based on the above-mentioned embodiment. In this embodiment, for step 302, the display manner of displaying the data traffic consumption in the icon of the application program is further limited.
具体地,在本实施例中,将数据流量消耗量显示在应用程序的图标中,包括如下:Specifically, in this embodiment, the data traffic consumption is displayed in the icon of the application, including the following:
预先设置数据流量消耗与显示颜色的映射关系;Pre-set the mapping relationship between data traffic consumption and display color;
根据该映射关系获取数据流量消耗量所对应的显示颜色;Obtain the display color corresponding to the data traffic consumption according to the mapping relationship;
将显示颜色填充在应用程序图标周围预设的环绕显示区域中。Fills the display color in the preset wraparound display area around the application icon.
其中,在该实施例中,在每个需要接入移动网络的应用图标周围设定环绕显示区域,如图4a和图4b所示。其中,该环绕显示区域的宽度可选为应用程序图标最大宽度的二分之一。Wherein, in this embodiment, a surrounding display area is set around each application icon that needs to access the mobile network, as shown in FIG. 4 a and FIG. 4 b . Wherein, the width of the surrounding display area can be selected as half of the maximum width of the application icon.
可选的,在设置数据流量消耗与显示颜色的映射关系时,设置多个流量使用范围,每个流量使用范围对应一种显示颜色。例如,第一流量使用范围为(0,10M],其对应的显示颜色为白色;第二流量使用范围为(10M,50M],其对应的显示颜色为绿色;第三流量使用范围为(50M,100M],其对应的显示颜色为黄色;第四流量使用范围为大于100M,则其对应的显示颜色为红色。根据不同的显示颜色提示用户使用的数据流量的范围。Optionally, when setting the mapping relationship between data traffic consumption and display color, multiple traffic usage ranges are set, and each traffic usage range corresponds to a display color. For example, the first flow usage range is (0,10M], and its corresponding display color is white; the second flow usage range is (10M, 50M], and its corresponding display color is green; the third flow usage range is (50M) , 100M], its corresponding display color is yellow; The 4th flow usage range is greater than 100M, then its corresponding display color is red. According to different display colors, the scope of the data flow that the user is prompted to use.
可选的,在设置数据流量消耗与显示颜色的映射关系时,还可以通过某一种颜色的深浅变化来确定数据流量消耗量。具体地,该映射关系为某一种颜色的深浅与数据流量消耗量的大小之间的线性函数关系。根据该线性函数关系可以计算出某一时刻数据流量消耗量所对应的显示颜色。Optionally, when setting the mapping relationship between the data traffic consumption and the display color, the data traffic consumption can also be determined by changing the shade of a certain color. Specifically, the mapping relationship is a linear functional relationship between the depth of a certain color and the amount of data traffic consumption. According to the linear function relationship, the display color corresponding to the data traffic consumption at a certain moment can be calculated.
可知,在该实施例中,通过在应用程序图标周围设置环绕显示区域的方式,利用环绕显示区域的显示颜色来提示用户当前使用数据流量的多少。因此,通过本发明的方法,用户无需通过设置程序来查看每个应用程序的流量消耗量,通过图标环绕显示区域可以直观地将每个应用程序的数据流量消耗量展示给用户,有效提高用户的使用体验。It can be known that, in this embodiment, by setting a surrounding display area around the application icon, the display color of the surrounding display area is used to prompt the user how much data traffic is currently being used. Therefore, through the method of the present invention, the user does not need to set the program to view the data flow consumption of each application program, and the data flow consumption of each application program can be intuitively displayed to the user through the icon surrounding the display area, thereby effectively improving the user's Use experience.
本发明一实施例所提供的数据流量监控方法,对实施例1的步骤302中的在应用程序的图标显示数据流量消耗量的方式提供了一种新的实现方式。The data traffic monitoring method provided by an embodiment of the present invention provides a new implementation manner for displaying the data traffic consumption on the icon of the application in step 302 of the first embodiment.
具体地,在本实施例中,将数据流量消耗量显示在应用程序的图标中,包括如下:Specifically, in this embodiment, the data traffic consumption is displayed in the icon of the application, including the following:
预设数据流量消耗量与图标大小的映射关系;The mapping relationship between preset data traffic consumption and icon size;
根据映射关系获取数据流量消耗量所对应的图标的大小,并将相应大小的图标进行显示。The size of the icon corresponding to the data traffic consumption is obtained according to the mapping relationship, and the icon of the corresponding size is displayed.
其中,这里需要对每个应用程序的图标设定一个最大的图标显示区域,图标的最小显示区域为目前所通用的正常显示区域,当然还可以采用其他的显示大小。例如,目前所通用的正常显示区域为1cm*1cm,设定的图标最大显示区域,也就是最大的膨胀范围,为5cm*5cm。Among them, it is necessary to set a maximum icon display area for the icon of each application program, and the minimum display area of the icon is the normal display area commonly used at present. Of course, other display sizes can also be used. For example, the currently used normal display area is 1cm*1cm, and the set maximum display area of the icon, that is, the maximum expansion range, is 5cm*5cm.
可选的,在预设流量消耗量与图标大小的映射关系时,采用关联数据流量消耗量与图标大小之间的线性函数关系来表示;根据获取的数据流量消耗量,将每个需要接入移动网络的应用图标的大小膨胀为匹配其流量消耗量的大小。Optionally, when the mapping relationship between the traffic consumption and the icon size is preset, the linear function relationship between the associated data traffic consumption and the icon size is used to represent; App icons for mobile web are inflated in size to match their data consumption.
可选的,在预设流量消耗量与图标大小的映射关系时,将数据流量消耗量的范围对应一个图标的大小。例如,第一流量使用范围为(0,10M],其对应的图标大小为2cm*2cm;第二流量使用范围为(10M,50M],其对应的图标大小为3cm*3cm;第三流量使用范围为(50M,100M],其对应的图标大小为4cm*4cm;第四流量使用范围为大于100M,则其对应的图标大小为5cm*5cm。Optionally, when the mapping relationship between the traffic consumption and the icon size is preset, the range of the data traffic consumption corresponds to the size of an icon. For example, the first flow usage range is (0,10M], and the corresponding icon size is 2cm*2cm; the second flow usage range is (10M,50M], and the corresponding icon size is 3cm*3cm; the third flow usage range is 3cm*3cm. The range is (50M, 100M], and the corresponding icon size is 4cm*4cm; the fourth flow usage range is greater than 100M, then the corresponding icon size is 5cm*5cm.
进一步地,在确定某一应用程序图标的大小后,该方法还包括如下:Further, after determining the size of a certain application program icon, the method further includes the following:
获取允许接入蜂窝移动网络的所有应用程序的图标大小;Get the icon size of all applications that are allowed to access the cellular network;
根据图标大小顺序将所有应用程序的图标进行显示。The icons of all applications are displayed in the order of icon size.
其中,在确定某一应用程序的图标大小后,需要进一步地获取设置为允许接入蜂窝移动网络的应用程序的图标大小,并根据图标的大小进行排序,将图标较大的显示在前,图标较小的显示在后。这样,用户可以通过图标大小直接获取每个应用程序所消耗的数据流量,并直观地确定哪些应用程序可以关闭蜂窝移动网络。Among them, after determining the icon size of a certain application, it is necessary to further obtain the icon size of the application set to allow access to the cellular mobile network, and sort according to the size of the icons, and display the larger icon first, and the icon The smaller ones are shown at the back. In this way, users can directly get the data consumption of each application through the icon size, and visually determine which applications can turn off the cellular mobile network.
本发明一实施例所提供的数据流量监控方法,基于上述的实施例,对步骤303中具体实现给出了两种不同的实施方式,具体地,在应用程序的图标处检测是否有预设操作,并当检测到预设操作时,获取控制应用程序使用蜂窝移动网络的开关,包括如下:For the data flow monitoring method provided by an embodiment of the present invention, based on the above-mentioned embodiment, two different implementation manners are given for the specific implementation of step 303. Specifically, whether there is a preset operation is detected at the icon of the application program , and when a preset operation is detected, obtain a switch that controls the application to use the cellular mobile network, including the following:
一种是移动终端的触控屏为压感式触控屏,可以在应用程序的图标处检测触控压力值是否达到预设压力阈值:当触控压力值达到预设压力阈值后,获取控制所述应用程序使用蜂窝移动网络的开关;当触控压力值小于预设压力阈值时,则执行触控操作对应其他控制功能,例如启动应用程序。One is that the touch screen of the mobile terminal is a pressure-sensitive touch screen, which can detect whether the touch pressure value reaches the preset pressure threshold at the icon of the application program: when the touch pressure value reaches the preset pressure threshold, obtain the control The application program uses the switch of the cellular mobile network; when the touch pressure value is less than the preset pressure threshold, the touch operation is performed corresponding to other control functions, such as starting the application program.
另一种是移动终端的触控屏采用非压感式触控屏,可以在应用程序的图标处检测触控时间是否达到预设时间阈值:当触控时间达到所述预设时间阈值时,则获取控制应用程序使用蜂窝移动网络的开关;触控时间小于预设时间阈值时,则执行触控操作对应其他控制功能。The other is that the touch screen of the mobile terminal adopts a non-pressure-sensitive touch screen, which can detect whether the touch time reaches the preset time threshold at the icon of the application program: when the touch time reaches the preset time threshold, the Then, the switch for controlling the application to use the cellular mobile network is obtained; when the touch time is less than the preset time threshold, the touch operation is performed corresponding to other control functions.
基于上述可知,本发明实施例中数据流量监控方法,在将应用程序所使用的数据流量情况在图标中进行显示后,用户可以直接在应用程序的图标进行操作,实现对该应用程序蜂窝移动网络的连接情况进行控制。可知,本发明操作简单,不需要经过多次交互,即可实现联网控制,有效减少用户的操作,提升用户的使用体验。Based on the above, it can be seen that in the data flow monitoring method in the embodiment of the present invention, after the data flow used by the application is displayed in the icon, the user can directly operate the icon of the application to realize the cellular mobile network of the application. connection control. It can be seen that the present invention is simple to operate, and can realize networked control without multiple interactions, effectively reducing the user's operation and improving the user's use experience.
本发明一实施例所提供的数据流量监控装置,如图5所示,用于实现实施例4中的方法,该装置具体包括:A data flow monitoring device provided by an embodiment of the present invention, as shown in FIG. 5 , is used to implement the method in Embodiment 4. The device specifically includes:
配置单元61,用于预先配置允许接入蜂窝移动网络的应用程序;a
显示单元62,用于在蜂窝移动网络下,对应用程序的数据流量消耗量进行统计,并将数据流量消耗量显示在应用程序的图标中;A
可选的,在获取应用程序消耗的数据流量,为获取当前时刻相对于用户某一自定义时刻的数据流量消耗量。即从用户设定的时刻开始对应用程序的数据流量消耗量进行实时统计。Optionally, when acquiring the data traffic consumed by the application, it is to acquire the data traffic consumption at the current moment relative to a user-defined moment. That is, from the moment set by the user, the data traffic consumption of the application is counted in real time.
其中,显示单元62在对数据流量消耗量进行统计时,若移动终端的网络类型发生切换时,例如由蜂窝移动网络切换WIFI时,则将数据流量消耗量进行保存。当检测到再次切换至窝移动网络时,则获取之前保存的数据流量消耗量,并在此基础上进行累加统计。Wherein, when the
控制单元63,用于在应用程序的图标处检测是否有预设操作,并当检测到预设操作时,获取控制应用程序使用蜂窝移动网络的开关。The
其中,控制单元63,在主界面中显示应用程序的图标后,需要实时检测图标处是否有预设操作。这里,在图标处检测是否有预设操作并不局限于,获取数据流量消耗量后的图标,还可以在其他没有接入蜂窝移动网络的应用程序的图标处。The
本发明实施例中数据流量监控装置,通过将应用程序所使用的数据流量情况在图标中进行显示,使得用户可以非常直观的了解自己的移动终端上每个应用程序的数据流量消耗情况,还可以直接通过应用程序的图标对该应用程序蜂窝移动网络的连接情况进行控制。可知,本发明不需要进行繁琐的设置界面找到应用程序的联网开关在对联网情况进行控制,有效减少用户的操作,提升用户对于该移动终端的使用体验。In the data flow monitoring device in the embodiment of the present invention, the data flow used by the application is displayed in the icon, so that the user can intuitively understand the data flow consumption of each application on his mobile terminal, and can also Control the app's cellular network connectivity directly from the app's icon. It can be seen that the present invention does not require the complicated setting interface to find the networking switch of the application program to control the networking situation, which effectively reduces the user's operation and improves the user's experience of using the mobile terminal.
本发明一实施例所提供的数据流量监控装置,基于上述的实施例。在该实施例中,对于显示单元62在将数据流量消耗量显示在应用程序的图标中的显示方式做了进一步地限定。The data flow monitoring device provided by an embodiment of the present invention is based on the above-mentioned embodiment. In this embodiment, the display manner in which the
可选的,配置单元61,还用于预先设置数据流量消耗与显示颜色的映射关系;Optionally, the
显示单元62,具体用于根据该映射关系获取数据流量消耗量所对应的显示颜色;The
将显示颜色填充在应用程序图标周围预设的环绕显示区域中。Fills the display color in the preset wraparound display area around the application icon.
其中,在每个需要接入移动网络的应用图标周围设定环绕显示区域。该环绕显示区域的宽度可选为应用程序图标最大宽度的二分之一。Wherein, a surrounding display area is set around each application icon that needs to access the mobile network. The width of the surrounding display area can be selected to be one-half of the maximum width of the application icon.
可选的,显示单元62在设置数据流量消耗与显示颜色的映射关系时,设置多个流量使用范围,每个流量使用范围对应一种显示颜色。根据不同的显示颜色提示用户使用的数据流量的范围。Optionally, when setting the mapping relationship between the data flow consumption and the display color, the
可选的,显示单元62在设置数据流量消耗与显示颜色的映射关系时,还可以通过某一种颜色的深浅变化来确定数据流量消耗量。具体地,该映射关系为某一种颜色的深浅与数据流量消耗量的大小之间的线性函数关系。根据该线性函数关系可以计算出某一时刻数据流量消耗量所对应的显示颜色。Optionally, when setting the mapping relationship between the data traffic consumption and the display color, the
可知,在该实施例中,通过在应用程序图标周围设置环绕显示区域的方式,利用环绕显示区域的显示颜色来提示用户当前使用数据流量的多少。It can be known that, in this embodiment, by setting a surrounding display area around the application icon, the display color of the surrounding display area is used to prompt the user how much data traffic is currently being used.
本发明一实施例所提供的数据流量监控装置,基于实施例5。在该实施例中,给出了一种显示单元62将数据流量消耗量显示在应用程序的图标中的新的实现方式。The data flow monitoring apparatus provided by an embodiment of the present invention is based on Embodiment 5. In this embodiment, a new implementation manner in which the
可选的,配置单元61,还用于预设数据流量消耗量与图标大小的映射关系;Optionally, the
显示单元62,具体用于根据映射关系获取数据流量消耗量所对应的图标的大小,并将相应大小的图标进行显示。The
其中,这里需要对每个应用程序的图标设定一个最大的图标显示区域,图标的最小显示区域为目前所通用的正常显示区域,当然还可以采用其他的显示大小。Among them, it is necessary to set a maximum icon display area for the icon of each application program, and the minimum display area of the icon is the normal display area commonly used at present. Of course, other display sizes can also be used.
可选的,显示单元62在预设流量消耗量与图标大小的映射关系时,采用关联数据流量消耗量与图标大小之间的线性函数关系来表示;根据获取的数据流量消耗量,将每个需要接入移动网络的应用图标的大小膨胀为匹配其流量消耗量的大小。Optionally, the
可选的,显示单元62在预设流量消耗量与图标大小的映射关系时,将数据流量消耗量的范围对应一个图标的大小。Optionally, when the
进一步地,显示单元62还用于:Further, the
获取允许接入蜂窝移动网络的所有应用程序的图标大小;Get the icon size of all applications that are allowed to access the cellular network;
根据图标大小顺序将所有应用程序的图标进行显示。The icons of all applications are displayed in the order of icon size.
其中,显示单元62在确定某一应用程序的图标大小后,需要进一步地获取设置为允许接入蜂窝移动网络的应用程序的图标大小,并根据图标的大小进行排序,将图标较大的显示在前,图标较小的显示在后。这样,用户可以通过图标大小直接获取每个应用程序所消耗的数据流量,并确定哪些应用程序可以关闭蜂窝移动网络。Wherein, after determining the icon size of a certain application program, the
本发明一实施例所提供的数据流量监控装置,基于上述的任一个实施例,对控制单元63做了进一步地限定。具体地,控制单元63,在应用程序的图标处检测是否有预设操作,包括两种实现方式:In the data flow monitoring apparatus provided by an embodiment of the present invention, the
一种是移动终端的触控屏为压感式触控屏,可以在应用程序的图标处检测触控压力值是否达到预设压力阈值:当触控压力值达到预设压力阈值后,获取控制所述应用程序使用蜂窝移动网络的开关;当触控压力值小于预设压力阈值时,则执行触控操作对应其他控制功能,例如启动应用程序。One is that the touch screen of the mobile terminal is a pressure-sensitive touch screen, which can detect whether the touch pressure value reaches the preset pressure threshold at the icon of the application program: when the touch pressure value reaches the preset pressure threshold, obtain the control The application program uses the switch of the cellular mobile network; when the touch pressure value is less than the preset pressure threshold, the touch operation is performed corresponding to other control functions, such as starting the application program.
另一种是移动终端的触控屏采用非压感式触控屏,可以在应用程序的图标处检测触控时间是否达到预设时间阈值:当触控时间达到所述预设时间阈值时,则获取控制应用程序使用蜂窝移动网络的开关;触控时间小于预设时间阈值时,则执行触控操作对应其他控制功能。The other is that the touch screen of the mobile terminal adopts a non-pressure-sensitive touch screen, which can detect whether the touch time reaches the preset time threshold at the icon of the application program: when the touch time reaches the preset time threshold, the Then, the switch for controlling the application to use the cellular mobile network is obtained; when the touch time is less than the preset time threshold, the touch operation is performed corresponding to other control functions.
可知,本发明实施例中数据流量监控装置,在将应用程序所使用的数据流量情况在图标中进行显示后,用户可以直接在应用程序的图标进行操作,实现对该应用程序蜂窝移动网络的连接情况进行控制。可知,本发明操作简单,不需要经过多次交互,即可实现联网控制,有效减少用户的操作,提升用户的使用体验。It can be seen that, in the data flow monitoring device in the embodiment of the present invention, after the data flow used by the application is displayed in the icon, the user can directly operate on the icon of the application to realize the connection to the cellular mobile network of the application. situation under control. It can be seen that the present invention is simple to operate, and can realize network control without multiple interactions, effectively reducing user operations and improving user experience.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611227669.XA CN106792878B (en) | 2016-12-27 | 2016-12-27 | Method and device for monitoring data flow |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611227669.XA CN106792878B (en) | 2016-12-27 | 2016-12-27 | Method and device for monitoring data flow |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106792878A CN106792878A (en) | 2017-05-31 |
| CN106792878B true CN106792878B (en) | 2020-07-28 |
Family
ID=58922211
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611227669.XA Active CN106792878B (en) | 2016-12-27 | 2016-12-27 | Method and device for monitoring data flow |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106792878B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110139305B (en) * | 2018-02-08 | 2022-02-25 | 中兴通讯股份有限公司 | Method and device for monitoring traffic use condition and storage medium |
| US10762174B2 (en) * | 2018-09-28 | 2020-09-01 | Snap Inc. | Collaborative public user profile |
| CN110198554B (en) * | 2019-05-23 | 2021-11-02 | 维沃移动通信有限公司 | A network rate adjustment method and terminal device |
| CN111049701A (en) * | 2019-11-28 | 2020-04-21 | 维沃移动通信有限公司 | Data traffic monitoring method and electronic equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006576A (en) * | 2010-12-08 | 2011-04-06 | 东莞宇龙通信科技有限公司 | Method, system and mobile terminal for displaying Internet traffic |
| CN105430690A (en) * | 2016-01-22 | 2016-03-23 | 青岛海信移动通信技术股份有限公司 | Traffic displaying method and system and mobile terminal |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103347259B (en) * | 2013-06-03 | 2016-08-17 | 亚信科技(中国)有限公司 | A kind of flow prompt method and system |
| CN104125596B (en) * | 2014-07-07 | 2018-07-27 | 北京奇虎科技有限公司 | A kind of data flow statistic method and device |
| CN104104560A (en) * | 2014-08-08 | 2014-10-15 | 广东欧珀移动通信有限公司 | Application traffic monitoring method, device and mobile terminal |
| EP3749006B1 (en) * | 2014-10-31 | 2022-08-03 | Honor Device Co., Ltd. | Data traffic management method and apparatus |
| CN104539795B (en) * | 2014-12-26 | 2017-03-01 | 小米科技有限责任公司 | The display packing of data traffic, device and mobile terminal |
| CN104540150B (en) * | 2015-01-12 | 2019-10-08 | 努比亚技术有限公司 | A kind of mobile data flow control method, apparatus and terminal |
| CN104539809B (en) * | 2015-01-16 | 2019-10-08 | 努比亚技术有限公司 | The monitoring method and device of a kind of mobile terminal and its flow |
| CN106550404A (en) * | 2015-09-17 | 2017-03-29 | 中兴通讯股份有限公司 | A kind of method and terminal for realizing flow-control |
| CN106254669A (en) * | 2016-08-30 | 2016-12-21 | 北京小米移动软件有限公司 | Data traffic based reminding method and device |
-
2016
- 2016-12-27 CN CN201611227669.XA patent/CN106792878B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006576A (en) * | 2010-12-08 | 2011-04-06 | 东莞宇龙通信科技有限公司 | Method, system and mobile terminal for displaying Internet traffic |
| CN105430690A (en) * | 2016-01-22 | 2016-03-23 | 青岛海信移动通信技术股份有限公司 | Traffic displaying method and system and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106792878A (en) | 2017-05-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105426097B (en) | Real-time split screen size adjusting method and split screen device | |
| CN104660820B (en) | The implementation method and mobile terminal of mobile terminal administration pattern | |
| CN106844029B (en) | Self-management Android process freezing and unfreezing device and method | |
| CN106937320B (en) | Automatic operator parameter configuration method and terminal | |
| CN105933452B (en) | Information push and display method and device | |
| CN105353947A (en) | Mobile terminal and application display content controlling method | |
| CN105682150A (en) | Multilink intelligent shunting method and mobile terminal | |
| CN106792878B (en) | Method and device for monitoring data flow | |
| CN106371704B (en) | A kind of application quick layout method of lock screen interface and terminal | |
| CN106412316A (en) | Media resource playing control device and method | |
| CN106484534B (en) | Control method and control device for displayed mobile terminal | |
| CN106993094B (en) | Mobile terminal and scanning method | |
| CN106161790B (en) | Mobile terminal and control method thereof | |
| CN106257943B (en) | A method, device and access point for controlling terminal functions through an access point | |
| CN106453883B (en) | Intelligent terminal and message notification processing method thereof | |
| CN105260096B (en) | A kind of method and mobile terminal controlling user's operation | |
| CN106791149A (en) | A kind of method of mobile terminal and control screen | |
| CN106412878A (en) | Device and method for activating subscriber identity module card | |
| CN106569670B (en) | Apparatus and method for processing applications | |
| CN105959301B (en) | A kind of optimization method of multimedia call and optimization system thereof | |
| CN106412877B (en) | Activation method and activation device of mobile terminal SIM card | |
| CN105357188B (en) | A kind of method that realizing WIFI connections, server and mobile terminal | |
| CN106020693A (en) | Desktop page entry method and electronic device | |
| CN106900037B (en) | Display method and terminal | |
| CN106303080B (en) | A method and device for prompting new messages on a display screen |
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 | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200617 Address after: 401-2, building C4, No.2, Zidong Road, Maqun street, Qixia District, Nanjing City, Jiangsu Province, 210000 Applicant after: Nanjing Sumai Intelligent Technology Co.,Ltd. Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250318 Address after: Room 401, Building C4, No. 2 Zidong Road, Maqun Street, Qixia District, Nanjing City, Jiangsu Province, China 210049 Patentee after: Nanjing Yuanbao Science and Technology Research Institute Co.,Ltd. Country or region after: China Address before: 401-2, Building C4, No. 2 Zidong Road, Maqun Street, Qixia District, Nanjing City, Jiangsu Province, China 210000 Patentee before: Nanjing Sumai Intelligent Technology Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right |