Android host entry

What is the procedure for placing a host in an android host file? we have done the following. The URL was recorded in the hosts file on Android using the cmd cmdlet (File Explorer β†’ System β†’ etc β†’).

127.0.0.1               localhost
xx.xx.xx.xx             www.example.com

For reference, please visit http://www.bradcurtis.com/2011/02/13/hosts-file-google-android-emulator/

But when we run the program, the host record is not read by android. It is going to get ip for DNS, for which we have already made an entry in the hosts file.

Can anyone suggest how to add an entry to the hosts file for Android so that the entry can be read at runtime.

+5
source share

All Articles