Created
December 21, 2016 23:16
-
-
Save quiro91/b8b98b76c0c091d7721a1d52214d868e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Calendar calendar = Calendar.getInstance(); | |
calendar.add(Calendar.MONTH, -1); | |
long start = calendar.getTimeInMillis(); | |
long end = System.currentTimeMillis(); | |
List<UsageStats> stats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_WEEKLY, start, end); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment