How come building android package (and classes.dex) takes so long? Can you "re-run" activity?

Android development is pretty slow because it takes about 17 seconds (on my machine) just to build the android package.  Then to install the package and start the activity (or test) takes about another 5-10 seconds.  How come this is so slow, and is there any way to speed it up?  From what I recall about using Eclipse recently it was much faster.

Also, sometimes I want to just restart my activity (without making any code changes) but IntelliJ still goes through the whole process of building classes.dex, package and installing package.  This seems dumb, since it should detect I have not changed the code!  Is there any trick to get intelliJ to "re-run" activity (or test) without rebuilding?

Please sign in to leave a comment.