First of all apologies if this is a duplicate but I'm browsing via my mobile and am having problems searching.
I'm new to android development and would like to know how to access the gmail contacts rather than phone contacts, I've followed a couple of tutorials and can list the contacts that are stored on the phone but I am unable to find a ContentProvider Uri for GMail!
I am presuming that they are accessed in the same way that phone contacts are but using a different Uri but so far have been unable to find any information on this!
Any help is greatly appreciated.
Thanks
OneShot
Something like that How to get the number of unread gmail mails (on android)?
Related
I want to display my app's icon in the contact info as a shortcut. The same way as google+, fb, whatsapp does.
I found this question: Display the app icon if the contact is associated with the application in phone address book
And its very similar to what I want to do, but using Apache Cordova. Any ideas how can i do it?
I tried adding my app deeplink in contacts IMS using the contacts plugin, but no success so far.
Maybe this will help a bit. Give it a try!
This module is on my to-do list but i've kept it aside for a while...
I'll post if i'm able to do it. Please do the same!
I want to display all of my whatsapp chat messages in my application.
I have done a lot of research on it, but still could not find anything working.
http://www.digitalinternals.com/security/decrypt-whatsapp-crypt7-database-messages/307
http://nelenkov.blogspot.in/2012/06/unpacking-android-backups.html
Except that I found some solutions which are providing access to the Whtasapp db on the rooted devices, but I want to access it on normal device.
I am sorry to say that you cant do this,because whatsapp db contents are encrypted and only decrypted by whatsapp.
I have a requirement like, I can be able to find the people who are using a particular app from my contacts. It is much similar like Whatsapp contacts syncing.
Whatsapp contacts is so fast & very accurate. What is the logic for it?
I'm not sure of their exact logic, but a way that I have seen it done before is as follows...
Access the phone's contacts (duh)
Get the contact that you want to add as a "friend" in your app.
Cross reference that contact's phone number with the user information that you have stored in your application's database
If that phone number exists in your database of users, then you've got a match and you can process things however you'd like from there.
That's one way of doing it, but I don't know if that's exactly how WhatsApp does it. Hope this helps!
I want to let my app scan the users contactlist , and display the name of the contacts who also installed the app.
I have no idea where to begin with this . so if someone could help me getting started , that would be apreciated.
grtz
You will need to research ContentResolver because you will have to query the database containing the contacts. To do these queries, you will need the URI and column/header names for contacts db which can be found in the Contacts class.
You will also need users to register that they have your app on your own servers and the registration will need a piece of information about the user that other users would have in their contacts (the users phone number, email address, etc).
You will then need to query a few users at a time from the users contacts for this piece of information (using the ContentResolver and Contacts class), pass it to your server (as text) where it will check if they are registered, then send a message back to initial user (and possibly the match) that you found a match.
That's where you should start, and end :)
Note, you will need these permissions in the Manifest file:
android.permission.INTERNET
android.permission.READ_CONTACTS
First of all, welcome to StackOverflow. StackOverflow is for programming questions. As is such, a post asking for help should always provide a description of what you have already tried. If you haven't tried anything yet, I highly encourage you to try something, and post when you encounter a problem.
As your question stands now, we don't know what the problem is. Are you having problems scanning a contact list? Or are you having problems trying to figure out if another user has installed the app?
That being said, you will have to maintain a database for your app containing a list of people who have installed your app. When your app is launched on one device, do whatever you need to do to register the user in your database. Due to the nature of a "contact," one person's phone may only have their phone number, email address, or even just a name. This is of course something you will have to deal with in your implementation.
I have a question. I must create a program with a service in backgroud, to control inbox emails and if an email comes from a defined address I do something. Can you help me? I don't find any guide to read emails.
You have to query for it. That's fast and supported on every device: ContactsContract (There's even an example)