Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Here's my updated version of setMessageEntity() that doesn't crash:
private HttpEntity setMessageEntity(String message, EncodingTypes encoding, ContentType contentType){
StringEntity entity = null;
try {
entity = new StringEntity(message);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (encoding != null) {
entity.setContentEncoding(encoding.getName());
}
if (contentType != null) {
entity.setContentType(contentType.getName());
}
return entity;
}//setMessageEntity
Also, I worked out how to use the library from source - Create a new Android
project, copy source into it, and change the Java Compliance version from 1.5
to 1.6, then project properties - Android, select 'Is Library'. Then you can
reference it from another Android project. Thanks.
Original comment by peter.g....@gmail.com
on 30 Jan 2012 at 6:20
[deleted comment]
Fixed in source. To be part of release 0.8.
Original comment by sujata...@gmail.com
on 10 Apr 2012 at 10:59
Original issue reported on code.google.com by
peter.g....@gmail.com
on 30 Jan 2012 at 5:37