I have an android application that can take a photo from device’s camera.
The photo has a high quality and big size, this photo can be displayed in my activity (PhotoDisplayActivity). I’m aware of OutOfMemoryException, it is included in my task so I tried to change the launch mode of PhotoDisplayActivity to “single task”. If I separate PhotoDisplayActivity to another task, does this separate also memory and avoid OutOfMemoryException ??
Thanks,
No. Tasks control things like the behavior of the BACK button and the recent-tasks list.
Running that activity in a separate process will give you an independent heap, but not running it in an independent task.