Is it possible to set Android apps to connect to dev servers?

By : Eno
Source: Stackoverflow.com
Question!

When building desktop or web apps, its easy to add fake hosts file entries so apps will connect to dev servers instead of production ones - is something similar possible for Android apps?

By : Eno


Answers

You can't edit the /etc/hosts file on most Android devices, since you normally don't have root access.

A better option is to just build a preference into your application that allows you to specify which server your application can use when establishing it's connection.



This video can help you solving your question :)
By: admin