On Fri, Jun 8, 2012 at 11:12 AM, Francisco M. Marzoa Alonso
<[email protected]> wrote:
> Hi there,
>
> When I develop a dynamic web site I used to change the /etc/hosts file
> on my linux boxes and the equivalent on Windows ones to test the site on
> different browsers, so I add a line in the way of:
>
> 192.168.1.21        devel.mysite.com
>
> So when I put http://devel.mysite.com on a browser, it connects to my
> development Apache server.
>
> So what I'd like to do it is the same on my Android device, I think I
> cannot edit /etc/hosts file on it at least while it is not rooted, but
> if there is other way to do this it will be enough.
>

That's right, you'll need root to do this..  typically mods do this
sort of thing to disable ads across the system...

> I know there are complexer ways to do this, like setting up a DNS server
> on my own network and give it through DHCP to the device when its
> connected to my WIFI access point, but I rather like to do it in a
> simpler manner if there is any...
>

Hmm.. That's also right, you can't really modify the system internals
without root or firmware mods, but, as you note, setting up DNS,
etc...

Wait, why are you doing this again?  Is this something you want to
work just for your development device, or do you want it to work
across apps?

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to