• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps New and need help connecting to a database

E_Slaze

Lurker
I have downloaded Aptana, and taught myself some simple techniques using HTML5. I chose HTML5 because I heard it can be used for both Android apps and Iphone apps. But now I need to do two things: connect to a database, and convert my simple HTML5 page into an app.

1) I have read about "Ruby on Rails" and SQL lite - which is better to use with HTML5 and Aptana, and are they both databases to be used in conjunction with phone App software like Android?

2) I want to make my simple HTML5 page into a simple app that I can use on my Android phone. I read that Eclipse and PhoneGap are the two best things to use to do this, but PhoneGap comes with subscription fees. So I have started going down the Eclipse road, and keep reading about using a <WebView> control to change my HTML5 to an App. Can someone please give me clear guidance on how I use "webview" and Eclipse to convert to an App? (or if webview is not the easiest way, an alternative is acceptable)

Thanks in advance.
 
Well you made a great start building the HTML, but just a couple of points:-

- Don't use Eclipse. Android Studio is the officially recommended development platform for Android.
- To see your web page in an app, you would employ a WebView to load an HTML page, but the page itself must be hosted by a web server. You just provide the URL for the WebView to load it.

There is information on the web concerning WebView use, plus Android Studio probably has a good sample application which makes use of it. For example, here's a good tutorial on using WebView within an app. It also provides details on installing Android Studio:

https://developer.chrome.com/multidevice/webview/gettingstarted

With regard to database usage, the most common approach is to use SQLite. Again, there are many tutorials explaining how to use it.
 
Thanks for the reply and insight, but the primary reason I am using HTML5 is because I heard it can be used to be deployed on both I-Phone and Android. So using Android Studio would create a restriction that I do not want.
 
Can you tell me where you got this idea that using Android Studio will create this restriction?
Android Studio is a superior development environment, but if Eclipse has some capability that I'm not aware of, regarding HTML then I'd be interested to learn more.
 
I want to create an App that works on both platforms, and I heard that HTML5 is the way to do it, and Aptana was good software to use to create such programs. So, I want to write code once, then be able to convert it to both an Android App and an I-Phone app. If I used Android Studio to create an app, I would still have to write another program for I-Phone, correct? I do not want to have to write a program twice (once for Android, once for Iphone), just once.
 
Back
Top Bottom