Android :: Contacts SyncAdapter ?
Dec 14, 2009
I've implemented a SyncAdapter correctly registered through the application manifest which allows to sync contacts with our backend. The sync requests are correctly sent to the SyncAdapter but actually I have a couple of dubts:
1) How a client (the object which calls requestSync of a specific authority) can be notified about the current status of the sync request, e.g. if the request has been correctly performed, is still pending, or is aborted for any reason?
2) I saw the addStatusChangeListener method in ContentResolver class but there is no documentation about that. Can someone clarify the correct usage of this? What kind of events can I listen?
3) What is the SyncContext ??
Onother issue is that after I've added my custom account to the device I saw that when the user selects to add a contact to that account, only the name fields are present in the "new contact" activity, no phones emails etc. Can someone tell me if (and how) it is possible to show all the standard fields that are actually showed to the user, even if no accounts exist on the device?
View 5 Replies
Apr 5, 2010
Actually i tried the SampleSyncAdapter (Sample Sync Adapter examples), its working fine for me. but i am not able to edit/delete the synced contacts. Is this possible to edit those contacts ? please let me know.
View 3 Replies
View Related
Jun 21, 2010
I'm trying to use AccountManager to store account information and have implemented an authenticator, but I keep getting exceptions like the below that crash the phone. Comparing with sample code this seems to be because I don't have (or particularly want) a SyncAdapter and associated service. Is there a trick to using AccountManager without adding a SyncAdapter?
CODE:.................
View 4 Replies
View Related
Sep 8, 2010
What we are doing currently? We have some structured, textual data on a server which is exposed using web services(RESTful). My application polls this server regularly(AlarmManagerService) to fetch the data and save it on local database(sqlite). Also, a user is authenticated and authorized beforehand for access.
Questions: There is a SyncAdapter/AccountManager class in the SDK and I was wondering if it can be of any use in my application to achieve the syncing mentioned above? If yes, what sort of infrastructure is needed at back end to support a sync set up using this adapter? Links to articles etc. that give details of using this adapter and other info is appreciated.
View 1 Replies
View Related
May 31, 2010
I have written a SyncAdapter that takes a "com.google" account and performs a sync with an appengine web service. Testing this with the dev tools sync tester (on the emulator), this sync appears to work just fine.
The problem is, it's not syncing by default. And going to the account in "accounts & sync" shows my google account to be blank - as if there's no sync services available.
I suspect that in order to get my sync shown in the "accounts & sync" menu, I'd need to implement my own AccountAuthenticator that would do exactly the same thing as what I presume google's AccountAuthenticator must already do. This is not an exciting job, and it seems very unnecessary. So:
Is there a way to add an entry to the "accounts & sync" menu that uses my SyncAdapter but relies on a google account? or to add a sub-menu to google accounts that enables sync of my appengine service? if not,is there a way I can re-use google's AccountAuthenticator from within an AccountAuthenticator I write?
View 1 Replies
View Related
Oct 6, 2010
I am writing a syncadapter using google account and app engine. The account appears in account and sync, but when I try to select the account for syncing, I am getting a hard database error. I am trying to figure if this error is on mobile or the app engine. Further, what can be causing this error. Another error that I am getting is failed to find provider info.
View 1 Replies
View Related
Jun 23, 2010
I was wondering if a custom sync adapter would be appropriate when syncing "normal" application data that is tied to a Google account. For example, I'd like to sync some data to a Google docs spreadsheet in this case. Would a sync adapter be the right choice for this use case or should I handle the sync in the app?
View 5 Replies
View Related
Jan 16, 2010
I seem to be having a sync issue with my Droid.When I add a contact to my phone, it doesn't sync into "My contacts" in Gmail; it'll sync into "All contacts". So, a couple of questions:
1) How can I get the phone to add new contacts created on my Droid into "My contacts" in Gmail?
2) I'm trying to understand the point of "All contacts". Why does Gmail want to keep a list of anyone that I've ever sent an email to? Otherwise, it'll be simple enough to just merge the two groups and call it a day.(Note: When I bought my Droid I did NOT have the VZW sales person transfer my contacts or any data from my old Blackberry to my Droid. I used Google Sync on my BB and synced my contacts from my BB to Gmail, then when I got the Droid, it automatically pulled my contacts from Gmail.)(FWIW, yes, I did a search and found two great threads: http://androidforums.com/support-troubleshooting/15042-how-do-i-push-droid-contacts-back-gmails-my-contacts.html and http://androidforums.com/motorola-droid/15069-contacts-dont-really-synchronize.html but I have a different situation than most of those guys and I'd actually prefer to sift through and merge a couple of contacts from "All contacts" to "My contacts" every once in a while than deal with a backup and factory reset.)
View 4 Replies
View Related
May 28, 2010
I'm pretty sure it's not viable to do what I'd like to based on some initial research, but I figured it couldn't hurt to ask the community of experts here in case someone knows a way.
I'd like to create a custom field for contacts that the user is able to edit from the main Contacts app; however, the user should only be allowed to select from a list of four specific values. A short list of string values would be ideal, but an int with a min/max range would suffice.
I'm interested in knowing if it's possible either way, but also wondering if it make sense to go this route performance wise. More specifically, would it be better to look up a contact (based on a phone number) each time a call or SMS message is received or better to store my own set of data (consisting of name, numbers, and the custom field) and just syncing contact info in a thread every so often? Or syncing contacts the first time the app is run and then registering for changes using ContentObserver?
View 1 Replies
View Related
Nov 2, 2010
when a "contact detail" screen is presented in the contacts application, how is each field aggregated from its underlying raw contacts
case 1: Overlapping fields
when the same field exists in two or more contacts. Say they have two different last names or emails in different accounts. Does the contacts app show both fields with an account indicator?
case 2: Non overlapping fileds
one rawcontact has email while the other one has phone number
Short of scouring the source code, I have exhausted searching everywhere else.
View 2 Replies
View Related
Jul 5, 2010
I'm about the take the Android (EVO specifically) plunge. I'm coming from an old Palm phone. Wow, talk about a quantum leap. Anyway, to prepare for the move, how do I get my Palm contacts into Gmail's contacts? Is that how it works? I need to move my Palm contacts to Gmail contacts, right? Then when I get my new EVO, it will sync with Gmail and my contacts will be in the new phone?
View 5 Replies
View Related
Apr 28, 2010
I retrieve a JSON list of contacts from a social network site. It contains firstname, lastname, displayname, data1, data2, etc...
What is the efficient way to quickly lookup my local phone contacts database and "match" them based on their name. Since there are firstname, lastname and displayname this can vary.
What do you think, how can the best match be achieved?
Also how do I make sure I don't parse for each JSON item the whole database I want to avoide having JSON_COUNT x MOBILE COUNT steps
View 1 Replies
View Related
Aug 19, 2009
My application wants a functionality of picking a contact from the phone contact, I have achieved this using the following intent Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); startActivity ForResult(intent, 001); I wanted few more functionalities
- An option to create a new contact from the pick list, similar to the one which is available in inbuilt Launcher appliation
- Set of contacts should be filtered from display i.e already selected contacts should not be displayed
- Filtering of contacts should be based on the phone number i.e a contact might have two phone numbers associated with and wants to filter out the phone number which is selected I guess above can be achieved by implementing my own pick list using contacts provider, is there any other way without implementing the new pick list
View 2 Replies
View Related
Nov 16, 2010
When I switched to the Samsung Fascinate from a previous non-smart phone, I transferred all of my contacts from the phone over. I think in the setup somewhere I chose to convert my contacts to Google contacts. That was really confusing at first, because I didn't know what it did, and didn't even remember I had done that until recently. I'd like to get the contacts back to phone contacts (not Google contacts) for multiple reasons, which I won't bother listing for now. So, does anyone know how to UN-convert or re-convert Google contacts back into phone contacts? I really don't want to have to recreate all of the phone contacts, because I've got a LOT of them. I would remove my Google account from the phone, but I worry that would remove all of my contacts completely, which wouldn't help me.
View 4 Replies
View Related
Mar 23, 2010
I have some questions concerning importing contacts to the device, which is extremely slow.
First of all, if you delete all your contacts, google sync will restore it very quickly. However, when my app is adding contacts to the device, it's very slow (a few contacts per second). Even if I add almost empty contacts (with name only), it is a time-consuming process.
If I turn google sync off, importing 5000 contacts can take 1-2 hours (on HTC Magic). When google sync is on it can take up to 24hours. And this happens despite the fact, that application for the whole time is in the foreground, device is connected to charger and screen is on. I checked the logcat to make sure my app is adding the contacts the whole time, and it is.
I tried different methods and different devices. The results differ of course, yet manually adding contacts is always significantly slower that google sync. Is there any way that I can speed up the process? So that importing 5000 contacts will take less than an hour.
View 7 Replies
View Related
Jul 26, 2010
I own a HTC hero (Orange). With talks of android updates becoming available, there seems to be a mad rush to back up everything so that nothing is lost on the update. There are many ways of doing this, but one of the most common problems, is that people have their contacts saved as 'Phone' contacts and not 'Google' contacts. This means that they will not sync with Google mail. There was no contact export available to me (I think because my firmware was still 1.5).
This seems to be a solution that will solve the problem without having to write out every single contact number in Google mail.
1. Enter android market.
2. Search 'Contact sync'
3. Download/Install this application.
4. Run the application
5. All contacts will be turned from 'Phone' contacts to 'Google' Contacts
6. These contacts will then be synchronized with your Google mail
This means that if your contacts are lost on your phone at any point (eg. an update), they can easily be 'Exported' back to your phone through Google mail.
View 5 Replies
View Related
Apr 21, 2009
i've been looking for an application for merging the SIM contacts with the GMail contacts but can't seem to find any. Does anyone know if such an application is available? The result now is that i have a huge list of contacts (GMail + SIM) with many duplicates and information spread around different entries. Remark: i'm not sure if this question belongs here, but i had to choose between the G1 T-mobile and this forum.
View 1 Replies
View Related
Feb 17, 2009
Is there any Intent for picking multiple contacts from the Intent.ACTION_PICK?If yes whats the data that needs to be passed to the intent?
View 3 Replies
View Related
Aug 2, 2010
when i am using this class it is written there use contactscontract but am not getting how to use this class to fetch contacts number from phone.....
View 9 Replies
View Related
Oct 7, 2010
I need a widget on my htc wildfire, one that looks like the People Widget but only for the Phonebook contacts and not FB or other social networks. I have tried so many but none are good enough.
Any suggestions? Or is there any way to make the People Widget display the phonebook contacts only?
View 5 Replies
View Related
Aug 29, 2010
I have some code that manipulates the Contacts database via the Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can add/edit/delete my Google contacts, Phone contacts and the Sim contacts cached there. Changes to the Phone contacts are immediate, changes to the Google contacts are synced to my Google account, but changes to the SIM contacts only affect the Contacts DB and aren't persisted to the SIM.
Ie while I can delete the SIM contacts from the Contacts DB, once I reboot my phone the SIM contacts get repopulated into the Contacts DB. The IccProvider (accessed via content://icc/adn) seems to be a way to directly access the SIM contacts. The source code seems to suggest so and there is annectdotal evidence that this works, but it is an internal Android API and it doesn't work on my Galaxy S in any case. So, does anyone know a definitive way of modifying/deleting SIM contacts. Or failing that, a way to stop the SIM contacts being reopulated on reboot, though this seems less satisfying.
View 5 Replies
View Related
Jan 29, 2010
I accidently deleted 44 contacts on google contacts. I still have them in my phone, as I don't have a data plan and the wifi wasn't enabled, thankfully.Now, I want my phone to get those contacts on the google contacts. Is it possible to do that?
View 1 Replies
View Related
Jul 15, 2010
I just got the Droid X today and was wondering how to UN-sync all the facebook contacts with my regular contacts.
View 18 Replies
View Related
Aug 27, 2010
How can I remove facebook contacts from phone contacts?:rolleyes::confused:
View 3 Replies
View Related
Dec 17, 2009
I entered some new contacts in on the HTC Dream and they don't synch with Google Contacts? Does anyone know what I'm supposed to do so that they synch?
View 1 Replies
View Related
Jun 18, 2009
I would like to perform a certain operation every time a user adds a new contact in the Android Contacts application. It would include using the new contact's information.Is there an easy way to do this? Is there some event that can be listened for or do I have to extend the Contacts application itself? Or should I just think of some other approach if this is not feasible.
View 1 Replies
View Related
Nov 21, 2009
I posted this in the HTC Hero forum as well. As I mentioned in a previous thread i have had my Hero for about 1 week. I primarily need my phone for business. I made the decision to go with Android due to it being google and ease of importing contacts and calendar etc. I just imported 5,000 contacts into my phone and now if I need to find a contact it takes minutes to pull up I really like this phone HOWEVER the keyboard (way to small to type quickly on) and the in ability to handle 1,000's of contacts is going to force me to trade this phone and head back to the black berry Is there another application for android that can handle 1,000's of contacts?
View 1 Replies
View Related
Jul 26, 2010
I'm using the following piece of codes to create a new contact. It follow closely the ContactManager example provided by Android. The problem is, the created contacts do not appear in the Contacts app that shipped with Android. Nevertheless, when I load all the contacts from the phonebook, I can see the newly created contacts.
View 5 Replies
View Related
Jul 17, 2010
I got my DroidX on 7/15 and on 7/16 linked all my phone contacts who have facebook to a facebook contact via social networking. I kike how the phone sets the picture, I like that in the contact entry it shows me thier status on facebook. What I don't like is that when I open up a contac that is both a phone contact and a facebook contact and I tap the facebook icon on the contact screen I get 3 options (view profile, write on wall, and poke). If I open up a contact that is only facebook and tap that same Icon I get 4 options (view profile, message, write on wall, and poke). Is there some reason linking the facebook contact to a phone contact needs to remove that option? I'd like to be able to send a facebook message from the phone to any contact as easy as I can send a text message.
View 3 Replies
View Related
Sep 20, 2010
I have two groups of contacts "MyContacts" and "Utilities". When I set up synching I selected to copy "All contacts".
Unfortunatey, when I look what's on my area on sonyericsson.com/wportal I see only the contacts from the group "MyContacts".
I.e. the site creates a false feeling of security - if I need to restore my phone from this site I will irrecovarebly lose lots of data.
I don't know is SE forgot to test their function or Android-hackers don't understand the features of the contacts.
All area of handling the contacts stinks seriously, and mkes you wander if the Android people ever used a mobile phone :
1. X10 does not accept contacts sent via SMS (VCARD-format), (or via MMS or bluetooth)
2. X10 does not sync with Outlook where most of business people have their contacts, and maintain them when receiving corporate mails etc.
3. The only way to get the contacts is to export from PC to a csv-file and import to gmail, and then sync to the phone. This is not that flexible due the export via csv. I.e. If I create cntacts in the phone they will not reach Outlook.
View 2 Replies
View Related