Android :: Accessing Contact Email Addresses

Mar 18, 2009

Post subject: Accessing contact' email addresses Hi! I'm developing an application in which I need to display user a list of contacts and their email addresses so that user can choose one of them. I've got some help from Internet and I'm able to display a list of contacts and their number by the following code

Android :: Accessing contact email addresses


Android :: Accessing Email Addresses

Mar 17, 2010

I have the following code through which i am able to retrieve phone numbers. Somehow , i am not able to retrieve email addresses by using android.provider.Contacts.People API. import android.app.AlertDialog; import android.app.ExpandableListActivity; import android.content.ContentUris; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts.People; import android.view.View; import android.widget.ExpandableListAdapter; import android.widget.SimpleCursorTreeAdapter; import android.widget.TextView; import android.widget.ExpandableListView. OnChildClickListener;

View 2 Replies View Related

Android :: Accessing Contact Data Base For Adding / Deleting / Updating Contact Using Native Code

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

Android : When On G1 How To Bring Up Email Addresses

Nov 9, 2008

I am ready to throw this phone out the window if somebody isn't able to help me! T-Mobile Tech support suck they have no clue and told me they have no clue and sorry! Well here goes!

I set up my gmail account and I imported my contacts from aol into my gmail account now I have no idea when I am on the G1 how to bring up my email addresses if i want to email.

View 3 Replies View Related

Android :: How To Access Email Addresses In Application?

Mar 17, 2010

I have the following code through which I am able to retrieve phone numbers. Somehow, I am not able to retrieve email addresses by using android.provider.Contacts.People API.

import android.app.AlertDialog;
import android.app.ExpandableListActivity;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.view.View;
import android.widget.ExpandableListAdapter;
import android.widget.SimpleCursorTreeAdapter;
import android.widget.TextView;
import android.widget.ExpandableListView.OnChildClickListener;

public class ShowContacts extends ExpandableListActivity implements OnChildClickListener { private int mGroupIdColumnIndex;
private String mPhoneNumberProjection[] = new String[] { People.Phones._ID, People.NUMBER // CHANGE HERE }; private ExpandableListAdapter mAdapter;
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
// Query for people Cursor groupCursor = managedQuery(People.CONTENT_URI,
new String[] {People._ID, People.NAME}, null, null, null);
// Cache the ID column index mGroupIdColumnIndex = groupCursor.getColumnIndexOrThrow(People._ID);
// Set up our adapter mAdapter = new MyExpandableListAdapter(groupCursor, this,
android.R.layout.simple_expandable_list_item_1,
android.R.layout.simple_expandable_list_item_1,
new String[] {People.NAME}, // Name for group layouts
new int[] {android.R.id.text1},
new String[] {People.NUMBER}, // AND CHANGE HERE
new int[] {android.R.id.text1});
setListAdapter(mAdapter); }
public class MyExpandableListAdapter extends SimpleCursorTreeAdapter {
public MyExpandableListAdapter(Cursor cursor, Context context, int groupLayout,
int childLayout, String[] groupFrom, int[] groupTo, String[] childrenFrom,
int[] childrenTo) { super(context, cursor, groupLayout, groupFrom, groupTo, childLayout, childrenFrom, childrenTo);
} @Override protected Cursor getChildrenCursor(Cursor groupCursor) {
// Given the group, we return a cursor for all the children within that group
// Return a cursor that points to this contact's phone numbers
Uri.Builder builder = People.CONTENT_URI.buildUpon();
ContentUris.appendId(builder, groupCursor.getLong(mGroupIdColumnIndex));
builder.appendEncodedPath(People.Phones.CONTENT_DIRECTORY);
Uri phoneNumbersUri = builder.build();
return managedQuery(phoneNumbersUri, mPhoneNumberProjection, null, null, null);
} } @Override public boolean onChildClick(android.widget.ExpandableListView parent,
View v, int groupPosition, int childPosition, long id) {
AlertDialog dialog = new AlertDialog.Builder(ShowContacts.this)
.setMessage(((TextView) v).getText().toString())
.setPositiveButton("OK", null).create();
dialog.show(); return true; } }

View 2 Replies View Related

General :: How To Set Up K9 Email For 2 Email Addresses

Nov 22, 2013

I have several different email addresses, and would like to be able to read them with K9. I have set up to receive my main email address, and can I set it up to fetch from the other addresses?

View 1 Replies View Related

HTC Droid Eris :: Can I Add Addresses To My People Contact Information?

Jan 20, 2010

Can I add addresses to my People contact information?

View 1 Replies View Related

Android :: How To Get List Of Email Addresses From Contacts For Autocomplete Field?

Aug 10, 2010

Ive read through the docs and searched on here, but I'm not quite understanding how all the pieces fit together. Was wondering if anyone has a clear explanation of how to grab a single column of data from Contacts and have it populate an autocomplete box.

View 2 Replies View Related

HTC Incredible :: How To Clear Recent Email Addresses?

Jun 3, 2010

searched for this post and found this post a few times, but no answer. This if for the D-Inc btw, I emailed the wrong people a few times. for example i used JSmith@aol.com, instead of JSmith@yahoo.com, now whenever i try to email JSmith, i'm getting both AOL and YAHOO emails under recent history for email addresses. Is there a way to clear that ? it's getting very very annoying and i don't see a place to clear recent email history on the droid, anyone have any idea about that? Also, this is a 2 part question, how do we clear search history from google maps? I've tried to go to the app settings, but there is no clear cache, or clear data, and i've tried to go to security, privacy, and cleared data there, but when i search on Google maps, all the recent searches come up, which is not good when people can see where i've been

View 10 Replies View Related

HTC Hero :: How To Set Multiple Email Addresses On Phone?

Aug 26, 2009

I use G mail and have my 5 email accounts running through it. I can compose and email and "select" which email account to send it from within G mail. However, in Android on an HTC Magic, you cannot select which account to send "from", you can only send from the g mail account (in the g mail app). Yes, I know you can configure each one with an I MAP account, but I don't want that. I use G mail to store everything. So my question to existing HTC Hero users is: In the G mail application on a HTC Hero can you send from multiple email addresses?

View 5 Replies View Related

Motorola Droid X :: All Sent Email Addresses Showing Up In Contacts?

Jul 27, 2010

I am a new droid user, coming from bberry tour. Want to love the X and it is slowly growing on me. I am using an activesync account with for my work email which syns calendar/contacts/email. For some reason every email address that i have ever sent an email to shows up as a contact.anyone else seen this or know how to resolve? all of my contacts are in there that i want but there are an additional 500+ "contacts" that are just email addresses that i have sent to through work.

View 5 Replies View Related

Samsung Fascinate :: Delete Stray Email Addresses

Nov 7, 2010

So I have a few stray email addresses that came over from gmail say with a dot between names that shouldn't be there. How can I delete an email address from a contact or preferably off the phone entirely? Fascinate running stock tw if that matters.

View 1 Replies View Related

Sprint HTC Hero :: Does Anyone Know How To Sync Yahoo Email Addresses

Dec 18, 2009

I am trying to find out how to sync my addresses from yahoo to my address book in my contacts.

View 12 Replies View Related

Sprint HTC Hero :: Deleting History Of My Email Addresses?

Feb 25, 2010

This might sound strange but I want to delete the history of my email addresses on my hero, I'm selling something on craigslist and when I reply to them from my computer or whatever it shows up on my phone and I'm like who the H3ll is this??? and then it dawns on me that it's someone I emailed about the POS Pre I'm selling
If that didn't make sense, basically when I go to shoot an email on my hero, as I'm typing who I'm sending it to, it shows a list of everyone that I've emailed starting with whatever letter I'm pressing, normally and most of the time that's awesome, but sometimes, like the situation I stated above it's a big pain in the arse.

View 1 Replies View Related

Android :: Accessing Contact Phone Numbers - Corresponding ID

Oct 30, 2009

I'm trying to adapt my application (Personalytics) for the brand new Android 2.0, however I'm facing an issue while accessing contacts' phone numbers. What I need to do is to retrieve the name associated to a stored contact based on his/her phone number. At present I'm doing this in two steps:
1) from a phone number I get the corresponding ID of the stored contact (if present)
2) I retrieve the contact's name based on that ID

I managed to use the correct CONTENT_URI for reading contacts by using reflection to be fully compatible with Android 2.0 (ContactsContract.Contacts.CONTENT_URI) and the previous versions (People.CONTENT_URI). Now I'm trying to do the same for Phones.CONTENT_URI (Android <= 1.6) and ContactsContract.PhoneLookup.CONTENT_FILTER_URI (Android = 2.0) which is needed by step 2) mentioned above. But as soon as I try to get a contentResolver by using ContactsContract.PhoneLookup.CONTENT_FILTER_URI I get the following exception:
java.lang.IllegalArgumentException: Unknown URL content://com.android.contacts/phone_lookup

This looks really strange to me, since it should be correct (it is part of the official API)! Moreover, I tried to look at the "API Demos" project, in particular to the classes:
com.example.android.apis.view.List2 com.example.android.apis.view.List3
which are still using the deprecated People.CONTENT_URI and Phones.CONTENT_URI and thus no data (i.e. contacts) is loaded (of course I have sample contacts in the emulator). Is there another approach I can use to get the name of a contact based on one of his/her numbers? (This must work on all versions of Android).

View 1 Replies View Related

Android :: Accessing Contact And Account Database

Sep 21, 2010

How can i access the contact and account manager with the help of sqlite3 code? can u please explain me about contact application?

View 2 Replies View Related

HTC Desire :: HTC Sync Corrupting Email Addresses In Outlook 2010

Sep 14, 2010

I have a HTC Desire (updated to Froyo) and have been syncing my contacts with my Outlook 2010 (running Windows 7 Enterprise-32 bit). Everything seems to synchronize well but somehow the "email address-Display As" fields gets updated in outlook, which then doesnt allow me to send emails to those email addresses unless I manually go and update the display as field inside my outlook contacts. I have manually updated all the contacts once already hoping that it may not be due to HTC Sync but when I did the sync then immediately all my Outlook email ids got updated.

Now everytime I try and send an email I immediately get Undeliverable receipt from System Administrator stating the following:
Your message did not reach some or all of the intended recipients.
Subject: test Sent: 14-Sep-2010 17:41
The following recipient(s) cannot be reached: abc@xyz.com on 14-Sep-2010 17:41
None of your e-mail accounts could send to this recipient.

View 36 Replies View Related

General :: How To Eliminate Suggested Email Addresses In Yahoo Mail

Jan 21, 2014

I use the Yahoo mail android app (as well as gmail). When I create an email in the app and "click" in the "to" field and type a letter I get a whole raft of email address suggestions that are not in the contacts. I've looked in my phone contacts and they aren't there. I've looked at Yahoo mail settings and see nothing there. I've gone to the desktop Yahoo mail an tried looking in contacts there and they don't show up. Many of these are addresses of people that I recognize and have probably either sent or received an email from them but certainly never saved them as a contact. I tried long pressing on the suggested address and it highlights it but no options are given. It doesn't happen in my gmail. I've gone to URL...contacts and they don't show up there. I know I should just switch to gmail only but this is an old address that I want to keep active. I have a Moto X with Kitkat. This has followed me from phone to phone.

View 1 Replies View Related

General :: How To Send Email To Single User With Multiple Addresses

Feb 8, 2012

I just got a Samsung Skyrocket on AT&T. It's running 2.3.5. I love the phone but have one question:

When sending an email, NOT Gmail, and I select the recipient from my contacts, it automatically picks up the default email address that was selected for that contact within the contact manager. Several of my contacts have more than one email address and I need to be able to choose which address to send to. The thing is, I see no option to do so when selecting the contact in the email message. The only way around this that I can see is to have separate contact entries for each email address. That would mean I could have four or more contact entries for each person. Totally not acceptable.

So, am I missing something here? Is there a way to select which email address you want to send to when creating a message? Or do I have to go in and change the default email address within the contact before I compose my emails?

View 2 Replies View Related

General :: Syncing Samsung S3 Contacts To Gmail - Only Email Addresses Show

Jan 28, 2013

I see my phone contacts have synched with my gmail contacts, which is good. Except that only the email addresses are visible. Not the phone numbers. I have checked on the Accounts and Sync settings for the gmail - and it is set to transfer all (all boxes are ticked).

View 1 Replies View Related

HTC Incredible :: Sync Facebook Contacts Without Doubling Numbers / Adding Email Addresses

Sep 18, 2010

So when I open a contac it has 2 number, the one from facebook and the one I already has. Also I dont want the email either, so basically just the picture.

View 3 Replies View Related

Jelly Bean :: Galaxy S3 - Stock Email Client Autofill Addresses / How To Edit

Jan 2, 2014

I have had my phone nearly a year and how it's got a cache of people I've sent emails to, because sometimes I want to retrieve an address I didn't think I'd need again... However, it also presents some annoying issues. It also saves every typoed address I've ever fat-fingered, and sometimes it comes up as the first choice when it was for someone in my contacts, and I then send a message to a bad address. If you go to write an email and press that little 'contact' button in the "To" field area, it shows me a list, and I don't know where some of those are coming from - it's some but not all of my contacts and some but not all of the addresses I've ever written to. I would like to clean out the fat-finger errors and also that mysterious list that comes up when you press the little contact icon when composing an email, without taking a scorched-earth approach. Googling around indicates to me that this has annoyed people for years and nobody's found a solution.

I have a Galaxy S3 running the recent update to 4.3.

View 2 Replies View Related

Jelly Bean :: Deleting Previous Email Addresses On Nexus 10 When Forwarding Emails

Feb 12, 2014

How to delete a previous email address before forwarding an email on,

View 4 Replies View Related

Android :: Accessing Company Email On Personal Handset?

Nov 23, 2010

Do you access company email on your personal Evo? You better read this:
Wipeout: When Your Company Kills Your iPhone : NPR
I spoke with my company's IT director and he confirmed that this is possible.

View 8 Replies View Related

Android :: How To Send SMS / Email When You Know Contact Id?

Jun 1, 2010

When I have the contact id, how do I send an SMS/email (aka text) to it? I've seen code like this, but none are using the contact it.
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, text);
act.startActivityForResult(Intent.createChooser(intent, ""), 0);

View 1 Replies View Related

Android :: Export SMS - MMS - Contact To Email

Dec 6, 2009

Save2Email: Select and export your data as zip file (individual export files added to single zip file). Attach and send zip file to your GMail for Archival purpose.

Contacts (CVF and CSV)
SMS Messages
MMS Messages & Attachments
Call Logs
Browser bookmarks
Phone settings

Export Contacts, Call logs, SMS, MMS messages, MMS attachments, phone settings as Zip files. Send and save exported files to your Email using your own GMail. Archive periodically and clean up Call, SMS, MMS - Save those important moments. WiFi Recommended to email zip files. Please let me know if you have any question. I love this forum and got few ideas from here.

View 1 Replies View Related

Android :: Email In SMS - Different Alert Tone For Each Contact

Nov 24, 2009

For historical reasons (from when I had a LG VX-6000 before I upgraded to a smart phone), I have several email notifications that are sent to my phone by way of <my number>@vtext.com. This is the Verizon email-to-SMS gateway that has been around forever.

The default 'Messaging' app is smart enough to extract the email address from these messages and look it up in my Contacts list, so it shows up as from the proper contact.

I have been looking for an app to alert me with a different tone depending on who sent me the message. I have tried 'Missed Call' and 'Ringo'. Both will let me assign an alert tone to a contact, but when one of these SMS messages is received, both 'Missed Call' and 'Ringo' show the message as from '6245' (which is 'MAIL' transposed with a telephone keypad). As a result, it won't look up the proper alert tone because it won't extract the sender's email address.

Is there a better solution? I could have these messages sent to my Gmail instead, but the Gmail app won't play different tones depending on the sender.

View 6 Replies View Related

Android :: Get All Contact's Name Phone Number - Email For 2.0?

Nov 8, 2009

For android 2.0, how to get a list of all contact's phone number and email? I have an app which works fine for 1.6. Now it is broken for 2.0 Droid. If you could point me an example to get all contact info, I really appreciate it. Previously, I used People.Contect_URI. now it is deprecated and return me nothing. I went through samples but failed to find how to do it in 2.0.

View 18 Replies View Related

Android :: How To Get Lists Of Email From Contact Application

Feb 3, 2009

How to get lists of email from contact application in android? provide me some sample code or tutorial on this.

View 9 Replies View Related

Android :: Updating Contact Email Address

Aug 18, 2010

I am trying to update contact email address using this code I am getting "Id" using this code My questions are

1) Am I using correct way for getting Contact_ID using Phone number?
2) Contacts are not updating correctly, it is changing all fields like email, name and number.Am I doing some thing wrong?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved