To track time on Android, I use Time Meter, which supports Tasker. But in the configuration screen of Time Meter plugin in Tasker, I don't know how to put the foreground app name to it. Do you know how to do this?
There are many apps that can track time usage: ManicTime, RescueTime, SmarterTime
Q & A