G+_Christophe Vandingelen Posted February 7, 2015 Share Posted February 7, 2015 Have a question about databases. I want to develop an app/program witch can be accessed on the web, but also has a native app on Android. Now, Android uses SQLite as a database and most of the webhosts today use mySQL together with php as I'm also writing my code that way. So my question is: how can I make this compatible? Should I switch to SQLite for the web too and if yes, where can I get hosting that supports it. Or are there other ways? Link to comment Share on other sites More sharing options...
G+_Nate Follmer Posted February 7, 2015 Share Posted February 7, 2015 I've always made a companion PHP script to interact with my remote database (the Web one) that sent my requests back to the Android app via JSON. http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/ That should help get you started. Let me know if any specific questions you have. It's very easy so don't feel overwhelmed. Link to comment Share on other sites More sharing options...
G+_Christophe Vandingelen Posted February 7, 2015 Author Share Posted February 7, 2015 Ok, I'll give it a try Nathan Follmer? Link to comment Share on other sites More sharing options...
G+_Travis Hershberger Posted February 7, 2015 Share Posted February 7, 2015 Nathan Follmer Already pointed you in the best direction here. All I'll add is that SQLite is actually just another file in the filesystem, if you want support for it that has to come from the program/language used to access it. Link to comment Share on other sites More sharing options...
Recommended Posts