695c54f03c264e36b360010501e46261f02b9afc
- onResume() no longer triggers a refresh every time — only fetches when data is >5 min stale, so returning to app shows cached data instantly without a loading spinner - Fix CancellationException being swallowed by catch(Exception) in refreshUsage(), which caused updates to run on a destroyed activity - EncryptedSharedPreferences key invalidation (caused by enabling/changing biometrics or screen lock) now deletes the stale encrypted file and recreates it cleanly, rather than silently using empty fallback prefs - Wrap all securePrefs read/write ops in try-catch so a mid-session Keystore failure degrades gracefully instead of crashing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude Usage Widget
Android home screen widget that shows your Claude Pro usage at a glance.
Features
- SESSION bar — current 5-hour window utilization with reset time
- WEEKLY bar — 7-day rolling usage with reset time
- Tap the widget to open the app; tap ⟳ to force-refresh
- Responsive: works as 4×1 (compact) or 4×2 (full)
- Auto-refreshes every 5 minutes in the background
Install
- Download
claude-usage-widget.apkfrom the latest release - On your Android phone: Settings → Apps → Install unknown apps → allow your browser/file manager
- Open the downloaded APK and tap Install
- Open the Claude Usage app and sign in with your Claude.ai session cookies
- Long-press your home screen → Widgets → Claude Usage → drag to place
Sign-in
The app uses your Claude.ai browser cookies (not a password). In the app, tap Sign In, then paste your cookies from a logged-in Claude.ai browser session.
To get cookies: open claude.ai in Chrome → DevTools (F12) → Application → Cookies → copy the Cookie header value.
Requirements
- Android 8.0+ (API 26)
- Active Claude Pro subscription
Description