I did it several months ago with the Eclipse IDE, using the instructions
here. After installing the base SDK, you add the ADT Plugin to Eclipse and download more components. You then add an Android Virtual Device and test on that.
I was thinking of getting an Android phone, but never did, so I didn't pursue it further.