Do you remember when you started going to hackathons or just basically started to do cool stuff? I remember it very clearly. In those days I gained a very dear friend, Daniel Santiago. Every so often I bug him with Java/Android stuff since he is a baller Android Developer. My questions were usually about adding support to the Java library.

He took the extra time to make a little hacking project. A fork of the Java library, but intended for Android, hence, SendGrid-Android has been born! I don’t know about you, but I value this gesture more than almost any amount of beers. Thank you, Daniel!

Lets get started! To install the library, just clone the following repository:

Move the sendgrid-android folder into your project. Then modify your gradle file to reflect the following dependencies and settings:

dependencies {
    compile project(':sendgrid-android')

android {
    packagingOptions {
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'

On the library’s repository you will get more detailed instructions.

To use the library, its literally the same as using the normal Java library!

SendGrid sendgrid = new SendGrid("SENDGRID USERNAME", "SENDGRID_PASSWORD");

SendGrid.Email email = new SendGrid.Email();
email.setSubject("Hello World");
email.setText("My first email with SendGrid Java!");

try {
  SendGrid.Response response = sendgrid.send(email);
catch (SendGridException e) {


Hope you enjoy this library. If you do, please star it. I know Daniel would appreciate it 😉

Puerto Rican and hackNY '13 fellow. Always looking to hack/experiment something new. You can follow me @elbuo8