Question Detail

SQL DATABASE CONNECTIVITY

1 years ago Views 132 Visit Post Reply

hi, iam new in android studio.... i wish to create a new application.... this application is already make in website(using php)....this site having seperate SQL db..  now my doubt is how can i connect with my application to the Same SQL db... please helpme......


Thread Reply

viniti vaddepalli

- 1 years ago

hi,

you need to create the web services and pull and push the data (details u want to send or get using) Json or XMl.

 

Hemant Sharma

- 1 years ago

Hello karthick,
I am not getting your doubt please correct me if I am wrong anywhere,
You want to create a new Android application same as your Website features and you want to connect websites database here.

if I am right then you need to need to create Webservice for that. Webservice are nothing they just for data transfer over the network. you need to use a webservices type like Json or XML.

When you hit your Service Url in your Application it will return you Data about what you want.
Below is a link which is returning some Contact Info...https://api.androidhive.info/contacts/

Hemant Sharma

- 1 years ago

Hello karthick,
I am not getting your doubt please correct me if I am wrong anywhere,
You want to create a new Android application same as your Website features and you want to connect websites database here.

if I am right then you need to need to create Webservice for that. Webservice are nothing they just for data transfer over the network. you need to use a webservices type like Json or XML.

When you hit your Service Url in your Application it will return you Data about what you want.
Below is a link which is returning some Contact Info...https://api.androidhive.info/contacts/