I am developing an android application in which i want to use JAX-WS. The idea is to pull data from a mysql database that i will set up on a server (currently a wordpress website is hosted on that server location). What i want is for my android application to pull some data out of this database that i have set up on the server machine. Will i be needed to write a web app on the server side. How to go about this? I do not properly understand what will be needed for this process and how to set it up. Please help. Is there any step by step tutorial that i can follow?
This is a great tutorial and startup:
http://www.vogella.com/articles/REST/article.html
I've been using the same setup as you want to and it works great. The tutorial only goes through the webservice and it's content, then you will have to add database connections to it
Related
Hey guys I am new to android development I just created an app for android using back4app parse database where data stored in classes hope you are familiar with that and now I want to use the same data for my website using the same parse database please help me and suggest me something good to do this
parse-server store your data in a MongoDB database means that after the data is being stored you can access it from any device at any location. In your case you can start with a Web app, read, create, update and delete data and then you can just create an android app and use the same API's there and you will see exactly the same data that you see in your web app (if the logic is the same of course).
The best way to get started is with parse Javascript SDK for your web app and parse android SDK for your android app.
Later, you can create it for iOS or any other platform that you like. If for some reason you don't have the relevant SDK for your technology you can always use parse-server REST api's
If you need more info or have specific issue please let me know.
I am making an android project which inserts information into mysql database via php code. I am able to do so on my local server (using xampp). I have taken a free webhosting byethost7.com domain http://hpisys.byethost7.com for using my database and php file from that server. I am able to open php page on internet and insert the information into the online database server. But via android app I am not able to insert information using the same php code. Please help me out of this.
If you are also using this data in a web project I would set up a RESTful service and get the data that way. If not I would use something like Firebase instead, as it will be much easier to set up.
Either way you will need to research those yourself. You should be able to find a lot of tutorials.
I have an Android application. This app currently connects with a mysql database using various .php files. I think that when many users access my app at the same time, it will impact the performance of the app, soi want to get rid of all .php files and create a webservice to make the connection between my app and my mysql database. Is there any tutorial i can follow that can help me create this webservice? It can be REST or any other, i just want my android app to connect with it and i want it to connect with my database. I will need GET/POST/DELETE operations.
The approach I would recommend is similar to this. Basically, you code your REST webservice methods in a separate Java application which would connect to your database. Your android application would consume the webservice, just like in the tutorial.
The tutorial uses a third party library, which I don't think is necessary, as you can use Android's AsyncTask and do the same thing. Also, keep in mind that HttpClient is deprecated and was replaced with HttpURLConnection.
I developed an application on Android which take user informations(SignUp) and these informations are inserted an db file like .db .After that , I made LogIn in same application , which takes information about user from .db file and decides LogIn is allright or not. Thus far , everything is allright. However as you know this application is local.I want to connect web server because when I set up my app to another phone I want to take information.Can I set up web server in my own computer to try is my app working ? How can I do that on my own computer ?
You have to configure a local server and an api to make it work.
Use any webserver, XAMP,LAMP,tomcat,ect. create a data base using the phpMyadmin from your browser and also a user name to use by your application.
Use the URL like localhost/myfolder/../api.php to get the api which interacts to our application.
for interaction with the api , you can use http post.
Use this:
Xampp include apache-webserver, mysql server, php.
http://sourceforge.net/projects/xampp/
i am trying to share data between Android Application and database based on windows IIS 8.0 server. Our website is build using asp.NET.
I just want to find out what are possible ways available and their algorithm in easy language and What are the apis available in android and java library which i can use.
My application will download high amount of data including texts and images.
And want to keep my app as much lighter as possible.
Like 1 - create connection using
2 - create session using
3 - and so on ...
I appreciate your help.
Thanks
Karan Nagpal
There are some easy steps which can help you.
1. Create a listener in asp.net which will be hosted on IIS.
2. Call listener from mobile device via HTTP.
3. Call stored procedure or simple sql statements to fetch data from database and send back to mobile device in the form of Http Response(text,xml,json).
Hello check this page you can get what you want
Android connectivity with php and mysql
The concept is same for every language you can use MSSql and .net in the place of php and mysql.
Thanks