I've to draw squre using a lines, which will look like as following url.
http://www.thinkingwriting.qmul.ac.uk/wishees/tutorials/square.gif
Could you please tell me how to draw it in android using opengls GL_LINES or GL_LINES_STRIP
This is fairly simple, assuming you already have a working OpenGL context:
glLineWidth
)GL_LINE_LOOP
or GL_LINES
(depending how you set up your vertices)Take a look at this introduction to vertex buffers to get an idea of where to start. There are some much simpler tutorials but this one offers more background than most.