Here is an approach to draw a regular polygon using Android OpenGL.

by Satya Komatineni » Wed, 08 Jul 2009 06:57:38 GMT

Sponsored Links
 If you are new to OpenGL and also happen to be experimenting with
OpenGL and Android here is an article that I cooked up that explains
how to draw any regular polygon at any origin on the scene.

The design approach is simple enough: start by defining a regular
polygon with the help of a radius, number of sides and its origin.
Then calculate the vertices for each side of the polygon. Use
GL_TRIANGLES to draw multiple triangles to make up the polygon. Then
have the RegularPolygon provide these vertices and necessary indecies
as an array to the drawing class.

You can see the full article and source code at ;reportId=3189&ownerUserId=satya


Other Threads

1. Geo-Notification / Push Notification Service

Recently, we have had a lot of interest from Android developers asking
about our geo-notifications platform and push notifications webservice
so I wanted to share the basics with the development community here...

You can learn more at but, here is a quick

The Xtify Notifications Platform gives Android developers the ability
to push geo-triggered notifications (or push directly via a
webservice) to the mobile device.  The Platform leverages many of the
key capabilities of Android including customizable Action Intents.

The Xtify notifications platform includes an SDK and server
component.  The SDK extracts location from the device and sends to the
server.  The SDK also opens a channel for delivery of notifications
back to the device.    The server component allows developers to
configure user-specific messaging campaigns that are delivered based
on time and/or location.

The notification is displayed in the notifications bar as well as on a
customizable notification screen when activated.  Click here to see




2. Listen to Virtual Keyboard events when within an EditText

I have confirmed it by making various attempts with this listener, it
will not work for alphabetic inputs from the virtual keyboard on
device. You can use the Tex{*filter*}cher instead which can serve the
purpose if you dont want to specifically catch the onKeyUp() and
onKeyDown() events. It works pretty fine.

You can try adding the tex{*filter*}cher using the
addTextChangeListener(tex{*filter*}cher) on a textView or its subclass

Hope this helps!


3. Display (and position) video on top of other graphical content

4. activity focus

5. How to search local banks..?

6. My installed app wont display on home screen in emulator

7. how do i get the android unique id??