UML diagrams + Android

综合技术 2017-12-31

I've been developing an Android app for a while but I didn't start with any particular diagram. And now comes the time to do some real diagrams but I don't know how. Not because I'm not familiar with UML but because of Android and it's components.

For example, my app requires that the user needs to be logged in in order to see a menu. From there the user can choose the options he wants. The user can also do his registration.

Although this might be a silly and simple example...The point is...I didn't use any class named "Person" with getters and setters; or any class named "Request" with getters and setters and other methods. My app use classes like "Login.class", "SignIn.class", "MenuActivity.class", "HistoryActivity.class".

My question is...how do I use UML for an Android app? I mean I can't have a conceptual model diagram that says "Person"-----"Request", right?

Thanks in advance.

I think you are confused with different types of UML diagram types,

There are,

Structural UML diagrams

  1. Class diagram
  2. Package diagram
  3. Object diagram
  4. Component diagram
  5. Composite structure diagram
  6. Deployment diagram

Behavioral UML diagrams

  1. Activity diagram
  2. Sequence diagram
  3. Use case diagram
  4. State diagram
  5. Communication diagram
  6. Interaction overview diagram
  7. Timing diagram

And more, I think you are talking about Class diagram. Since class diagrams are technical and are targeted for the development team, It is totally fine to have all these Login.class, SignIn.class, MenuActivity.class, HistoryActivity.class in your class diagram.

But you can use conceptual things like Person, Request ect in your other UML diagrams (eg Use Case). because in these diagram this is targeted for many users not just developers, So using MenuActivity does not make any sense. Using conceptual entities is the way to go here.

Good luck

Hello, buddy!

责编内容by:Hello, buddy! (源链)。感谢您的支持!

您可能感兴趣的

【Android】打造下拉放大效果 前言 在其他App上看到了这样的一个效果,感觉有点意思,于是决定实现一个类似的效果。 ( 其实是iOS的同学在是现功能的时候秀了一波操作 ) 效果大概是这样子的: 下拉放大 UI看完后 “这个效果不错啊” “要不你们A...
38 Amazing Open Source Android Apps written in Jav... 38 Amazing Open Source Android Apps written in Java This is “amazing” series of open source projects. Ope...
Slack是如何使用WebRTC的? Slack是一家线上协作工具,提供聊天群组、工具集成、文件整合等功能,同时,它提供Web和桌面、移动客户端,覆盖了主流平台。2016年,Slack采用WebRTC技术实现了应用内的音视频通话功能。Slack视频组高级主管工程师Raj Kumar将参加9月21日至22日在北京举行的 2017R...
Android 开发者必知必会的权限管理知识 导语 本文主要讲解了Android 权限管理方面几个点: Android 权限背景知识; 权限检查及权限兼容; 跳转到app管理权限页面 一、Android 权限背景知识 提到Android 权限管理,业内人士都知道Google 在Android 6.0时...
Insufficient memory during work I have the following code:- public class ByState extends Fragment { @Nullable @Overridepublic View onCreateView(LayoutInflater inflate...