UsuageStats - Sample project for UsusageStats Manager

Related tags

App UsuageStats
Overview

UsuageStats

Sample project for UsusageStats Manager

Add this permission in Manifest

<uses-permission
       android:name="android.permission.PACKAGE_USAGE_STATS"
       tools:ignore="ProtectedPermissions" />

Get UsageStatsManager

 val usm = context.getSystemService(Context.USAGE_STATS_SERVICE) as UsageStatsManager
 val start = //start time in milliseconds 
 val end = System.currentTimeMillis() //end time in milliseconds

Then query the stats manager

usm.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, start, end)
You might also like...
Money Manager app that helps you to add your daily small incomes and expenses and track them easily.
Money Manager app that helps you to add your daily small incomes and expenses and track them easily.

Simple Money Manager This app is a simple money manager app which helps you to add your daily small incomes and expenses and track them easily. Screen

Wallpaper Battle A combined online and local HD wallpaper file manager
Wallpaper Battle A combined online and local HD wallpaper file manager

Resplash Resplash is powered by Unsplash.com The internet’s source of freely-usable images. Powered by creators everywhere. Browse 1M+ high-res photos

A simple party manager app
A simple party manager app

Party App 🥳 Android native app using Kotlin to manage parties 🟡 Status: Under development 😍 How to use The backend of this project can be founded h

Ivy Wallet is an Open Source money manager app for android that you can either build or download from Google Play.
Ivy Wallet is an Open Source money manager app for android that you can either build or download from Google Play.

Ivy Wallet is an Open Source money manager app for android that you can either build or download from Google Play.

Simple Android File Manager
Simple Android File Manager

Simple File Manager Can also be used for browsing root files and SD card content. You can easily rename, copy, move, delete and share anything you wis

H4SGTAG MANAGER - CRUD that saves hashtags for social media

H4SGTAG_MANAGER CRUD that saves hashtags for social media made using android stu

Money Manager Ex is a free, open-source, cross-platform, easy-to-use personal finance software
Money Manager Ex is a free, open-source, cross-platform, easy-to-use personal finance software

Money Manager Ex is a free, open-source, cross-platform, easy-to-use personal finance software. It primarily helps organize one's finances and keeps track of where, when and how the money goes.

MyAlarmManager - Learn to use alarm manager
MyAlarmManager - Learn to use alarm manager

MyAlarmManager belajar menggunakan alarm manager One time alarm Repeating alarm

Download-manager - Boost AWS S3 file download for android

download-manager Boost AWS S3 file download What is DownloadManager? It is desig

Owner
null
Idaesbasic - An all in one project manager that stores everything in files directly into your project! 🤯

Idaesbasic - Project-Managment redefined Idaesbasic Everything is a file ?? With this project managment tool, everything is a file. Your todolists are

Ben Herbst 123 Nov 11, 2022
androidx window manager sample taken from the original source and modified for easy deploy and test

androidx-window-samples This project contains the WindowManager samples located in the androidx WM project location The goal of this project is to pro

Cesar Valiente 0 Nov 22, 2021
Material design file manager for Android

Amaze File Manager Overview Open Source, light and smooth Based on Material Design guidelines Basic features like cut, copy, delete, compress, extract

Team Amaze 4.2k Jan 4, 2023
Material design file manager for Android

Amaze File Manager Overview Open Source, light and smooth Based on Material Design guidelines Basic features like cut, copy, delete, compress, extract

Team Amaze 4.2k Jan 5, 2023
Demo of Downloading Songs/Images through Android Download Manager using RxJava2

Downloader Demo using RxJava Overview This project is for downloading items(songs, images etc) in Android using RxJava2. There are, however 2 conditio

Anshul Jain 168 Nov 25, 2022
A file manager,apk editor....

A file manager,apk editor....

FlyingYu 41 Oct 20, 2022
An elegant and beautiful Android app manager

An elegant and beautiful Android app manager

Hamza Rizwan 250 Jan 1, 2023
A handy phone call manager with phonebook, number blocking and multi-SIM support

Simple Dialer A lightweight app for handling your calls, no matter where are you. Comes with a handy call log for easy call initiation. There is a qui

Simple Mobile Tools 443 Jan 6, 2023
Android samples built using Jetpack Window Manager for foldable and dual-screen devices like Microsoft Surface Duo.

Jetpack Window Manager samples for dual-screen and foldable devices like Microsoft Surface Duo Android app samples that use Jetpack Window Manager to

Microsoft 45 Dec 19, 2022
💰 Expense Manager is simple, intuitive, stable and modern app that is just designed for you.

Expense Manager is simple, intuitive, stable and modern app that is just designed for you. Everything you need at your fingertips to manage the expenditures and budgets.

Behzod Bozorboev 13 Oct 20, 2022