Android Question moveTaskToBack in B4A

moster67

Expert
Licensed User
Longtime User
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.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I tried Activity.Finish but the video output files seemed to become corrupted and was not playable.
Note: I haven't researched why this happens with Activity.Finish but moveTaskToBack() works fine so I am cool with it
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…