JSOUP
when the device internet does not work (or is turned off) exits the program.
but it works without problems (without app crash) while the internet is running.
if the program enters this coded part of the program without the Internet, the program will crash. the program should not crash when I access this coded part without internet. just a toast message that the internet is not available is enough. how can i do?
EDIT:
the problem is when I don't add a toast message.