I am working on a camera application. The first time, if I captured the image, it worked fine, but if I take the picture again, it will throw an error
ERROR / dalvikvm-heap (2398): the external allocation of 10077696 bytes is too large for this process. "VM will not allow us to allocate 10077696 bytes" and, finally, "05-02 05: 35: 38.390: ERROR / AndroidRuntime (2398): FATAL EXCEPTION: main 05-02 05: 35: 38.390: ERROR / AndroidRuntime (2398): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
and the power of the application closes. How to handle this, how to clear heap and vm? please help .. Thanks in advance.
Sando source share