I\'m using the following code to set marker with user\'s own image in his/her gallery. But I get out of memory error all the time so I guess my implementation is wrong. Another
You are trying to put 4 Mpix image as a marker icon. That doesn't seem like a good idea.
Load it as a Bitmap, scaling it down to reasonable size.