Question: Every time I run my app in Xcode on the iOS Simulator, the folders in the project navigation pane all reset to just showing the closed top-level folders. 

I then have to re-drill-down to the code, opening all the folders on the way; but then when I run the app again we're back to square one.

There's presumably a really obvious settings button somewhere that I'm missing and have hit by accident, as I don't recall it doing this in the past. Can anyone point me towards it?

Answer: 
Try this for scaling the bitmap

```
final BitmapFactory.Options options = new BitmapFactory.Options();
                            options.inJustDecodeBounds = true;

                            /*
                             * If set to a value > 1, requests the decoder to
                             * subsample the original image, returning a smaller
                             * image to save memory. The sample size is the
                             * number of pixels in either dimension that
                             * correspond to a single pixel in the decoded
                             * bitmap. For example, inSampleSize == 4 returns an
                             * image that is 1/4 the width/height of the
                             * original, and 1/16 the number of pixels. Any
                             * value <= 1 is treated the same as 1. Note: the
                             * decoder uses a final value based on powers of 2,
                             * any other value will be rounded down to the
                             * nearest power of 2.
                             */
                            options.inSampleSize = 2;

                            // Decode bitmap with inSampleSize set
                            options.inJustDecodeBounds = false;

                            bitmap = BitmapFactory.decodeFile(path, options);

```
Thanks a lot to all for all of ur answers. 

I thought that I should use inJustDecodeBounds option and load resized bitmap, but In need a fresh view to this problem of more experienced persons. 

I also thought about using Universal Image Loader for loading and caching large images and something like ScaleImageView for Zooming it. 

There is [something](http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html) that can solve my problem. Load bitmap partially.