aspose file tools*
The moose likes Android and the fly likes shift booking app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "shift booking app" Watch "shift booking app" New topic
Author

shift booking app

hassan naveed
Greenhorn

Joined: Feb 16, 2012
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 42294
    
  64
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.


Ping & DNS - my free Android networking tools app
hassan naveed
Greenhorn

Joined: Feb 16, 2012
Posts: 8
can i connect a sql database to an android app if yes then how?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42294
    
  64
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
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: 42294
    
  64
You'd replace "localhost" by the IP address of your server (or its DNS name).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: shift booking app