Skip to content

NikhilBhutani/EasyDataAnalyzer

Repository files navigation

EasyDataAnalyzer

As the name suggest, this Android library analyzes the network data information for any app in an android device. ###NOTE : won't work from nougat and above due to security reasons.

Featured in

Android Arsenal AndroidDev Digest

Show some ❤️

GitHub stars GitHub forks GitHub watchers GitHub followers

Screenshot of sample app

Including in your project

EasyDataAnalyzer is available in the MavenCentral to add as a dependency

  • Add this to your root build.gradle file
 allprojects {
        repositories {
            ...
            maven { url "https://jitpack.io" }
        }
    }
  • Add this to your app's build.gradle file
compile 'com.github.NikhilBhutani:EasyDataAnalyzer:1.0'

Usage Docs/Wiki

-Instantiate the class.

DataAnalyzer dataAnalyzer = new DataAnalyzer(this);
  • Get the Installed Application list
ArrayList<ApplicationInfo> package_name = (ArrayList<ApplicationInfo>) dataAnalyzer.getApplicationMeta();
  • Get Appname by passing a package name
dataAnalyzer.getAppName(package_name)
  • Get Data Received(bytes) by your app by package name
dataAnalyzer.getReceivedData(package_name)
  • Get Data Transmitted(bytes) by app
dataAnalyzer.getDataTransmitted(package_name) 
  • Get Packets Received(bytes)
dataAnalyzer.getPacketsReceived(package_name)
  • Get Packets Transmitted(bytes)
dataAnalyzer.getPacketsTransmitted(package_name)

License

Copyright 2016 Nikhil Bhutani

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

📊 [Android-Library] Monitor network data information of your apps in android devices. NOTE : won't work from nougat and above due to security reasons.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages