Out of memory handling bitmaps, looking to optimize
<p>I have been having issues loading long images into my app, I often get too large for texture. So i thought I would try to break the images up into slivers and put those together to make the full image, issue is now I am running into an out of memory problem. Here is my code below, any thoughts on what i could do differently to make it more efficient or relieve some of the memory strain? or even if you have a better way? </p>

<pre><code>public void tileImage(Bitmap bm){
    Bitmap tile;
    float tileWidth = bm.getWidth();
    float tileHeight =bm.getHeight()/5;

    if(bm.getWidth()&lt;width){
        width=bm.getWidth();
    }

    for(int i = 0; i&lt;5; i++){

        image = new ImageView(main);

        tile = Bitmap.createBitmap(
                 bm,
                 0, 
                 (int)(tileHeight*i),
                 (int)width,
                 (int)(tileHeight)
                 );
        image.setImageBitmap(tile);
        tiles.addView(image);
    }

}
</code></pre>
