Build multiple (test/prod) versions of Android APKs in Eclipse

Viewed 7280

I'm looking to optimize generating of slightly different APKs of the same Android app, the only difference being the http API server it's using (dev/staging/prod).

Ideally, I'd just want my Eclipse to build 2 APKs, one with the prod server and one with the dev one.

I'm even OK with having 2 Run configurations, but I haven't been able to figure out how to pass parameters to the app and read them from the code.

I want to target 1.5, BTW, and I'd like to use Eclipse auto-build tools, so I'm looking for the most generic solution.

Thank you.

5 Answers
Related