I want to launch two different android apps from one neutral project but the installed app will be only neutral one, and in that there will be two different buttons to launch(open in that app only) resp. project.
Asked
Active
Viewed 85 times
0
-
1Possible duplicate of [Can we have multiple apps in one Android Studio project?](https://stackoverflow.com/questions/32419621/can-we-have-multiple-apps-in-one-android-studio-project) – AskNilesh Dec 20 '17 at 05:48
-
see product flavors – hemen Dec 20 '17 at 05:51
-
you can you flavors : https://www.youtube.com/watch?v=7JDEK4wkN5I&t=322s – user7176550 Dec 20 '17 at 05:56
1 Answers
-1
you need use flavores in gradle.
apply plugin: 'com.android.application'
android {
defaultConfig {
//...
}
buildTypes {
//...
}
productFlavors {
app1 {
// config for app 1
}
app2 {
// config for app 2
}
}
}
dependencies {
//...
}
see this link for learn about flavors

Rasoul Miri
- 11,234
- 1
- 68
- 78