I\'ve an Android application that posting JSONObject as a entity by using ByteArrayEntity object. Here how it looks like:
JSONObject
ByteArrayEntity
post.setEntit
In case of java.lang.OutOfMemoryError it's likely that your application keeps references to objects which should be freed. Try to debug this application on this phone, not in emulator.
java.lang.OutOfMemoryError