I just started Android development as part of a school assignment. I'm not sure how people efficiently re-compile their code to test them over the emulator? I've followed the first tutorial on the website with the snapshot feature enabled to get instant boot times, but then for some reason after I added a new activity I was getting Exceptions and errors.
The errors were so bad that the button ignored the onClick event. So I decided to wipe the data and run without the snapshot and the application was running fine.
I don't want to wait 40-50 seconds per boot-time every time I change something in the code. I've heard some people say you can even let the emulator on and it will automatically pick up the changes. Is this true even when you add activities to your configuration?
Also, how to you correctly close the emulator? Is it safe to just X out and re-run the app after a change?
One last thing, the tutorial doesn't talk about what the R variable is such as :
setContentView(R.layout.activity_main);
So what exactly is this R?