0

i want to access to my web mysql databases from android application.how can i do this? i have searched all over the internet but i didnt get anything like that. allthough i know how to recieve data from the web pages as json data.but i need something like i can acces the database directly like the web applications.

such as i have an existing database where i want to acces from the mobile or i have a database on a server i want to keep my data in the web how can i do this? i can receive the json data from the server but i dont know how to use the database directly. if any tutorial it would be nice. thank you

1 Answer 1

1

You need to setup a socket and connect using TCP like the post here:

Android client and Java server TCP communication

Then you can connect using DriverManager:

input data into android database

Most projects are not worth the overhead. Using JSON is probably easier...

Sign up to request clarification or add additional context in comments.

1 Comment

Easier and safer. It is generally considered a serious security issue to have your database directly accessible on the internet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.