Mobile apps are more often than not, about working offline. Even within our modern society, we're still going places were a connection is not guaranteed. But we still want our apps to work like they should.
In this post I'm going to explain to you a trick to know when you are connected or not, so you know when your app needs to go offline. <!--more--> <h2>Getting the network status</h2> The first thing you need to know, to decide whether or not you should be working offline, is the network status of the phone.