Android customizing building process
I wish to save the auto-generated resource id in a database at build-time. How do I capture the ge开发者_StackOverflow社区nerated id, so I can manipulate it?
Example:
I have a layout named main, then android will generate a R.layout.main
id. I want to capture this id whenever it is generated.
Default android builds use ant
. You should search google how to run a script at the end of the build and parse the R.java
file.
I am more used to maven, and for android you have an excellent android-plugin. Doing it in maven should be very easy.
精彩评论