theJuls
theJuls

Reputation: 7470

How to include Android activities and screens in a UML class diagram?

I need to make a class diagram in order to document an application I have been developing. The original one, which was used for me to plan the implementation is as follows:

current class diaram

Unfortunately this is incomplete since I have no idea how to show the Activities that compose my application. The activities would be where the presentation package is. I looked through some similar questions on this site, it seems like some suggested to make a separate diagram just for the Activities, would this really be the case? If not, how would I include them all into one class diagram?

Upvotes: 2

Views: 8396

Answers (1)

Aleks
Aleks

Reputation: 5864

UML has 14 diagrams to show different aspect of your app. You should use different diagrams to show different aspects, basicaly broken into structural and behavioral aspects.

Classes show the structure of your system, while activities show its behavioral features. Activities are used to show wide range of behavior, going from overall usage scenarios, down to single method algorithms. Of course, you don't need to document each single aspect in UML, that would probably be waste of effort, so you should wisely chose some meaningfull things to show.

It's always better to have several simple diagrams than a single large one. Even this class diagram you posted as an example is too lagre and complex to be useful. I recommend you to break in into several simper ones, even to structure the classes into packages and provide a bird-view package diagram with dependencies.

Upvotes: 1

Related Questions