I agree, but the garbage data by not voiding could be giving you just what is needed to make it work.AFAIK Initializing a method to void or nothing is the same. Using void make us to not parse nothing to the method.
Please show me the code where you test for a working internet connection?Also I prefer option 1 and dislike option 2 because you can have wifi conected but don't have an internet connection!
For example by doing a http get or ping
Last edited by bakawun,