shift booking app hi all
i am trying to implement and app on which people can see available shifts on their android device and if they want to book the can simply book by clicking on it. The functionality behind it is there should be a server on which these shifts will be stored and the app will simply fetch the data from that server and display on screen, if any changes made those changes should occur on that server. now can anyone please tell me how can i create the server and how to make my app to talk to that server and make changes, somone told me to use XAMPP for server is that rite or not..please help....
To the Android app it doesn't matter the least bit what you use to implement the server side - JEE, PHP, .Net, use whatever you're comfortable with. The usual communication would be to send JSON over HTTP; Android has built-in libraries for both, so it's pretty easy to do.
can i connect a sql database to an android app if yes then how?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35442
9
posted
0
Recent Android versions have support for JDBC, but you shouldn't use that, just like you shouldn't use JDBC in applets. Use HTTP to connect to a server of yours, which in turn calls the DB.
hassan naveed
Greenhorn
Joined: Feb 16, 2012
Posts: 8
posted
0
Ulf Dittmer wrote:Recent Android versions have support for JDBC, but you shouldn't use that, just like you shouldn't use JDBC in applets. Use HTTP to connect to a server of yours, which in turn calls the DB.
the other thing is like the tutorials im watching uses localhost as the address for their server because their server is present in their machine which i understand what if i want the server to be in some other machine how is that possible and then what will be the address for it???
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35442
9
posted
0
You'd replace "localhost" by the IP address of your server (or its DNS name).