I'm using ADB to show Waiting Time Activity on launching app, the command I used is : adb shell am start -S -W com.example.app/.MainActicity -c android.intent.category.LAUNCHER -a android.intent.action.MAIN
here's the result :
So, my question is how to get programmatically the waitTime value ? thanks.

As suggested in the comments sections, having a Linux-based terminal you can retrieve the WaitTime programmatically by parsing the output of the the
am startcommand and filtering the value like this:whereas
grep -i waittimefilters the line containing the waittime and thecutcommand retrieves the value itself.Hope this helps.