How to release and install two versions of the same android app using the same package on the same device

时光怂恿深爱的人放手 提交于 2019-12-07 17:50:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!