I am developing an android application in which I have to upload image from sdcard to internet. For this I am using MediaStore content provider and getting the image path from MediaStore.Images.Media.DATA column and now what I am doing is that creating a bitmap from that path using Bitmap.decodeFile(String path) method and then displaying that bitmap in a ImageView in a List. The problem I am facing is when I try to go to the activity which is showing this image in list I am getting an error like this 10-20 11:10:47.070: ERROR/AndroidRuntime(922): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
Can anybody suggest me solution to this problem or an alternative way to achieve my goal. Thanks in advance.