Made the code successfully (albeit hackishly) transmit the correct content type on Android where there is no Java Activation Framework.