use Usage Statistics API for Android 5.0 or up