Pausing the main thread will make your app unresponsive. Pausing for more than 5 seconds will crash your app with: "Application Not Responding" dialog.
You can implement a "busy loop" method:
B4X:
Sub WaitFor(Milliseconds As Int)
Dim s As Long
s = DateTime.Now
Do While DateTime.Now < s + Milliseconds
Loop
End Sub