Update Toast.java

Added scan networks function and code refactor