Generate list of actions at build time

... to avoid having to scan the DEX file at run time. Accessing
(and then closing) the DEX file at runtime causes segfaults
on some versions of Android.
Merge pull request #271 from ksperling/avoid-dex-scan

Generate list of actions at build time