Hi, My name is Lisa .
I am studying Android development.
So I have a problem
It immediately has trouble with memory.
In the LogCat this error is displayed,
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
I'm using recycle () and System.gc () but I get the same error.
My application, is pressing a button switches to the next image and
the images are 854x480
Loading images from the SD Card.
show the images as follows
Bitmap imageB;
ImageView imgV;
imageB = BitmapFactory.decodeFile ("sdcard / img.png");
imgV.setImageBitmap (imageB);
Release is as follow.
@ Override
protected void onDestroy () {
super.onPause ();
imageBG = null;
System.gc ();
}
please help me out to solve the issu.
sorry for my bad English
--
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