Reputation: 2571
I'm new to Android development. I crated a project with two packages, each having their own launcher activities i.e, its kind of each package can be a separate application. Now is it possible to create a apk file for each package separately?
Upvotes: 0
Views: 441
Reputation: 17960
When using the new build system you can create a separate apk for each buildType and flavor with different package identifiers.
This is kind of a steep learning curve for a beginner, but definitely worth it as it reduces the overall overhead for your purpose. Also it's the future.
Upvotes: 0
Reputation: 52528
You can create a library project, that contains the main logic of your app.
And then you create two seperate projects that contain the application specific logic, launcher activities, icons, etc.
The application package's rely on the library for shared logic, and you compile them to their own apk.
Upvotes: 1
Reputation: 47817
Now is it possible to create a apk file for each package separately?
Sorry but what you asking is not possible. Every project has always built only one apk.
but you can archive this by creating two different project with different Package Name
.
Upvotes: 3