I am developing an android image capture application using opencv library(face-detection sample). My aim is to capture 5 images and send it to my webservice. After capturing image, convert the Bitmap image into base64 string and store into string[]. Finally I send this string[] to web service. This application working in my emulator. But when I check with my android tablet it throws "Grow heap (frag case) to 7.827MB for 1228816-byte allocation" exception and exit the application. After searching in the internet I found some of the links regarding this.
link-1: Android grow heap frag case
link-2: how can I clear growing heap?
But they didn't tell what I'll do If the problem exist. After saw some links, I think this may because of memory leak. But I don't know what to do. As I am new to the android, Can you give me some suggestions regarding this would be great.
I have attached my log file in the following link. http://pastebin.com/82VxhBmz