Android :: Get Postal Addressed In Contacts
Oct 24, 2009Does anybody have any sample code to access/get the postal addressed of a contact using Contact API? I searched the sdk doc but did not find enough info to do this.
View 2 RepliesDoes anybody have any sample code to access/get the postal addressed of a contact using Contact API? I searched the sdk doc but did not find enough info to do this.
View 2 RepliesSorry for the really dumb question but is there any way to view a contacts postal address without editing that contact? (I mean view the actual address so you can write it down onto an envelope not view it's location on a map).
Using sim free HTC Legend (not rooted or anything).
I'm trying to find out how use android multicastlock for capturing packets not addressed to device. As i understand SDK, i can capture them.
Can you show how capture them, or advice how use multicast lock.
I try to find the postal address of a contact witch is saved in the phonebook. I know the name of this contact, but i don't know where i can find his postal address.
View 2 Replies View RelatedIs there a way to get the data: address, postalcode, country ect. in different country formats.
Like in Great Britain:[recipient][street name][postal town (town/city)][postal code[country name]
And in The Netherlands: [recipient] [street name] [postal code] [postal town (town/city)] [country name]
I now use the ContactsContract from Android 2.0.1 and tried the ContactsContract.CommonDataKinds.StructuredPostal.DATA1 (FORMATTED_ADDRESS). But this seems to give the data as follows (no matter what country settings): [street name] [postal town (town/city)] [postal code].
i'm looking for an port of Postal 2 and Soldier of Fortune. Does that exist? Or is there an other way to play these games on Android?
View 1 Replies View RelatedI am using ContactsContract api intent for showing all contacts from an activity. This intent returns an id of the contact. I need to get the postal address of this contact.
Here is the code which i am using for showing contacts:
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(ContactsContract.Contacts.CONTENT_TYPE);
startActivityForResult(intent, PICK_CONTACT);
I am getting the result in the onActivityResult function..
I'd like to use my X10 to keep all of my contacts' postal addresses in instead of the tatty old address book I carry in my handbag(!) I didn't fancy typing them all into the phone, so thought I would use the Sony Ericsson sync and put them into the pc first via the PC Companion sync application, and set up the sync to transfer them into my phone. I have tried a test run adding only a couple of addresses to my contacts on the pc, and adding one to my phone, but when I do a sync, the addresses don't transfer either way. I know that the actual sync is working because I added photos too and they transfer....... I must be doing something wrong that is easily rectified?
View 1 Replies View RelatedI 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.)
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?
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.
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 RelatedI 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
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
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 RelatedI 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.
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.
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 RelatedIs 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 Relatedwhen 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 RelatedI 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?
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.
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 RelatedI 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 RelatedHow can I remove facebook contacts from phone contacts?:rolleyes::confused:
View 3 Replies View RelatedI 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 RelatedI 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 RelatedI 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 RelatedI'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 RelatedI 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