Best solution is to keep screen on.
Add android:keepScreenOn="true"
in your layout XML resource for this activity. So long as that widget is visible on the screen, the screen will not turn off automatically.
Also use the permission:
<uses-permission android:name="android.permission.WAKE_LOCK" />