Use Http(s)URLConnection instead of Apaches HTTPDefaultClient, remove
the
On from OnActiveProfileChangedListener.