novoda/merlin — pull request #34 by Mecharyry (2014-09-10 09:39:18+00:00)
Title: Issue 29 Network State

This pull request addresses issue #29 Provide the Current Network State.

Just adds two methods into Merlin class which will retrieve the network info from a given context and return the network status.

I was tempted to create a dummy Application in the android manifest and have it static so that you would not be required to pass a context in order to retrieve a network status, but there wouldn't be any guarantee that the onCreate would be called before someone tried to access the isConnected method.

If you think method two would have been better let me know and I will adopt that one instead :smile: