A. Adjust your phone's settings to prevent it from locking while using the app. Go to Settings > Display > Sleep and set it to 'Never' while using the app, but remember to change it back afterward for security.
B. Use a third-party app that keeps your screen awake while using specific applications. Look for apps like 'Stay Alive!' or 'Screen On' in the Google Play Store.