I am looking for a fast & efficient way to query the Android contacts given an email address (basically, given an email address I want to find the matching contact if it exists). Currently I have a double While loop and it’s probably the most inefficient way to accomplish this.
I imagine that I have to do a custom SQLite join query, but I am unfamiliar with how to do this. Any help or pointers from other users would be appreciated!
After a little bit more research, there is no contract that handles this type of request and you can’t do any custom SQL query on any DB that you don’t own. I have come up with the best solution that I could. Please comment on this and let me know if there is a way to make this perform any better/faster/efficient.
Thanks!