Avoid the interaction of the main thread with the network for android
use.