In the thread
B4A ScreenRecording, I am attaching a sample app. In this sample app, there is a method which calls StartRecording. Currently users have to tap home button to get rid of the sample app activity and this get fetched in the recording. By using
moveTaskToBack(), activity will move back into the background and the home screen is immediately visibile.
Of course, it is up to the users to handle this (they can implement a timer so recording does not start immediately) but I saw another app using
moveTaskToBack() and I couldn't find it in B4A.