title: Android Outofmemory drawable
body: <p>this is my drawable in array for my viewpager, when i run it, i results in out of memory error, is there any way to reduce the image size or etc?
  i do lots of search but i can't use them as well..
  please help...</p>
  
  <pre><code>GalImages = new int[] { R.drawable.tutorials_01_android_en,R.drawable.tutorials_02_android_en,R.drawable.tutorials_03_android_en,R.drawable.tutorials_04};break
  
  @Override
  public Object instantiateItem(ViewGroup container, int position) {
  
      ImageView imageView = new ImageView(context);
      final int temp = position;
      imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
      imageView.setImageResource(GalImages[position]);
  
      ((ViewPager) container).addView(imageView, 0);
      imageView.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View arg0) {}
      });
      return imageView;
  }
  </code></pre>