This code is not production ready. It is meant to help you integrate quickly with SendGrid when developing for Android natively. You will need to incorporate error handling and testing.
There is a companion blog post, that walks through the entire process to build this app from scratch.
This project was born out of the Android Developer training.
The easiest way to get started with this example is to:
- Clone the repo
- Modify the UtilsDEFAULT.java file as described in the file
- Compile and run the code
- Make sure you include the
uses-permissions
tag in your AndroidManifest.xml like so. - Check out the code in MainActivity.java
- Review the SendGrid Java library.
- Review the code in DisplayMessageActivity.java
- Review the SendGrid Web API stats endpoint.
If you create something cool, let us know so we can include you in the SendGrid Developer Community.
This is my first native Android (and Java) app. I assume I broke all sorts of conventions. Please let me know how I can improve this tutorial with a pull request or open an issue. Thanks!