ensure no network activity takes place on caller thread to workaround android limitation