Search code examples
androidjunggraph-visualization

Can you run JUNG graph visualization in an Android Application?


I am a newbie when it comes to android graphics. I was implementing some code into a machine learning project I am working on. I wanted to be able to load the data into JUNG and have it visualize a 3 dimensional graph inside an android application.

Is this possible?

What recommended sources should I look into regarding this?

Should I be implementing this into an application? VisualizationViewer Link


Solution

  • Yes, you can, if you must. Steps to include JUNG into your Android app

    1. Copy the jung library file into libs folder
    2. Select jar file -> right click -> Build Path -> Add to Build Path
    3. Clean the project Project-> Clean -> select your project -> ok

    But there are better, and more popular Android graph libraries

    1. ChartDroid
    2. AndroidPlot
    3. AChartEngine
    4. WilliamChart

    I would suggest using these instead, as they have a much larger community, which means better support.

    Some good examples of 3D plots are given here

    [EDIT]

    OP mentioned that JUNG is a Java Swing Library.

    Apparently there isn't any program out there that I know of to convert Swing to XML. The Java code and the android code are very similar. Once you get the ui functions of the android app down your Java code can be easily imported.