问题
I have an android app with two different res folders (res-1, res-2) containing all layout specific and one shared package. Using ant, I can release and install on my device only one of the two versions of the app at a time. What I want is to release and install them both in the same time, in order to be able to see and test them both on my device. Any suggestions how to achieve this ? Thanks in advance.
回答1:
It's impossible to install two apps with the same package name, the existing one will be overwritten with the new installed. Rename the other package would be a solution. Maybe testing one in the AVD and the other one on the device?
回答2:
Why not just include all the resources, and then at run time determine which is correct?
来源:https://stackoverflow.com/questions/14837927/how-to-release-and-install-two-versions-of-the-same-android-app-using-the-same-p