Ulf Dittmer wrote:Not only is this possible, but it seems very standard fare for a mobile app. But yes, you would need to buy server space. It's possible you might find free server space somewhere, but you'd have to ask yourself whether you could rely on it to be available for the lifetime of the mobile app.
Any advice on a book or website detailing this process? I'd appreciate it.
Ulf Dittmer wrote:I don't know that you'd need a book or anything - wouldn't HTTP communication be sufficient? Select a Java hosting company (like one of the ones listed in the ServletsFaq), and write a Java web app using servlets and JSP to handle all the traffic.
This is all very helpful. I appreciate the sage advice.
One last question: From what I understand of web applications, they run on the server and act as the server portion of the client/server architecture. The web applications serve web pages to the client (the browser). This works perfectly well with desktop and laptop computers. Does the concept work the same for iphones, androids, and tablets? Do they essentially get served web pages from the web application like desktop/laptop computers? If I had to guess, your app would have to somehow use the browser in the smart phone/tablet to display the pages served up by the web application. Thanks.
Do they essentially get served web pages from the web application like desktop/laptop computers? If I had to guess, your app would have to somehow use the browser in the smart phone/tablet to display the pages served up by the web application.
You could write a mobile web site that displays well on small screens -so that folks could use the browsers on their mobile devices to access it-, but for an app you'd generally create web services (possibly implemented using REST and JSON via a library like Jersey), since the UI would be supplied by the mobile app. The app might use the HttpClient library that's part of Android to access those services.
You could also create a "hybrid" app that embeds the Android-native browser component in your app, thus allowing you to do special things with your web app being displayed within the mobile app. (And you could use other web services provided by the web app on top of that.) The Android class to use in this case is android.webkit.WebView; see http://developer.android.com/guide/webapps/index.html for more details.