image - Android - how to avoid memory over load using bitmaps? -


my application using bitmaps , every time user come specific activity shows image second time stops working.

bitmap bm = bitmapfactory.decodefile(environment.getexternalstoragedirectory()+"//pics/"image.jpg"); 

i have tried using things like...

bitmapfactory.options options = new bitmapfactory.options();      options.intempstorage = new byte[16*1024]; 

not sure set too. doesnt help. once user leaves activity there not way clear bitmap etc? thanks

call bitmap.recycle() when done using bitmap free memory.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

c# - HwndSource win32 integration with Ribbons and KeyTips -