I am creating a app with 160 plus images all are between 150 and 300KB. And after testing the app in crashes giving me a out of memory error. I have read posts on here about that but when i implement bitmap.recycle() it gives a me a red line underneath the bitmap.
heres my code:
next.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
final ImageView imageView = (ImageView) findViewById(R.id.iM1);
imageView.setImageResource(R.drawable.sample);
bitmap.recycle();
slider.animateClose();
}
});
Can anyone plese help?