title: Android loading images efficient (out of memory)
body: <p>I just startet writing an app for Android. I have 3 activitys that use the same xml layout, an grid view. They also use all the same adapter to show an imageview and an textview in each grid item. When you select an object in the first activity, you get to the second and then to the third.</p>
  
  <p>First I used the normal method "imageView.setImageResource(drawableid)". It wasn't really a problem, but when I put more images into the gridview, I got the outofmemory error.</p>
  
  <p>So I search for a solution. I tried the thing from the android dev site with decode bitmap, resize and Async task and so on. 
  The other thing was the picasso library, wich would be very simple with "Picasso.with(mContext).load(imageURI).into(imageView);". But picasso ist to slow for the gridview. It looks messed up while scrolling. And sometimes some images weren't load.</p>
  
  <p>All metodes fill the memory and the app crashes when I open the activities a couple times.
  What am I doing wrong? Can I free up the memory by myself, when I leave the first activity to the second?</p>