Giter Club home page Giter Club logo

appsusagemonitorapi's Introduction

AppsUsageMonitor Library Tweet

Java library for Android to detect time spent on applications in an android device.

-feature-graphic

Contents

Requirements
Features
Implementation
AndroidX
API Usage
Wiki
To-dos
Release-Notes
License

Features

  • Returns the list of all the application used in the device.
  • Returns the total duration for which the applications are being used.
  • Returns the total number of times the application is launched.
  • Returns the amount of mobile data consumed by the application. [Added in 1.0.2] [#3]
  • Returns the timestamp on which the application was last launched.
  • Returns the total time spend on device [calculates only the time spend on application & not idle screen time]
  • Returns all the above mentioned usage data that can be filtered on the basis of Duration i.e. for TODAY, YESTERDAY, WEEK, MONTH

Implementation

Library is available on JCenter, simply add the following line in your app build.gradle

implementation 'the.bot.box:appusagemonitor:{latest-version}'

where {latest-version} corresponds to latest published version Download

To-dos

  • androidX support[completed]
  • Conversion to kotlin
  • Query usage for a specific package [completed]
  • Return sorted list on the basis of Data Usage, App Usage Time,App Launch Counts.[currently sorted on the basis of app usage time]
  • Calcuate Data usage of applications(Both Wifi & Mobile Data)[currently calculating only mobile data] [completed]
  • App Usage for any particular date
  • Fetch [launch & exit] timeline of any particular app for duration of TODAY & YESTERDAY. [completed]
  • Implement device & particular application usage limit & notify when usage limit exceeds
  • Query for device lock-unlock count
  • To Query for both system and installed applications or either one of them
  • Code Commenting

License

alt tag

Copyright (c) 2020 TheBotBox

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
documentation files (the "Software"), to deal in the Software without restriction, including without
limitation the rights to use, copy, 
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to 
whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions 
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
CONTRACT, TORT OR OTHERWISE,ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
IN THE SOFTWARE. 

appsusagemonitorapi's People

Contributors

thebotbox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

appsusagemonitorapi's Issues

Data receives from this library is half of data from Digital Wellbeing

Hey TheBotBox,
Thanks for this amazing library.
I have to get the total usage time of the phone for that purpose I'm using this amazing library.
Issue is when I compare my data with digital wellbeing, the data I received is half. It means it is not accurate. It will be better if you fix those issues.
Thanks

Time line data

how to get data of app usage of daily and weekly with its all details like start and end time.
photo

All Application Usage not working properly

The feature "All Application Usage" is not working correctly. I made a comparison with the usage results of yesterday with other apps with the same feature, and they don't only match.
And another thing: is it normal that the mTotalUsage variable in DurationRange.WEEK being higher than in the DurationRange.YESTERDAY, for example? That was what happened to me, even that I don't know if DurationRange.WEEK is about the average time for each day of the week.

Mobile Internet Data usage not available

Hi, Greate work.

You mention in Read Me that "Returns the amount of mobile data consumed by the application." but the app not showing the data used by the particular app.

How can I fix that?

Thanks.

+1

Thank you and great work.
1 more suggestion you can add weekly usage report day wise.

Originally posted by @fenilDominant in #1 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.