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
Post a Comment