Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

shift booking app

 
hassan naveed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
hassan naveed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i connect a sql database to an android app if yes then how?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd replace "localhost" by the IP address of your server (or its DNS name).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic