How to release two android apps with same source code but different package names without refactor
I am looking for ways to release two android apps with same source code without any changes but with two different package name without refactoring.
Ho开发者_运维知识库w do I do this?
You need to:
- Refactor code to change package name in a IDE (like a Idea or Eclipse)
- Change package name in AndroidManifest.xml
- Build an sign the application.
What exactly is causing a problem?
when ever you change package name to Refactor but in R file will not package name so and android market consider R file package name.
Change package name in AndroidManifest.xml file now R package name will automatic change. now change old src package name new one. make sure activity is proper mapping.
What is bothering you? Just go ahead and release it with different package names. Make sure you make suitable refactoring in the code as well.
精彩评论