Connecting a database to a phone-Collection of common programming errors

What you need to do is create a database in your PC and program a web service in JSP,ASP.net etc .. and call the web service to fetch the table rows and return it to the app using any of the methods like Http Post,SOAP etc and parse it using any type of parsers like JSON,DOM or SAX depending upon what kind of data is your webservice is returning with, here is a tutorial http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/