views:

389

answers:

1

hi

i new to android developer. how connect mysql web server database in android emulator. my web application database is connect by hibernate in struts2 application. so please help me and send some code for struts and android application code

A: 

You don't provide much detail so it's not really possible to help you but here are a few thoughts. If your application is a web application you don't connect directly to MYSql through Android, you need to talk to the web server. You can do this in several ways either having the user use the normal site through the browser on Android, create a special version of the site optimized for mobile devices that the user would access through Android's browser, or using web services. If you want to create an Android application instead of having the user use the actual site on their device you'll need to research web services, any functionality requiring database access such as adding a record or listing records will then need to be exposed through web services and called from your Android app.

Jared
actually our web application developed by struts2.mysql database connection get through hibernate via using tomcat server. we are like to access the data from database in android emulator.
saravanan