开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜