Login and register sequence diagram for android application

When the user logs in using the Login activity their information is checked in a database. A response is then send to the Login activty telling the user if their login attempt has been successful. enter image description here When a new user registers, the data they enter is validated in the Register activity. Their information is then send to the database. The database will then send a response letting them know if it was successfully entered. Register sequence diagram Is this the correct way to illustrate these actions in sequence diagrams?

6,459 3 3 gold badges 23 23 silver badges 49 49 bronze badges asked May 2, 2016 at 19:47 codester124 codester124 41 1 1 silver badge 6 6 bronze badges By "activity" do you mean the Android class or something more abstract? Commented May 3, 2016 at 16:36

Welcome to StackOverflow, @codester124. If you found an answer to your question, please consider accepting it (by clicking the check-mark), and consider up-voting it (by clicking the up arrow). Accepting an answer indicates to the wider community that you've found a solution, gives yourself some reputation points, and gives some reputation points to the person who answered your question. If you did not find a satisfactory answer to your question, please leave a comment.

Commented May 13, 2016 at 2:31

1 Answer 1

The vertical lifelines typically do not represent activities, they typically represent instances of classes. (Yes, it is syntactically possible in UML to use an activity, but it is a very strange thing to do.) Those instances are usually typed by classes or interfaces that either have operations or signal receptions that can be invoked via messages. Moreover, in UML, there is no message kind that has a white arrowhead.

Therefore, no, those diagrams are not quite the correct way to illustrate the actions in a sequence diagram.