I'm trying to create a class diagram for an android project. I want my classes represent the activities, services and interfaces that I will implement.
There are several questions about it on the web, but I couldn't find a definitive answer.
I know that there aren't specific rules for Android and UML, but I have some doubts.
Maybe if someone has an example, will really help.
Maybe something like this?

MyBackgroundTask IS A AsyncTaskMyActivity IS A ActivityMyActivity HAS ONE MyBackgroundTaskYou can use a dependency to show that there is an relationship between the AnActivity class and the AnotherActivity class:

In this case, it means that the AnActivity class requires the AnotherActivity class for its specification or implementation. Also, use notes to make it clear.
Update:
Another example:
MainActivity IS A FragmentActivityMainActivity HAS SOME fragments. The fragments are of type String.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With