Obtaining and setting basic data types(String, int) between Database and Android

December 16, 2016 229 views
Applications Development PHP

Hello guys,
We are working on an android project about calender which has a due date so close. In that project, we are trying to create calender and by that calender, user can determine a time interval and in that interval, phone gets its silence mode. When the time finishes, phone gets back to non silent mode again. We need to store datas for each user who will register. (Username, password, hours which he/she determined for silence etc). The tutorials in youtube did not work (or we couldn't). Any suggestions about database-application relation(Like tutorials or beneficial links)?

                                                                                                              Have a nice day!
1 Answer

I would recommend (since you tagged this as PHP) just building a simple system using the php-mysqi module, a standard web server like Apache and passing data via JSON using the php json encoder.

With a time crunch using something like Parse server that provides an android SDK and takes care of a lot of the pieces for you might be another option.

Dreamfactory is another attractive option for a close to turn key solution for this situation.

For me personally, if I had to solve this problem I'd write a small Ruby app using Sinatra to serve the data and act as the API. This would be easier than the PHP option (if you know ruby) but not as easy as the prebuilt options like Parse and Dreamfactory.

Parse is a Mobile Backend as a Service platform. In January of 2016, Parse announced that its hosted services would shut down within a year. In order to help its users transition away from the service, Parse has released an open source version of its backend, called Parse Server. This guide supplements the official documentation with instructions for installing the Parse Server module on an Ubuntu 14.04 system, such as a DigitalOcean Droplet.
Have another answer? Share your knowledge.