Re: [android-developers] OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-18 Thread Romain Guy
An app can only use 16 or 24 MB of RAM, depending on the device. A VideoView or a GLSurfaceView takes up a lot of RAM by the way (a fullscreen surface view requires width*height*2*2 bytes of memory for instance - if it's 16 bits.) On Wed, Aug 18, 2010 at 10:41 PM, Luca Carlon wrote: > Hi! I have

[android-developers] OutOfResourcesException when using GLSurfaceView and VideoView

2010-08-18 Thread Luca Carlon
Hi! I have an activity which uses a GLSurfaceView to render some graphics. Now, I created another activity, which is started from the first when pressing a button, which plays a video using a VideoView. The problem is that, for some reason, very often I get a OutOfResources exception from the Surfa