I\'m working on a project which connect to a web server and receive binary data. My problem is when I\'m downloading data from web server. If i send request to login or to activ
On Android you only have a limited heap size, which gets exhausted while you try to decode your entity. I think you need to use http chunking to send your data to the client (or something goes wrong and the EntityUtils think they need a much bigger array. The problem is a byte array which is to big not to small. Have a look at this posts: