Something in my initiation is causing the app to crash. I'm fresh out of ideas if anyone can help I will be greatfull
<p>The catlog says that the first for cycle completes and the crash happens at the second one.
This is the <code>init</code> method for a very simple game.</p>

<pre><code>private void init()

{

            Resources res = this.getResources();


            int x=R.drawable.crystal0000;
            for(int i=0;i&lt;=100;i++)// This for completes
            {
                Bitmap b=BitmapFactory.decodeResource(res, x+i);
                Log.d("crystalframes loaded", Integer.toString(i));
                crystalframes[i]=Bitmap.createScaledBitmap(b, 20, 20, false);
            }// Nothing after this points goes trough 
             x = R.drawable.frame0;
            for (int i = 0; i &lt; 10; i++) {
                Bitmap t = BitmapFactory.decodeResource(res, x + i);
                Log.d("frame", Integer.toString(i));
                frames[i] = Bitmap.createScaledBitmap(t, 40, 40, false);
            }
            x = R.drawable.rframe0;
            for (int i = 0; i &lt; 10; i++) {
                Bitmap t = BitmapFactory.decodeResource(res, x + i);
                Log.d("frame", Integer.toString(i));
                frames[i + 10] = Bitmap.createScaledBitmap(t, 40, 40, false);
            }
            // Code continues from the here but the crash is caused somewhere 
</code></pre>

<p>in these lines</p>
