How do I install the same Android App .apk twice on the same device?

Todd picture Todd · Apr 6, 2011 · Viewed 17.3k times · Source

I have one project in Git that I develop with Eclipse that I need to create a Production ready .apk and a Dev .apk to be installed on the same device.

The change between the two is minor property settings, such as XML feeds, etc.

With or without Eclipse, what is the best practice to create the Producion and Deve .apk files to be installed on the same device?

Answer

skorulis picture skorulis · Apr 6, 2011

The only way I've found to do this is to change the package name. Technically this only has to be done in the manifest file but this will likely cause some build errors so you will probably have to rename the package as well. so if you have com.company.app you might change it to com.company.app.dev and com.company.app.prod. Eclipse should handle all the code renaming for you as long as you aren't using any reflection.