Reputation: 5186
I am working on some application that has different type of users namely a mechanic and a customer. Now I have two solutions
Pro: Modular application,manageable and lesser size .
Con: Code redundancy like login pages for both apps.
Pro: One application caters so overhead saved.
Con: Lot of thinking and flexible arch. In place is needed.
I am kinda confused ,if someone can guide me with this.It'll be great. Some sort of examples and links would be superb. Diagrams would also do.
Upvotes: 0
Views: 83
Reputation: 55370
I guess the most reasonable option would be to have:
That way you can reuse the common parts (no duplication) and still keep the specific parts separate.
See Managing Projects in the Android documentation, this precise scenario is listed as one of the main use cases for library projects:
If you are developing multiple related applications that use some of the same components, you move the redundant components out of their respective application projects and create a single, reuseable set of the same components in a library project.
Upvotes: 1