Below are some steps which can help in avoiding out of memory exceptions while using bitmap
1. We should unbind the drawables; associated with layouts .
2.We should convert our hashmaps to  WeakHashmaps.Doing so will have the effect that the hashmap memory would get relaesed when system runs low on memory
3. We can override onLowMemory() method in activityThis method gets called when entire system runs low on memory. We can release all non critical resources here .Doing so may improve the memeory and application may not be closed by the system for lack of memory .
4. We should call recycle on each bitmap and set them to null.
bitmap.recycle();will relaese all the memory used by this selected bitmap but it does not nullify the bitmap object . To make the object null , we can assign it null i.e btimap == null
If the bitmap is present in drawable folder and it gives out of memory exception during development , we can move the bitmap to drawable-nodpi folder. That also resolves the issue as it prevents scaling of bitmap.