CN102711098B - Method for preventing background flow of application program from being lost - Google Patents
Method for preventing background flow of application program from being lost Download PDFInfo
- Publication number
- CN102711098B CN102711098B CN201210130245.7A CN201210130245A CN102711098B CN 102711098 B CN102711098 B CN 102711098B CN 201210130245 A CN201210130245 A CN 201210130245A CN 102711098 B CN102711098 B CN 102711098B
- Authority
- CN
- China
- Prior art keywords
- user
- screen
- alarm
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 239000002699 waste material Substances 0.000 abstract description 3
- 230000007812 deficiency Effects 0.000 description 2
- 235000001674 Agaricus brunnescens Nutrition 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
Abstract
一种防止应用程序后台流量流失的方法,在应用程序界面上列出所有存在网络访问的应用,由用户勾选出防止后台流失流量的应用程序黑名单。当手机屏幕熄灭后,后台接收到熄灭屏幕的广播,设置流量报警器,并等待流量报警器激活,在等待时间内,判断手机屏幕是否点亮,是则接收亮屏广播并取消用户设置的流量报警器后结束程序,否则流量报警器被激活。遍历正在运行的程序,并判断该程序是否属于用户设定的黑名单,是则禁止该应用程序,清除该应用的所有的闹钟和待发送广播,防止该应用在被禁止后通过接收广播自启动,当所有程序判断完毕后结束操作。这样可以防止这些程序在后台使用流量,达到节约用户的流量,有效防止话费的浪费,而且能有效节约电能。
A method for preventing the loss of background traffic of an application program. All applications with network access are listed on the application program interface, and the user checks a blacklist of applications that prevent background traffic loss. When the screen of the mobile phone is turned off, the background receives the broadcast of the screen being off, sets the traffic alarm, and waits for the traffic alarm to activate. During the waiting time, judges whether the screen of the mobile phone is lit, and if so, receives the broadcast of the bright screen and cancels the traffic set by the user End the program after the alarm, otherwise the flow alarm is activated. Traversing the running programs and judging whether the program belongs to the blacklist set by the user, if it is, ban the application, clear all alarm clocks and pending broadcasts of the application, and prevent the application from starting by receiving broadcasts after being banned , end the operation when all programs are judged. This can prevent these programs from using traffic in the background, so as to save user traffic, effectively prevent waste of phone charges, and effectively save power.
Description
技术领域 technical field
本发明涉及一种基于android系统的应用程序,特别是涉及一种防止应用程序后台流量流失的方法。 The invention relates to an application program based on the android system, in particular to a method for preventing background flow loss of the application program.
背景技术 Background technique
当前,随着Android手机大量的上市和普及,Android手机用户也大幅度激增,大量Android应用程序喷涌而出,这给用户带来很大的娱乐性和可玩性;但是Android平台是一个耗流量的平台,基本上一个月几十兆的流量根本不够Android的消耗。另外,一些恶意应用也如雨后春笋般不断涌现,有些恶意应用会在用户不知情的时候,在后台偷偷的跑流量,这不仅会消耗本来就不够用的电量,还有可能不知不觉给用户增加了一笔额外流量费用;因此,如何让Android手机用户更好的节约流量使用,防止一些恶意应用后台跑流量成为Android手机用户的一个迫切需求。 At present, with the massive listing and popularization of Android mobile phones, the number of Android mobile phone users has also increased significantly, and a large number of Android applications have spewed out, which brings great entertainment and playability to users; but the Android platform is a traffic-consuming Basically, the traffic of tens of megabytes a month is not enough for Android. In addition, some malicious applications are also springing up like mushrooms after rain. Some malicious applications will secretly run traffic in the background without the user's knowledge. Therefore, how to allow Android mobile phone users to better save data usage and prevent some malicious applications from running traffic in the background has become an urgent need for Android mobile phone users.
发明内容 Contents of the invention
本发明的目的在于克服现有技术的不足,提供一种防止应用程序后台流量流失的方法,节约用户的流量,能有效防止话费的浪费,且能有效节约电能。 The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a method for preventing background traffic loss of application programs, saving user traffic, effectively preventing waste of phone charges, and effectively saving electric energy.
为了达到上述目的,本发明采用的技术方案是,一种防止应用程序后台偷跑流量的方法,在应用程序界面上列出所有存在网络访问权限的应用,在由用户勾选出防止后台流失流量的应用程序黑名单后,所述的方法步骤如下: In order to achieve the above-mentioned purpose, the technical solution adopted by the present invention is a method for preventing the application program from stealing traffic in the background. All applications with network access rights are listed on the application program interface, and the user checks to prevent background traffic loss. After blacklisting the application, the steps of the described method are as follows:
步骤1、手机屏幕自动熄灭或用户熄灭手机屏幕; Step 1. The mobile phone screen is automatically turned off or the user turns off the mobile phone screen;
步骤2、接收熄灭屏幕广播; Step 2. Receive the broadcast of turning off the screen;
步骤3、设置流量报警器,该流量报警器在用户设定的时间段后激活; Step 3. Set the flow alarm, which is activated after the time period set by the user;
步骤4、等待流量报警器激活; Step 4. Wait for the flow alarm to be activated;
步骤5、在等待时间内,判断手机屏幕是否点亮,是则接收亮屏广播并取消用户设置的流量报警器后结束程序,否则执行步骤6; Step 5. During the waiting time, judge whether the screen of the mobile phone is on, if yes, receive the bright screen broadcast and cancel the flow alarm set by the user, and then end the program, otherwise, perform step 6;
步骤6、流量报警器被系统激活; Step 6, the flow alarm is activated by the system;
步骤7、获取所有正在运行的应用程序; Step 7, obtain all running applications;
步骤8、获取到正在运行的程序名,并判断该程序是否属于用户设定的黑名单中的应用程序,是则执行步骤9,否则执行步骤11; Step 8, obtain the name of the running program, and judge whether the program belongs to the application program in the blacklist set by the user, if yes, execute step 9, otherwise execute step 11;
步骤9、禁止该应用程序; Step 9. Prohibit the application;
步骤10、消除该应用的所有流量报警器,防止该应用在被禁止后通过闹钟和接收广播自启动; Step 10. Eliminate all traffic alarms of the application to prevent the application from starting automatically through the alarm clock and receiving broadcast after being banned;
步骤11、判断是否对所有正在运行的应用程序都判定完毕,是则执行步骤12,否则执行步骤8; Step 11, judging whether all running applications have been judged, if yes, go to step 12, otherwise go to step 8;
步骤12、结束操作。 Step 12, end the operation.
进一步的,步骤3所述的流量报警器为在手机屏幕熄灭后,用户设定一时间段,在该时间段内流量报警器有流程产生不会激活,当超过该设定时间段而屏幕未点亮时,则流量报警器激活。 Further, the flow alarm described in step 3 is to set a time period by the user after the screen of the mobile phone goes out, and the flow alarm will not be activated if there is a process within this time period. When the set time period is exceeded and the screen is not When lit, the flow alarm is active.
进一步的,所述的用户设定一时间段为一定值,根据用户使用手机习惯设定。 Further, the user sets a time period as a certain value, which is set according to the user's habit of using mobile phones.
与现有技术相比,本发明的有益效果是:克服目前Android平台上耗流量的不足,通过内部程序监控,在用户长时间不使用手机的情况下,禁止可能产生流量的应用程序,节约了用户的流量使用情况,且在开应用程序少的情况下,能节省手机用电,延长电池的使用时间和寿命。 Compared with the prior art, the beneficial effect of the present invention is: to overcome the current shortage of traffic consumption on the Android platform, through internal program monitoring, when the user does not use the mobile phone for a long time, prohibit the application program that may generate traffic, saving It can save the power consumption of the mobile phone and prolong the service time and life of the battery when there are few applications open.
附图说明 Description of drawings
图1为本发明的方法流程图。 Fig. 1 is a flow chart of the method of the present invention.
具体实施方式 detailed description
本发明的主旨在于克服现有技术的不足,提供一种防止应用程序后台流量流失的方法,在应用程序界面上列出所有存在网络访问的应用,由用户勾选出防止后台流失流量的应用程序黑名单。当手机屏幕熄灭后,后台接收到熄灭屏幕的广播,设置流量报警器,并等待流量报警器激活,在等待时间内,判断手机屏幕是否点亮,是则接收亮屏广播并取消用户设置的流量报警器后结束程序,否则流量报警器被激活。获取所有正在运行的应用程序;获取到正在运行的程序名,并判断该程序是否属于用户设定的黑名单中的应用程序,是则禁止该应用程序,消除该应用的所有流量报警器,防止该应用在被禁止后通过流量报警器自动启动,当所有程序判断完毕后结束操作。节约用户的流量,有效防止话费的浪费,且能有效节约电能。 The gist of the present invention is to overcome the deficiencies of the prior art and provide a method for preventing background flow loss of application programs. All applications with network access are listed on the application program interface, and the user checks out the application programs that prevent background flow loss. blacklist. When the screen of the mobile phone is turned off, the background receives the broadcast of the screen being off, sets the traffic alarm, and waits for the traffic alarm to activate. During the waiting time, judges whether the screen of the mobile phone is lit, and if so, receives the broadcast of the bright screen and cancels the traffic set by the user End the program after the alarm, otherwise the flow alarm is activated. Obtain all running applications; obtain the name of the running program, and judge whether the program belongs to the application program in the blacklist set by the user. The application starts automatically through the flow alarm after being prohibited, and ends the operation when all procedures are judged. Save user traffic, effectively prevent the waste of phone charges, and can effectively save power.
下面结合实施例参照附图进行详细说明,以便对本发明的技术特征及优点进行更深入的诠释。 The following will describe in detail with reference to the accompanying drawings in conjunction with the embodiments, so as to further explain the technical features and advantages of the present invention.
本发明的方法流程图如图1所示,一种防止应用程序后台流量流失的方法,在应用程序界面上列出所有存在网络访问的应用,由用户勾选出防止后台流失流量的应用程序黑名单,所述的方法步骤如下: The flow chart of the method of the present invention is shown in Figure 1, a method for preventing background flow loss of application programs. All applications with network access are listed on the application program interface. list, the steps of the method are as follows:
步骤1、手机屏幕自动熄灭或用户熄灭手机屏幕; Step 1. The mobile phone screen is automatically turned off or the user turns off the mobile phone screen;
步骤2、接收熄灭屏幕广播; Step 2. Receive the broadcast of turning off the screen;
步骤3、设置流量报警器,该流量报警器在用户设定的时间段后激活; Step 3. Set the flow alarm, which is activated after the time period set by the user;
步骤4、等待流量报警器激活; Step 4. Wait for the flow alarm to be activated;
步骤5、在等待时间内,判断手机屏幕是否点亮,是则接收亮屏广播并取消用户设置的流量报警器后结束程序,否则执行步骤6; Step 5. During the waiting time, judge whether the screen of the mobile phone is on, if yes, receive the bright screen broadcast and cancel the flow alarm set by the user, and then end the program, otherwise, perform step 6;
步骤6、流量报警器被系统激活; Step 6, the flow alarm is activated by the system;
步骤7、获取所有正在运行的应用程序; Step 7, obtain all running applications;
步骤8、获取到正在运行的程序名,并判断该程序是否属于用户设定的黑名单中的应用程序,是则执行步骤9,否则执行步骤11; Step 8, obtain the name of the running program, and judge whether the program belongs to the application program in the blacklist set by the user, if yes, execute step 9, otherwise execute step 11;
步骤9、禁止该应用程序; Step 9. Prohibit the application;
步骤10、消除该应用的所有流量报警器,防止该应用在被禁止后通过闹钟和接收广播自启动; Step 10. Eliminate all traffic alarms of the application to prevent the application from starting automatically through the alarm clock and receiving broadcast after being banned;
步骤11、判断是否对所有正在运行的应用程序都判定完毕,是则执行步骤12,否则执行步骤8; Step 11, judging whether all running applications have been judged, if yes, go to step 12, otherwise go to step 8;
步骤12、结束操作。 Step 12, end the operation.
进一步的,步骤3所述的流量报警器为在手机屏幕熄灭后,用户设定一时间段,在该时间段内流量报警器有流程产生不会激活,当超过该设定时间段而屏幕未点亮时,则流量报警器激活。 Further, the flow alarm described in step 3 is to set a time period by the user after the screen of the mobile phone goes out, and the flow alarm will not be activated if there is a process within this time period. When the set time period is exceeded and the screen is not When lit, the flow alarm is active.
进一步的,所述的用户设定一时间段为一定值,根据用户使用手机习惯设定。 Further, the user sets a time period as a certain value, which is set according to the user's habit of using mobile phones.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属领域技术人员来说,在不脱离本发明构思的前提下,做出简单的更改或优化,都应当视为本发明的保护范围。 The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art to which the present invention belongs, any simple modification or optimization without departing from the concept of the present invention should be regarded as the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210130245.7A CN102711098B (en) | 2012-04-28 | 2012-04-28 | Method for preventing background flow of application program from being lost |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210130245.7A CN102711098B (en) | 2012-04-28 | 2012-04-28 | Method for preventing background flow of application program from being lost |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102711098A CN102711098A (en) | 2012-10-03 |
CN102711098B true CN102711098B (en) | 2015-01-07 |
Family
ID=46903619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210130245.7A Expired - Fee Related CN102711098B (en) | 2012-04-28 | 2012-04-28 | Method for preventing background flow of application program from being lost |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102711098B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9727351B2 (en) | 2013-04-08 | 2017-08-08 | Xiaomi Inc. | Method and device for setting status of application |
CN103226491B (en) * | 2013-04-08 | 2017-06-16 | 小米科技有限责任公司 | A kind of method and device that Application Status are set |
CN104254097A (en) * | 2013-06-27 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Flow control method and device |
CN104135561B (en) * | 2013-07-08 | 2016-03-16 | 腾讯科技(深圳)有限公司 | A kind of flow based reminding method of terminal, device and terminal |
CN103476064A (en) * | 2013-09-13 | 2013-12-25 | 小米科技有限责任公司 | Method and device for flow control of terminal device and terminal device |
CN104914976A (en) * | 2014-03-12 | 2015-09-16 | 中兴通讯股份有限公司 | Data processing method, data processing device and terminal |
CN103905641B (en) * | 2014-03-19 | 2015-10-28 | 奉化波导软件有限公司 | A kind of method preventing mobile phone flow from escaping |
CN104951035A (en) * | 2014-03-26 | 2015-09-30 | 腾讯科技(深圳)有限公司 | CPU frequency control method and device |
EP3099098B1 (en) | 2014-04-18 | 2022-06-01 | Huawei Technologies Co., Ltd. | Method, device and electronic terminal for information reminding |
CN104267992A (en) * | 2014-09-29 | 2015-01-07 | 广州视源电子科技股份有限公司 | Method and device for shielding wake-up program of mobile terminal |
CN104680060B (en) * | 2014-11-25 | 2017-04-05 | 北京奇虎科技有限公司 | A kind of program opens management method and device certainly |
CN104486510A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal |
KR102262352B1 (en) * | 2015-04-14 | 2021-06-07 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Terminal control method, device and terminal |
CN105635447B (en) * | 2015-12-22 | 2019-06-07 | 一拓通信集团股份有限公司 | Method for preventing background flow loss of application program |
CN105704758A (en) * | 2016-01-05 | 2016-06-22 | 广东欧珀移动通信有限公司 | A method and device for closing social application programs based on traffic monitoring |
CN105704066B (en) * | 2016-01-12 | 2019-06-25 | 北京奇虎科技有限公司 | Networking control method and device, system, security gateway, mobile terminal |
CN106095517A (en) * | 2016-06-28 | 2016-11-09 | 宇龙计算机通信科技(深圳)有限公司 | The method and device that a kind of end application runs |
CN107302789B (en) * | 2017-06-21 | 2021-04-16 | 上海集赫电子商务有限公司 | Method and system for improving battery endurance of android device |
CN110764425A (en) * | 2019-09-16 | 2020-02-07 | 恒大智慧科技有限公司 | Home equipment redirection method, smart home APP and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110220A (en) * | 2011-02-14 | 2011-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Application program monitoring method and device |
CN102123382A (en) * | 2010-12-24 | 2011-07-13 | 北京三星通信技术研究有限公司 | Use and management method of network data services of application programs and electronic equipment |
CN102377880A (en) * | 2011-10-10 | 2012-03-14 | 深圳桑菲消费通信有限公司 | Mobile phone and power saving method thereof |
-
2012
- 2012-04-28 CN CN201210130245.7A patent/CN102711098B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123382A (en) * | 2010-12-24 | 2011-07-13 | 北京三星通信技术研究有限公司 | Use and management method of network data services of application programs and electronic equipment |
CN102110220A (en) * | 2011-02-14 | 2011-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Application program monitoring method and device |
CN102377880A (en) * | 2011-10-10 | 2012-03-14 | 深圳桑菲消费通信有限公司 | Mobile phone and power saving method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102711098A (en) | 2012-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102711098B (en) | Method for preventing background flow of application program from being lost | |
CN105554316B (en) | A kind of realization method and system of reserved intelligent terminal battery capacity | |
CN107302789B (en) | Method and system for improving battery endurance of android device | |
CN109803359B (en) | Method for awakening terminal system and terminal | |
CN104243702B (en) | Low battery prompt method, device and terminal device | |
CN104156053B (en) | A kind of control method of abnormal power consumption, device and mobile terminal | |
CN105208642B (en) | A kind of method and terminal of application management | |
CN106055073B (en) | A processing method and device based on bright screen lock | |
CN103686663B (en) | Network flow monitoring method and device | |
CN104166542A (en) | Method and device for detecting electricity consumption of application | |
CN103200314B (en) | A kind of intelligent dormancy method of mobile terminal and device | |
CN102946486A (en) | Background application automatic clearing method based on mobile phone and mobile phone | |
WO2013091561A1 (en) | Energy-saving method, device and communication terminal | |
CN105183137A (en) | Mobile terminal and wake lock control method and system thereof | |
CN104199669A (en) | Method and device for managing application program processes | |
CN103226491B (en) | A kind of method and device that Application Status are set | |
CN103199310A (en) | Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal | |
WO2010081055A3 (en) | Power management for wireless networks | |
CN105892613A (en) | Method and apparatus for clearing background applications | |
CN104199731A (en) | Method and device for managing application program processes | |
CN104486510A (en) | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal | |
CN103176842A (en) | Background process management method and mobile terminal thereof | |
CN103313359A (en) | Power saving method and power saving device for mobile terminal and mobile terminal | |
CN105704758A (en) | A method and device for closing social application programs based on traffic monitoring | |
CN104267992A (en) | Method and device for shielding wake-up program of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150107 |
|
CF01 | Termination of patent right due to non-payment of annual fee |