I want to get the Usage time of all those applications which i have used today.
As i am getting the those details by dialing *#*#4636#*#*. But i want t
*#*#4636#*#*
From Android 5.0 we can use android.app.usage.usageStats to get the total time an app has been used by accessing getTotalTimeInForeground(). For more details, refer here
android.app.usage.usageStats
getTotalTimeInForeground()