Here is the code that I am using: http://javapapers.com/android/android-email-app-with-gmail-smtp-using-javamail/
The error seems to be in the GMail.sendMail line where the transport tries to connect to gmail with a valid username and password.
I can't seem to find any sort of way around this and it's weird because about a month ago, this code worked perfectly.
DEBUG:
04-23 21:21:41.526: I/System.out(27546): DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport, Sun Microsystems, Inc.,1.4.1]
04-23 21:21:41.526: I/System.out(27546): DEBUG SMTP: useEhlo true, useAuth true
04-23 21:21:41.526: I/System.out(27546): DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false
04-23 21:21:41.526: D/AndroidRuntime(27546): Shutting down VM
Logcat:
04-23 21:25:53.651: E/AndroidRuntime(28125): java.lang.IllegalStateException: Could not execute method of the activity
04-23 21:25:53.651: E/AndroidRuntime(28125): Caused by:java.lang.reflect.InvocationTargetException
04-23 21:25:53.651: E/AndroidRuntime(28125): at android.view.View$1.onClick(View.java:3964) This is clicking a button
04-23 21:25:53.651: E/AndroidRuntime(28125): Caused by: android.os.NetworkOnMainThreadException
04-23 21:25:53.651: E/AndroidRuntime(28125): at com.javapapers.android.androidjavamail.GMail.sendEmail(GMail.java:74)
Thanks guys!