i look at the list of choosers for windows phone 7 and i miss one where i can read the avatar-pic fo the contact. am i missing something here or is this just not possible yet?
thx
sargola
This isn't possible through the phone SDK at the moment.
What is exposed is being able to retrieve the email address or the phone number from a chooser. Details on that here for reference.
How to: Use Choosers for Windows Phone
Related
is it possible to create a custom account (similar to Microsoft Account,Facebook, Twitter, ...) in Windows Phone so that a user can setup an account of my Custom Type and then can sync data and so on.
It's something similar to using a SyncAdapter in Android.
can I achieve this in Windows Phone ? what are the APIs to use ?
Thanks
No, there is no way to setup your own account type.
But in Windows Phone 8 your application can add its own contacts to People hub. Here is basic samples:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207024(v=vs.105).aspx
And from this book you can get more details:
Windows Phone 8 Development Internals
I want to extract "user own mobile number", not his whole phone book. i am using c# as the developing language. thank you
If you want to get device's own phone number, then it's not currently possible.
As far as I know, it is not possible to get the own cell number in Windows Phone.
I guess appointment class for Windows Phone is read only class. Can any one suggest me on how to create a calender event in Windows Phone 7 application. Is there any API available for the same.
Thanks,
Harlborn
Both the google calendar and the Windows Live calendar have a rest API. You might be able to do something by calling these methods. I have never tried either of these, but they might be worth a look.
You can't create or edit calendar items in windows phone 7
How do you access the contacts store (the contact list) within Windows Phone 7?
Thanks!
update: It seems that this might be available in the next version of WP7, Mango:
Link
EDIT: This answer was correct at the time of posting. In Windows Phone 7.1 (Mango) third-party applications will have access to contacts.
You can't. You're not allowed to. That's viewed as private data that applications shouldn't be touching.
EDIT: Although you can't directly access the contacts list, you can launch the EmailAddressChooserTask or PhoneNumberChooserTask to get back just that piece of information about a user-specified contact. (Likewise you can launch a task to save a phone number or email address.)
There is a official Walkthrough at Microsoft especially for Mango Beta 2.
Windows Phone SDK 7.1 Beta 2 gives you read-only access to the user’s contact data, aggregated across the user's different accounts.
Only possible way to save new details to a contact is via the Launchers:
SaveEmailAddressTask
SavePhoneNumberTask
SaveContactTask (which is new to Mango Beta 2)
For read only you can use:
PhoneNumberChooserTask
EmailAddressChooserTask
AddressChooserTask (which is new to Mango Beta 1)
If you want to query the whole contact list, you will need LINQ.
Check the WP7.1 SDK Beta for the class "Contacts" listed in the namespace UserData . Now you should be able to...
How can I fetch the calendar-activities from Outlook in my Silverlight WP7-app? I want to make my own Agenda-app to run on my Windows Phone 7 (Omnia 7).
UPDATE
If not directly from phone calendar to my app, what other options do I have?
In my phone I currently have Windows Live and Outlook calendars. Im guessing that new Windows Live activities I enter on the phone is synched to my online Live-account? Could I then get those through a custom WCF-service/XML-feed instead perhaps? And likewise with the Oulook-calendar. It should be synched with the Outlook-calendar on the SharePoint-server. Maybee I can get the calendar-events in a custom server-app and feed it to the phone through the local network instead. Any suggestions?
And is there any way to add more calendar-sources then Live and Outlook to the WP7-calendar? Is there any API for this?
The short answer is: "you can't do that".
The long answer is: "sorry you can't do that".
All kidding aside, currently the API doesn't expose any method of accessing the user's calendar. Rightly or wrongly they do this for security reasons.