Allow pausing in java to emulate pausing on an iOS device.

This should help debug complex lifecycle issues without the iOS turnaround times.