First time here? Check out the FAQ!

How to pass data via LAN connection in database in Android?

0 votes
asked by (340 points)
edited by

I am very new to Android. I created one Android application. How can I pass/store data from application to the database via wireless LAN? My application runs on one laptop and my database is on another laptop. Both laptop are connected via wireless LAN. I want to send/fetch the data to/from the database. I don't know how to create database in Android and even database connectivity. Can you give me some simple example code?

1 Answer

+1 vote
answered by (194k points)
selected by
Best answer

A good example of this request can be found through Google Search results. Access the results page, then scroll down until you see SampleProgramz website. Access the website and analyze the code posted on the website. The code tells you how to add data to a MySQL database. You can tweak some of its settings to pass the data to the database using a LAN connection. Additionally, use the tutorials from Google related to Android and database connection/management.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register