How to combine two Android source code easily? -


my app has 2 activities, these activities in different android project separately.

project a: com.myapp.mainactivity  project b: com.other.mainactivity 

now development complete. need combine them in 1 app

for java code, easily, because package different.

but res, such layout, string, values, image. since in same folder, no package, no namespace, got many conflict

now need spend many efforts add prefix each item, , modify source cdoe make work.

is there way combine them without changes?

convert both project library project , add new project or main project.

to make project library project, use

apply plugin: 'android-library' in build.gradle instead of apply plugin: 'android'


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -