I am writing an Android application that will connect to a MySQL server. For now, I am testing the MySQL server on my computer through XAMPP using http://localhost:3306/. T
Have you tried looking at ContentProviders? http://developer.android.com/guide/topics/providers/content-providers.html
You will probably have more luck accessing data through an implementation of that (SQLite database for example) than accessing MySQL directly.