android - Contact-Sync with Firebase -


in application try syncronize contacts of phonebook users firebase. therefore query contacts phonebook contactscontract.commondatakinds.phone.content_uri , iterate through them check each number:

databaseusers.orderbychild("mobilnumber").equalto(phonenumber).addvalueeventlistener(new valueeventlistener() {                 @override                 public void ondatachange(datasnapshot datasnapshot) { 

i think worst solution have no idea how solve problem. if users have many contacts takes long time syncronize firebase code... can tell me how solve problem more efficient?

moreover have problem numbers because in logcat missing saved contacts phonebook. code numbers following:

string phonenumber = phones.getstring(phones.getcolumnindex(contactscontract.commondatakinds.phone.number)); 

is missing here numbers? in advance!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -