How can I render a java code in android. I should show graphs with added functions in android.
This question is related to this topic: http://www.java-gaming.org/topics/random-undirected-graph-generation/34700/msg/327542/view.html
What do you mean by “render java code”? Do you mean “writing Java code to draw something in Android”? Or do you mean “displaying syntax-highlighted Java code in an Android text editor”?
Assuming you mean the first, then, uh, you just write Java code that works on Android. Do you have a more specific question than that?
This is the first result for googling “java android tutorial”: https://developer.android.com/training/basics/firstapp/index.html
I know that Java codes are working under android, but I do not know how to give some fancy visualization to my graphical objects.
I still don’t see the question. You could just use OpenGL, so the question and answer are not really Android-specific…
http://www.learnopengles.com/android-lesson-one-getting-started/
I would prefer the use of libgdx’s tools, like ShapeRenderer, but I don’t know exactly how to implement this on a given visual output.
OK, I don’t use LibGDX myself, so I can’t help you. But isn’t LibGDX cross-platform so once more the “android” part of your question is just irrelevant?
Partly irrelevant yes, the core project is simple Java, I know.
What problem are you having using libGDX?
From looking at your other thread, it appears you want to draw shapes, such as lines, circles, etc, is that correct? If so, there is a ShapeRenderer class in LibGDX:
libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/ShapeRenderer.html
Yes, it is ok, but how can I use the code above with ShapeRenderer?