I am dealing with a strange problem connecting to my MySQL database on Amazon RDS using JDBC. I have two different Android phones on the same network running the same code. One
Caused by: android.os.NetworkOnMainThreadException
You can't do network IO on the main thread. Move it to an AsyncTask or thread.