I think on tablets and phones it's a bit more complicated because those devices are generally locked down (or at least that's the intent) so that the average user doesn't screw them up. However, if you
search for this topic, there are some articles discussing how to change the hosts file on Android.