I am loading images into memory in android phone so I can pass them into a web service through a webservice.
Sometimes i get out of memory error, i can already catch this exception with
try{
bm = BitmapFactory.decodeFile(path);
}catch(OutOfMemoryError ofmE){
System.out.println("OUT OF MEMORY $$$$$$$$" + ofmE);
}
Although i need to execute this operation, so i need to clean the ram memory. How can i do this? programatically i mean.