Android customizing building process
<p>I wish to save the auto-generated resource id in a database at build-time.
How do I capture the generated id, so I can manipulate it?</p>

<p>Example:
I have a layout named main, then android will generate a <code>R.layout.main</code> id. I want to capture this id whenever it is generated.</p>
