Hi Kristopher,

It is just for development, but I do not want to root my own devices
since, you know, I want to try my applications in devices closed to
users ones, that are not rooted usually. Moreover, If I root my devices
it may not work properly with services like Google Play, and I use them
also to check downloaded packages from Google Play and so.

And I have not infrastructure yet to have several devices rooted and
several non-rooted for checking both things. To be honest, I have just
two devices for development: one is my own phone and the other is my
wife's one X-D

Things may be easier if my DLS router and WIFI AP had DNS server
capabilities, but it has not, so I should configure a Bind or something
similar in some of my other computers and then instruct the router to
use its IP as primary DNS server for DHCP configuration.

A pain in the...

The other way could be to do this programmatically, so... is there any
way to configure a host resolution table just within my application
through Android?

I cannot just use the IP addresses directly, because I will access some
virtual servers through HTTP and the requests to these must include its
domain name, since they share the same IP address.

Regards,


On 08/06/12 17:30, Kristopher Micinski wrote:
> 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