Android :: Create Contact API 2.x ?
Oct 20, 2010
Using the API I am trying to create a contact, using the API 2.x and not the old one.
Here http://developer.android.com/guide/topics/providers/content-providers.html it only explains the old API. I haven't found any proper tutorial, example, etc. showing how to create a contact.
As far as I have figured out I have to create a raw contact, under raw contacts I found http: //developer.android.com/reference/android/provider/ContactsContract.RawContacts.html.
From there I tried:
CODE:...............
The last line of code shows that "Data.CONTENT_URI" cannot be resolved. It looks a little bit that this line of code is for the 1.6 API, I have changed the Data.CONTENT_URI to ContactsContract.Data.CONTENT_URI. At least the code compiles and executes, but I still don't have a contact Mike Sullivan in my addressbook afterwards. I exchanged now as well the other "Data" with "ContactsContract.Data" still no changes.
Has anyone an easy example how to create a person in the addressbook on 2.x?
I made some progress, it looks like that I always need an account on my phone to add a contact. My phone has account type com.google and account name xxxxx@gmail.com. The emulator has nothing. I wonder to which account I have to add my contacts? Can I assume that I ALWAYS have exactly one gmail account and take this one?
View 1 Replies
May 3, 2010
I think the title says it all, don't you? It should be possible to create a new contact App by duplicating an existing one, either in GMail Contacts (in a full-fledged browser) or directly in the Contacts app on an Android device. This would allow, for example, adding new members of a family or new employees of a company. Then, just the new name, email or phone number (or whatever) could be entered to replace the duplicated ones and leave the remaining fields all the same. As a former Palm user, I was able to do this on that platform (primitive as it now seems by comparison to Android).
View 7 Replies
View Related
Jul 2, 2010
Is there a way to create custom popup window like 'Quick Contact' or the one in official Twitter application (image attached) ? I've read the Contact app source code (downloaded from git) but still confused, it seems to use internal api.
View 3 Replies
View Related
Sep 1, 2009
My application wants a functionality of picking a contact from the phone contact, I have achieved this using the following intent
CODE:..................
How do i start pick contact activity with an option to create a new contact from the pick list, similar to the one which is available in inbuilt Launcher appliation.
View 1 Replies
View Related
Nov 14, 2010
I can create new contact with Intent by passing info as extra data with putExtra, is it possible to create Intent with info and if contact is already in phonebook it will be update with new info?
View 1 Replies
View Related
Dec 11, 2009
I want to invoke my application once user creates / updates contact from his device.i.e once user hit "Done" button. is it possible ? If possible please provide sample code or link.
View 1 Replies
View Related
Aug 30, 2009
Is it possible to create a shortcut or widget to a contact group? For example, shortcuts to "Work colleagues", "friends", people living abroad, etc.
View 3 Replies
View Related
Feb 10, 2013
I have an issue with the "people" (contact) app of ICS.
I am being asked to make an account to make contact groups, which unfortunately I can't allow!
Making offline contact groups without making an account.
I am running on rooted phone with cyanogen mod.
View 5 Replies
View Related
Aug 19, 2010
I've seen a few posts about this but nothing to say definitively (thank god for spell check!) if it's possible or not. On my HTC Legend (HTC Sense with Android 2.1) if you go to add and folder from a homescreen you have a choice of All people, Facebook Phonebook, Phones, Starred (Favorites). Is it possible to create another folder that will hold members of a contact group that I have created? I can create a new empty folder but don't know how to put contacts into this instead of other home screen icons (this would do if I can't use contact groups).
View 1 Replies
View Related
Sep 24, 2010
I recently loaded Baked Snack 1.7 on my phone as my first custom ROM - before that I had rooted stock Froyo. I tried two Baked Snack kernels and now have KingsxKlick bfs #9.
So I have all these variables and now I have a weird problem - my address book is force-closing on me every time I try to create a new contact. I haven't created a new contact in awhile, so I have no idea whether this could be related to my new ROM or kernel, or if it's a problem with the address book itself. I have had no other problems since installing the ROM and kernel.
I can input the new number for the contact, but when I try to name the contact it says it has encountered an error and needs to stop. This is the stock HTC People app, and I have tried it creating the contact as a regular phone contact and as a Google contact. No dice.
I've also tried a battery pull, clearing cache, the basics.
Any thoughts, guys? I met a cute boy and I REALLY need to save his number.
View 23 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
Apr 16, 2010
How to do it?
in contact, menu button will show display option
display option>>only contacts with phones / Choose contacts to display (email acc)
View 3 Replies
View Related
Jul 17, 2009
How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.
View 8 Replies
View Related
Dec 15, 2009
I want to add,delete,update android Contact Database using native c code. please tell me how to do if any one have done it.
View 3 Replies
View Related
Sep 12, 2010
I need to list the 'Display name' of all the contacts belonging to a single account.I am planning to use a cursor adapter for populating the list and hence would require the corresponding fields (Display name, Account info) to be fetched in a single content provider querry.Looking at the Contacts Database Structure a single table amoung Raw Contacts, Contacts and Data wont be able to provide these two parameters and hence a join is necessary.As far as i know join wont be possible to fetch the data from the content provider.
View 1 Replies
View Related
Jun 15, 2010
I have name, phone number and E-mail information of a contact. I just want to insert the additional email and phone for the existing contact. My questions are: How to find the contact is already existing or not? How to insert the values on the additional or secondary address option?
View 1 Replies
View Related
Jun 15, 2010
I'm trying to call the contact picker, get the persons name, phone and e-mail into strings and send them to another activity using an intent.
View 1 Replies
View Related
Jul 20, 2010
Anyone else have this issue or know a fix? Contact pictures show in contact details and in the contacts app, but not in the dial or when I get a call. Contact management is the only thing I don't like about my X.
View 2 Replies
View Related
Sep 17, 2010
I was wondering if the X10 can do the same as my last android Hero, which basically link the facebook info contact to my related phone contact, including the picture. I guess this wont need any hardware, but software. Has this improvement being asked or is it planned for future updates?
View 1 Replies
View Related
Jul 18, 2010
When adding new contacts to the droid x, it added it as both a goggle contact and phone contact. (i only have one goggle account setup). I went into contacts -> menu -> more -> settings. I am UNABLE to check/unchecked the "Phone Contacts" (it is always checked). The goggle one i am able to check/unchecked. WHY and HOW can i toggle the phone contact? Also, backup assistant only takes PHONE contacts and not GOOGLE contacts...while g mail contact sync only takes goggle contacts and NOT PHONE contacts. How can one change phone contact to goggle contact? (i have seen posts all over but no answers...and just replies saying "i have the same problem") I am trying NOT to have two (2) different types of contacts. PHONE and GOOGLE. I just want goggle contacts ( or phone contacts. so i can at least use verizon's backup assistant.
View 8 Replies
View Related
Sep 24, 2010
In my contacts list when I press the contacts button, I see each contact once. I have it set to only show contacts from my phone. When I go to send a text message and press contacts, my contacts are there multiple times, but I can't see any differences because they are named the same. For example, my son Adam shows up twice in the contact list in text messaging, but only once when I press contacts from my home page.
View 2 Replies
View Related
Jun 23, 2010
I have done a search for this and I have not found answer. I have inadvertently created some of my contacts as phone contacts instead of google contacts. The main negative of this is that I can not sync these contacts. Does anyone know of way to change the contact type? My phone is rooted if that makes a difference.In another thread relating to this someone mentioned an app that fixes this but I could not find it. Does anyone know of the app?
View 3 Replies
View Related
Nov 17, 2009
Does anyone know how to rearrange the contact in the contact widget. How about deleting and/or changing the order of the items in the book mark widget.
View 1 Replies
View Related
Mar 25, 2010
I thought that if we sync'd facebook to the Hero that people's display pictures would automatically become their contact photo on the hero.can someone tell me if this is possible and how they've done it?
View 16 Replies
View Related
Oct 9, 2010
Is there an api to programmatically get the .apk create date/time?
View 2 Replies
View Related
Sep 1, 2010
How to open a similar popup like the one that appears when you click on a contact icon in contacts? Is Dialog suitable for that? Or maybe PopupWindow?
View 2 Replies
View Related
Oct 12, 2010
In android, is it possible that I would create my own Map figure, and then use this Map with the gps location from Google Map API. Example, I draw a map for my own house, then apply Google Map API to be able to make the location of each point in the map
View 1 Replies
View Related
Oct 11, 2010
I create a TabHost1 with 3 tabs: tab1, tab2, tab3. When choose tab2, I want the TabHost2 change into another sub TabHost with 2 tabs: tab4, tab5.
CODE:.............
TabHost2.xml is the same TabHost1.xml
When I choose tab2 the result like TabHost2 cascaded TabHost1
Actually I want the TabHost2 overwrite (replace) TabHost1.How can we do it ?
View 1 Replies
View Related
Jul 9, 2009
In bin folder just exist resources.ap_ (AP_ File)what is this? why my apk do'nt create?
View 2 Replies
View Related
Oct 13, 2010
Basically im trying to create a simple gui or a layout for android, and I'm really new to Android developing. I already found a way to create a list of stuff using ListActivity, and using the command Code...
View 2 Replies
View Related