How do you do local development?
I'm an old-time web developer but new to mobile development. I'm trying to figure out how to go about doing local development and testing for android tablet devices. My usual development scenario involves a local instance of Apache with virtual hosts. For example, I'll have numerous sites under local development:
I resolve these sites locally with /etc/hosts pointing to 127.0.0.1
Here's my problem. Once I compile and debug the android app on the tablet device, it needs to phone home to the web server. However, I don't seem to be allowed to edit the /etc/hosts on the Android device. Wtf?
How do you guys deal with this problem? I'd prefer to do testing on the device itself rather than an emulator. Any suggestions?
Here are the only things I can think of and I don't like either:
1) Root the tablet (this seems like a pain)
2) Push all local coding changes to a test server for every debug session and have the tablet communicate with the test server
I don't like the second option because with multiple developers touching a test server, it is certain that we will be stepping on each others' toes and intermittently and erratically breaking code. Plus it's not efficient, and I don't like committing unnecessary changes.
How do you guys do local development efficiently?