[android-developers] is GLSurfaceView life-cycle the same as Activity that own it ?

2009-12-02 Thread LemonDev
what puzzle me so much is that i can't destroy a GLSurfaceView while i don't want to exit the activity. the fact is when i destroy a GLSurfaceView which had show in the screen (that means it has binded to the activity's SurfaceHolder), the activity exits without any prompting. Perhaps ,the

[android-developers] Re: is GLSurfaceView life-cycle the same as Activity that own it ?

2009-12-02 Thread LemonDev
午10时17分, LemonDev lem...@gmail.com wrote: what puzzle me so much is that i can't destroy a GLSurfaceView while i don't want to exit the activity. the fact is when i destroy a GLSurfaceView which had show in the screen (that means it has binded to the activity's SurfaceHolder), the activity

[android-developers] GLSurfaceView not responsible when removed from WindowManager

2009-11-30 Thread LemonDev
my GLSurfaceView is added by WindowManager.addView,aims to do some animation ,but when it finishs the animation, i remove it by WindowManager.removeView , it is freezed,and the logcat prints a log: SurfaceComposerClient : lock_layer timed out (is the CPU pagged ). i have called the

[android-developers] Re: Slow OpenGL on Samsung Galaxy - solution

2009-11-26 Thread LemonDev
i guess your Samsung Galaxy using the cell of Qualcomm 7201A(or nearly), it comes into a conclusion that a version of libhgl.so that qualcomm provided are not correctly returned when call eglChooseConfig . i have encounted that problem as you. so just setup your own EGLConfigChooser ,and don't set

[android-developers] Re: Does OpenGL API glDeleteTextures works?

2009-11-26 Thread LemonDev
Texture index of zero is default,you can not delete it. you should always delete textures that you generate by call glGenTexures. On 11月19日, 下午4时57分, BigOne smile2...@gmail.com wrote: Hi all I'm doing a little 3D app programming based on SDK 1.5. I can't change textures in any way with

[android-developers] Re: Screen is dark momentarily when launching OpenGL view (GLSurfaceView)

2009-11-26 Thread LemonDev
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

[android-developers] how to remove statusbar animation when chang to fullscreen.

2009-11-19 Thread LemonDev
when i chage my activity to fulscreen, the statusbar performs an animation,but not disappear immediately. so how can i make the statusbar disappear immediate ? if need to change framework , where is it? i have read the statusbarservice.java, statusbarview.java, statusbarpolicy.java and

[android-developers] Re: what about the Android 3d module file type .gles

2009-11-01 Thread LemonDev
thanks,but where can we learn from about it? On 11月1日, 下午1时02分, Fred Grott(Android Expert) fred.gr...@gmail.com wrote: its a graphical layout engine script file, hence the name On Oct 31, 2:08 am,LemonDevlem...@gmail.com wrote: GlobalTime use this file type ,but i have found nothing about

[android-developers] what about the Android 3d module file type .gles

2009-10-31 Thread LemonDev
GlobalTime use this file type ,but i have found nothing about it in the Android documents .and also no discussions on the internet . so , how can we export a gles file type from others like 3DMax... -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] GLSurfaceView show initially with black background before rendering first frame?

2009-10-14 Thread LemonDev
when i create a GLSurfaceView to render a textured cube, and i add this new glsurfaceview to my FrameLayout to do some animation , it first shows a black background, and then my cube begin to rotate. so is there any method to avoid the matter? otherwise , it seems terriable to be an animation.

[android-developers] what does SURFACE_TYPE_HARDWARE really mean?

2009-09-27 Thread LemonDev
In android's documents: Surface type: creates a suited to be used with DMA engines and hardware accelerators. does it mean that if i don't have hardware accelerator, this parameter has no effects? or if i want to accelerate my opengles application ,then i should use this parameter? anyone

[android-developers] How to use hardware acceleration in OpenGL ES

2009-09-23 Thread LemonDev
i draw a cube with two sides textured(320*430 png) and let it rotate between the two sides, but it's sad to get a 16 FPS on emulator and 9 FPS on the real phone. i don't known whether i have used the hardware acceleration on my phone. so i tried many parameters in OpenGLES ,finally i found i

[android-developers] there are only five animations for android? how can i extend this feature

2009-09-01 Thread LemonDev
as we known we can use predefined animations in android developing, they are : alpha animation, scale animation, rotate animation, translate animation and skew animation(extend animation using Matrix's setSkew function). though ,we can implement other effect using the Matrix, but it can only

[android-developers] Re: there are only five animations for android? how can i extend this feature

2009-09-01 Thread LemonDev
to write yourself), and then you can draw the bitmap. On Tue, Sep 1, 2009 at 7:14 PM, LemonDev lem...@gmail.com wrote: as we known we can use predefined animations in android developing, they are : alpha animation, scale animation, rotate animation, translate animation and skew animation

[android-developers] can i dynamic cre ate a third part view in my activity?

2009-02-18 Thread LemonDev
dear: can i embed a user created view( like Button ) into my activity from another apk dynamic. as like developing in VC++ , i can dynamic create and embed a third part component in my application. does it works in android application ? --~--~-~--~~~---~--~~

[android-developers] cannot debug Launcher

2009-02-18 Thread LemonDev
this is a strange problem puzzled me so much . when i remove Launcher.apk from System.img and add another Home.apk into it , i just want to debug the Launcher . when i start to debug within eclipse,it can breakout ,but can not go to the source code and a .class file showed instand, it said