mssaravanan / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

Out of memory upload image on Twitter #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I try to upload a 55kb photo on the Twitter.
It uses the memory up to 50MB and throw exception.

Sometimes it does throw out-of-memory exception. It uploads photo 
unsuccessfully and the SocialAuthListener<Integer> feedback the status - 403 .

Thanks.

Original issue reported on code.google.com by king.wu...@gmail.com on 2 Apr 2013 at 3:53

GoogleCodeExporter commented 8 years ago
Hi ,

Your bitmap is not optimized. The out -of memory is coming because the image 
you are trying to post is of big resolution and your phone may not have enough 
heap memory to support at runtime.

Secondly , if the issue is related to connection , then you may have got issue 
connection time out.

We have successfully tested big resolution photos with enough heap memory 
available.

Original comment by vineet.a...@3pillarglobal.com on 2 Apr 2013 at 5:15

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 5 Apr 2013 at 10:10