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 AsyncTask
MyActivity
IS A Activity
MyActivity
HAS ONE MyBackgroundTask
You 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 FragmentActivity
MainActivity
HAS SOME fragments
. The fragments
are of type String
.