How to convert a curl command in java for andoid app

I am trying to convert a curl command into java to use in my very basic android app. I am very new in this, and lack a lot knowledge. Any help is appreciated. Thanks. The command stands:

(echo -n '{"data": "'; base64 dog.14.jpg; echo '"}') | 
curl -X POST -H "Content-Type: application/json" -d @-  http://ip-address:80