12. Activityが消えない例 // ダメなプログラム Drawable mDrawable; @Override Public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ImageView imageView = new ImageView(this); if(mDrawable == null) { mDrawable = this.getResources().getDrawable(R.drawable.hoge); } 実は内部で imageView.setImageDrawable(mDrawable); mDrawable.setCallback(i setContentView(imageView); mageView)になって } る! ImageVi
![勉強会資料Out ofmemory](https://cdn-ak-scissors.b.st-hatena.com/image/square/5aaae7130a24fddf8e6354b3b7c7c235307c8333/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Foutofmemory-121220061014-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)