It is very common that during development, one may find very useful to lock/unlock the device screen during specific parts of the code.
For instance, while showing a Dialog with information, the developer might want to lock the screen's rotation to prevent the dialog from being dismissed and the cu...