├── app ├── .gitignore ├── src │ └── main │ │ ├── play │ │ ├── listings │ │ │ └── en-US │ │ │ │ ├── title.txt │ │ │ │ ├── short-description.txt │ │ │ │ ├── graphics │ │ │ │ ├── icon │ │ │ │ │ └── ic_launcher-web.png │ │ │ │ ├── feature-graphic │ │ │ │ │ ├── featured.png │ │ │ │ │ └── featured.xcf │ │ │ │ └── phone-screenshots │ │ │ │ │ ├── Screenshot_1601111957.png │ │ │ │ │ ├── Screenshot_1601111968.png │ │ │ │ │ ├── Screenshot_1601112040.png │ │ │ │ │ └── Screenshot_1601112106.png │ │ │ │ └── full-description.txt │ │ ├── contact-email.txt │ │ ├── contact-website.txt │ │ └── release-notes │ │ │ └── en-US │ │ │ └── default.txt │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-nodpi │ │ │ ├── preview_rate.png │ │ │ └── preview_progress.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── styles.xml │ │ │ ├── colors.xml │ │ │ ├── integers.xml │ │ │ ├── dimens.xml │ │ │ └── strings.xml │ │ ├── drawable │ │ │ ├── background_progress.xml │ │ │ ├── background_rate.xml │ │ │ ├── background_progress_white.xml │ │ │ ├── background_rate_white.xml │ │ │ ├── ic_history.xml │ │ │ ├── ic_history_black.xml │ │ │ └── ic_data_usage_black_24dp.xml │ │ ├── xml │ │ │ ├── widgetprovider_rate.xml │ │ │ └── widgetprovider_progress.xml │ │ ├── menu │ │ │ └── menu_history.xml │ │ ├── layout │ │ │ ├── widget_rate.xml │ │ │ ├── lv_item.xml │ │ │ ├── activity_history.xml │ │ │ ├── widget_progress_short.xml │ │ │ ├── widget_progress.xml │ │ │ ├── activity_main.xml │ │ │ └── activity_settings.xml │ │ └── values-ru │ │ │ └── strings.xml │ │ ├── java │ │ └── com │ │ │ └── trianguloy │ │ │ └── continuousDataUsage │ │ │ ├── common │ │ │ ├── NonTouchableView.java │ │ │ ├── Tweaks.java │ │ │ ├── PeriodCalendar.java │ │ │ ├── DataUsage.java │ │ │ ├── Utils.java │ │ │ ├── Accumulated.java │ │ │ ├── NumericEditText.java │ │ │ └── Preferences.java │ │ │ ├── widgets │ │ │ ├── AppWidgetRate.java │ │ │ ├── AppWidgetProgress.java │ │ │ └── AppWidgetBase.java │ │ │ └── activities │ │ │ ├── Main.java │ │ │ ├── ListAdapter.java │ │ │ ├── HistoryActivity.java │ │ │ └── SettingsActivity.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── .gitignore ├── LICENSE ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/title.txt: -------------------------------------------------------------------------------- 1 | Average data usage widget -------------------------------------------------------------------------------- /app/src/main/play/contact-email.txt: -------------------------------------------------------------------------------- 1 | correo--correo+appCDUW@hotmail.com -------------------------------------------------------------------------------- /app/src/main/play/contact-website.txt: -------------------------------------------------------------------------------- 1 | https://triangularapps.blogspot.com/ -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/short-description.txt: -------------------------------------------------------------------------------- 1 | Check your data usage and compare it with an indicator of the average usage. -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/preview_rate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/drawable-nodpi/preview_rate.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/preview_progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/res/drawable-nodpi/preview_progress.png -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/icon/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/icon/ic_launcher-web.png -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/feature-graphic/featured.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/feature-graphic/featured.png -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/feature-graphic/featured.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/feature-graphic/featured.xcf -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601111957.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601111957.png -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601111968.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601111968.png -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601112040.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601112040.png -------------------------------------------------------------------------------- /app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601112106.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrianguloY/Average-data-usage-widget/HEAD/app/src/main/play/listings/en-US/graphics/phone-screenshots/Screenshot_1601112106.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #01579b 4 | #3949ab 5 | #FFE082 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/integers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 512 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jun 28 17:38:33 CEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 0dp 9 | 16dp 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_rate.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_progress_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_rate_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_history.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_history_black.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/xml/widgetprovider_rate.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/xml/widgetprovider_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_data_usage_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/play/release-notes/en-US/default.txt: -------------------------------------------------------------------------------- 1 | V 4.1 2 | - Added Russian translation. Thank you kojjii! 3 | 4 | V 4.0 5 | - Updated to Android 10+ 6 | - New: Average and total data on the history screen 7 | - Tweak: Remaining tweak promoted to full setting (Pending/Used) 8 | - New: Option to calculate accumulated data by setting the desired visible amount 9 | - Improve: Accumulated data can be negative 10 | - Improve: Accumulated data can be set while accumulated period is 0 (as offset data) 11 | - New: Tweak: open android settings when clicking the widget button 12 | 13 | V 3.0 14 | - Configurable period length (any number of days or months). 15 | - New tweak: advanced secondary bars 16 | - Improved settings screen -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_history.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 14 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | android.nonFinalResIds=false 13 | android.nonTransitiveRClass=false 14 | org.gradle.jvmargs=-Xmx1536m 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | mapping.txt 5 | output.json 6 | 7 | # Files for the ART/Dalvik VM 8 | *.dex 9 | 10 | # Java class files 11 | *.class 12 | 13 | # Generated files 14 | bin/ 15 | gen/ 16 | out/ 17 | /app/release/release/ 18 | 19 | # Gradle files 20 | .gradle/ 21 | build/ 22 | 23 | # Local configuration file (sdk path, etc) 24 | local.properties 25 | 26 | # Proguard folder generated by Eclipse 27 | proguard/ 28 | 29 | # Log Files 30 | *.log 31 | 32 | # Android Studio Navigation editor temp files 33 | .navigation/ 34 | 35 | # Android Studio captures folder 36 | captures/ 37 | 38 | # Intellij 39 | *.iml 40 | .idea/ 41 | 42 | # Keystore files 43 | *.jks 44 | 45 | # External native build folder generated in Android Studio 2.2 and later 46 | .externalNativeBuild 47 | 48 | # Google Services (e.g. APIs or Firebase) 49 | google-services.json 50 | 51 | # Freeline 52 | freeline.py 53 | freeline/ 54 | freeline_project_description.json 55 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/widget_rate.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/trianguloy/continuousDataUsage/common/NonTouchableView.java: -------------------------------------------------------------------------------- 1 | package com.trianguloy.continuousDataUsage.common; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.view.MotionEvent; 6 | import android.widget.FrameLayout; 7 | 8 | /** 9 | * A view that removes all touches 10 | */ 11 | public class NonTouchableView extends FrameLayout { 12 | 13 | public NonTouchableView(Context context) { 14 | super(context); 15 | } 16 | 17 | public NonTouchableView(Context context, AttributeSet attrs) { 18 | super(context, attrs); 19 | } 20 | 21 | public NonTouchableView(Context context, AttributeSet attrs, int defStyleAttr) { 22 | super(context, attrs, defStyleAttr); 23 | } 24 | 25 | public NonTouchableView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { 26 | super(context, attrs, defStyleAttr, defStyleRes); 27 | } 28 | 29 | @Override 30 | public boolean onInterceptTouchEvent (MotionEvent ev){ 31 | return true; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 TrianguloY 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | id 'com.github.triplet.play' version '3.7.0' 4 | } 5 | 6 | android { 7 | namespace 'com.trianguloy.continuousDataUsage' 8 | compileSdk 34 9 | defaultConfig { 10 | applicationId "com.trianguloy.continuousDataUsage" 11 | minSdkVersion 29 12 | targetSdkVersion 34 13 | versionCode 28 14 | versionName "4.1" 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled true 19 | shrinkResources true 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | 24 | compileOptions { 25 | sourceCompatibility JavaVersion.VERSION_17 26 | targetCompatibility JavaVersion.VERSION_17 27 | } 28 | buildFeatures { 29 | buildConfig true 30 | } 31 | } 32 | 33 | dependencies { 34 | implementation fileTree(dir: 'libs', include: ['*.jar']) 35 | } 36 | 37 | 38 | play { 39 | track.set("beta") 40 | releaseName.set(android.defaultConfig.versionName + " (" + android.defaultConfig.versionCode + ")") 41 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Average-data-usage-widget 2 | 3 | Android app made by TrianguloY 4 | 5 | Get it on Google Play:\ 6 | https://play.google.com/store/apps/details?id=com.trianguloy.continuousDataUsage \ 7 | [Get it on Google Play](https://play.google.com/store/apps/details?id=com.trianguloy.continuousDataUsage) 10 | 11 | Get it on F-Droid:\ 12 | https://f-droid.org/packages/com.trianguloy.continuousDataUsage/ \ 13 | [Get it on F-Droid](https://f-droid.org/packages/com.trianguloy.continuousDataUsage/) 16 | 17 | Check more details on the app page: \ 18 | http://triangularapps.blogspot.com/p/average-data-usage-widget.html 19 | 20 | You can use parts of this project in your own ones, create pull request, or upload modified versions of it AS LONG AS you credit me. 21 | 22 | How to credit: 23 | - You must add my nick (TrianguloY) in an 'about' or 'acknowledgments' section visible to the user. 24 | - You must add a link to this GitHub main page (https://github.com/TrianguloY/Average-data-usage-widget/) or subpage (if you used a part of the code or an asset) in an 'about' or 'acknowledgments' section visible to the user. 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/lv_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 22 | 23 | 32 | 33 | 34 | 42 | 43 | 50 | 51 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_history.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 |