Normally we build android package in debug mode with the command
ant debug
and got the apk filename AppName-debug.apk.
Another, more Android-like solution is to use the XPATH task as it is done in the ${sdk.dir}/tools/ant/build.xml:
This requires the definition of the task:
I don't know which is the minimum SDK version, but it works with SDK14.
Regards, Michael