How to have multiple variants of an application on the same device?

view full story

http://stackoverflow.com – I have to maintain relatively large android application. When I make changes and install it on the device, it installs over the previous version, making it unavailable. Meanwhile, I want both versions (changed and unchanged) installed, to compare theirs behavour. So for changed version cloned the code base and changed package attribute in the AndroidManifest.xml. But as a side effect, this causes errors when processing layout xml files: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cyberdyne="http://sch (HowTos)