set a background bitmap before you rendering opengl , and as soon as to to render the second frame ,you can move background away!
the key point is to set the background bitmap to the same appearance of first activity( i think in your situation is your first homescreen ). this is my solution i implements on my application. good luck! On 11月10日, 上午11时06分, Luke <[email protected]> wrote: > Dear all. > > i found a key point, when i execute the clear color and depth buffer > only in StaticTriangleRenderer. (glClear(GL_COLOR_BUFFER_BIT | > GL_DEPTH_BUFFER_BIT)) > it will make the screen flicker. > would you please provide your experience about this issue? > thanks a lot. > > Luke > > On 11月3日, 上午2時16分, Luke <[email protected]> wrote: > > > > > Dear all, > > I want to implement the transition effect ( transparent with Z axis ) > > when user slip the android home to change home page. > > therefore, I plan to launch the new activity that is implemented by > >OpenGLES to perform this effect. > > However, i encounter a problem that the screen/display is dark > > momentarily when launching theOpenGLES activity. > > would you please share your experience about this issue? > > thanks a lot. > > > BTW, here is my implement procedure for your reference. > > 1. Create a new activity and new a GLSurfaceView. > > 2. Set the theme parameter in AndroidManifest.xml to make a > > transparent background for activity (android:theme="@android:style/ > > Theme.Translucent") > > 3. Make transparent background for GLSurfaceView (refer the API demo > > source - setEGLConfigChooser) > > 4. Implement the setRenderer function for GLSurfaceView. > > 5. in render calss, I just refer the StaticTriangleRenderer.java of > > API demo to add a texture on triangle and rotate. > > > Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

