I like to include some build variables in my application. For example a buildnumber. Can I pass some variables from a ant build script to my Android application and use that var
One thing you can do is to first use the "echo" task to create a properties file. That task supports variable substitution, so you can include all build variables. Then include that properties file in your application jar and use the Java Properties to read them.
See: