I'm developing a media player application in Android. I've an animation(Open Gl Surface View) which should run in background to my Activity when song is being played. Like the animation which we see when we are playing Windows Media Player. How can i achieve the above scenario???
A:
You can add glSurfaceView as a child to your main view.
something like:
mainLayout.addView(glSurfaceView);
this.setContentView(mainLayout);
cement
2010-09-20 13:05:32
A:
Hi
the scenario you describe is pretty vague.
what you'll want is to create an activity that will have a GLSurfaceView with all you animations and interface, and running in a separates Thread your media playing code.
if this is not what your asking please give us more details
Jason