Changed AsyncTask to Thread, for some reason AsyncTask wasn't running.
Also added API compatability for airplane mode checking
fixed data sync-on-connected