Read windows phone primary e-mail address - windows-phone-7

How do you get the Windows Phone primary e-mail address (or a list of e-mail addresses) ?
In my application I need to ask for users email address for reports. But I want to prefill the email box so that users does not have to enter it. How can I read his primary email address.
I know this can be easily done in Android. Using AccountManager (API level 5+).
I googled it but could not find any relevant reference. Kindly help I am new to windows phone development.

get the Windows Phone primary e-mail address ...?
Not Possible, Due to privacy concerns it is not possible to retrieve the account ID
There are few links that are saying No.
From MSDN forum
From SO & another one
These Sources are bit older. But in latest update of Windows Phone it may possible.

Related

How to have two separated contacts with same email address?

Using Exchange 2013 and Outlook 2013, I need to have two separated contacts with same email address. What I've seen is once I create a contact with an email address, for the second contact (even though I choose to create a new contact instead of update the existing one) Outlook merges two contacts details.
Now the question is, is this doable at all? Can I have two or more contacts sharing same email address but having isolated details?
In fact, I'm using ews managed API to do this programmatically, but that doesn't matter because same thing happens by using Outlook directly.
Update: Looks like Outlook 2013 by default links contacts with the same email address. And according to this post Office Community the only way to stop that is changing a registry key!
Now I wonder if it's possible to stop this from Exchange side.
You can turn off Duplicated detection in Outlook in the Option-Contacts, in EWS it shouldn't be doing any duplicate detection, if the contact is in the GAL then it will resolve it to the GAL address. Generally in this case your creating a OneOff Email address for a contact you can ensure that unique by using a different display-name when your create the contact. eg
Contact contact1 = new Contact(service);
contact1.GivenName = "Fred";
contact1.Surname = "Smith";
contact1.EmailAddresses[EmailAddressKey.EmailAddress1] = new EmailAddress("fred smith1", "fsmith#domain.com");
contact1.Save();
Cheers
Glen

Is there a way to check for missed/unread notifications?

Is there an api in mango sdk that allows me to programatically poll the notifications/toast to at least get the count. I'd like to write background service check for missed messages.
It's not possible to get hold of the email/SMS messaging details like this in Windows Phone. The only way to interact with the email client is via the SDK Launchers and Choosers: see this link on MSDN.
About all you can do is call the EmailComposeTask or SmsComposeTask for writing a plain text email or SMS, or EmailAddressChooserTask for getting an email address from the address book.
Also bear in mind that launchers and choosers must be initiated by a user action and cannot be launched from any background agent code.

How to retrieve the name of a contact with its number from the contact list in Windows Phone 7?

I want to access the contact list to get the telephone number of a contact.
I am using the PhoneNumberChooserTask class to do that, and it returns me the number but not the name of the contact, which would be useful for many reasons.
Is there any way to retrieve both information?
Thank you,
Oscar
At the moment this is not possible. There is currently an outstanding feature request on the App Hub: http://forums.create.msdn.com/forums/t/68349.aspx

Hotmail CheckAvailability Api

hi i have a little problem here.
i searched on google for this but nothing gud is available.
i had a application with more than 2000 ids.
i just want to find out whether those ids are registered in Hotmail or not. If possible i want to use the Hotmail api to check the availability of the id in hotmail.
Thanks
Hotmail (or any other email provider) will not give you this facility, because it will open the main doors for spammers. They can validate the id and then enjoy.

Access contact list to use e-mail address?

i have no idea of how to access the contact list of the windows mobile programmatically to use the email addresses.
i want to show the the email of contact list only and when user selects one of them email value is retrieved in a string .
please help me.
regards,
Madhup
From the windows mobile SDK, you can reference in:
Microsoft.WindowsMobile.PocketOutlook
Then in your code, add in
using Microsoft.WindowsMobile.PocketOutlook;
Then you can use that to get contacts using ContactCollection

Resources