开发者

Android customizing building process

开发者 https://www.devze.com 2023-02-28 03:43 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消