I am developing an application that requires to post image to twitter, when I upload an image it shows out of memory error. When I try a second time it is posted successfully.
Bitmap bitmap=Bitmap Factory.decode File(path);
I am developing an application that requires to post image to twitter, when I upload an image it shows out of memory error. When I try a second time it is posted successfully.
Bitmap bitmap=Bitmap Factory.decode File(path);
Out of memory error occurs when bitmap is large. Read this and this.
Also check this.
And sometimes largeheap=true
in manifest also solves this problem.