Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to generate sequence diagram from android studio

I have created sample android project. Now i have to create sequence diagram for that. Is there any way to automatically generate sequence diagram for android project from android studio.

like image 633
venkatesh gowda Avatar asked Nov 24 '16 11:11

venkatesh gowda


People also ask

Can Android Studio generate class diagram?

Unfortunately, Android Studio does not support the generation of class diagrams out of the box, which forces us to choose from the following options: Use plugins or third party programs such as CodeIris or PlantUML. Use class diagrams from Intellij Idea Ultimate.

Can IntelliJ create sequence diagram?

In order to generate such diagrams you need to install a plugin for IntelliJ. Open your project in IntelliJ, click on: File → Settings → Plugins and type SequenceDiagram in the search field. There are a few more plugins that can generate diagrams, but I chose SequenceDiagram due to its popularity and constant updates.

What software is used to make sequence diagrams?

Lucidchart. Lucidchart is one of the highest-rated diagramming tools currently on the market. They offer a wide variety of diagram templates, a full shapes library, and impressive collaboration features.


2 Answers

Finally I got the solution.

I have installed a plugin, previously called SequencePluginReload from Android Studio, now called SequenceDiagram

It is very easy to use and works like charm.

Example

like image 102
venkatesh gowda Avatar answered Oct 20 '22 21:10

venkatesh gowda


I have downloaded SequenceDiagram suggested by @venkatesh in above answer, but didn't understand how to use it. After searching I found how to use it.

  1. Download the zip file in the above link.
  2. Go to Android Studio>Preferences in Mac. For Windows File>Settings.
  3. Search for Plugins in search box. Then in right click on 'install plugin from disk'. Browse for the downloaded zip and select it, then Apply and it will show icon to restart android studio. Do it.

  4. Now go to any method in your java file and right click on it and click on 'Sequence Diagram'. And you will find your diagram in a tab besides Debug,Terminal, version control etc.

like image 40
Murli Avatar answered Oct 20 '22 21:10

Murli