R
R
Rail Khusnutdinov2015-05-26 17:37:21
Android
Rail Khusnutdinov, 2015-05-26 17:37:21

How to synchronize contacts on android with a database on the server for display on the site?

Hello! I am writing a diploma, please help) I need a simple program for android phones and a website. The program will synchronize contacts on the phone and the database on the server, and you can view them on the site (by logging in with your login). Tell me how to implement contact synchronization, which database is better to use (sqlite or mysql) for remote storage of contacts, their synchronization, and display on the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2015-05-26
@rail-ka

I write the same answer more and more ─ read about REST.
On the server, any server database and api (authorization is also essentially just api, you get the token and sign everything with it)
On the phone, implement the rest client (I recommend the retrofit + gson bundle), contacts are in the database, access by Uri

Cursor contacts = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null,  null, null);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question