Added NetworkManager.java for blocking screen while there is no network.