Save Image of Contact in windows phone 7 using C# - windows-phone-7

I am working on application where I need to save image of particular contact in contact list of windows phone 7 using C#, how to save image of contact which I am unable to do.

You can't.
The only way of saving contact details is via the `SaveContactTask' but this does not support saving images.

Related

Using Cordova/Phonegap to save an image taken from the phone camera Windows Phone 7

I am using Visual Studio 2010 and the Windows Phone 7 Emulator in order to create an app which allows the user to take a photo and then save it into a folder on the file system and also create a reference of it on the database so as all of the images on the database can be displayed on the app. I can't however save the Image that is taken by the camera, I have spent ages looking through the Cordova docs and other websites. It looks as if I need the file location of the image taken by the camera but I cannot get the consol.log to open, I have been through my Registry Editor and I cannot get it to display. I would love an example which would show me how to get the camera image and either save it to localstorage or create a copy in order to save it into a folder.
Thanks in advance
Use FILE_URI for Camera.DestinationType option. It will make the image captured stored in the device's image gallery.
Reference: http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#cameraOptions

Create PDF file in WP7 using C#

I want to develop small application for WINDOWS PHONE7 in which User enters Transaction details eg.Transaction Amount and Bank code.
I want to create new PDF file and write this data in it.
I tried adding iTextSharp.dll but is gives Error: Reference cannot be added it Windows Phone project will work with Windows Phone assemblies.
Please suggest other way or assemblies available for it.
You cannot do this on the phone. So don't do it on the phone. Do it on a server in a web service. You can deliver the PDF back to the phone if that is its final destination, or email it directly from the server.

Loading Xbox Live Avatar Model in Windows Phone 7 using XNA

Does anybody know how to access the Xbox Live Avatar from within an XNA based Windows Phone 7 application?
Examples I have found seem to use a SignedInGamer.Avatar property, but this is not accessible from Windows Phone 7.
Is there another way or is this not possible in the first place?
as a side note, I'm using the recent Mango beta 7.1 SDK
Thanks!
It's not available in code unless you have the elevated privileges of access to XBox live.
You can, however get an image of your avatar from the web. try:
http://avatar.xboxlive.com/avatar/XXXXXXX/avatar-body.png
where xxxxx is the XBox account name. e.g. http://avatar.xboxlive.com/avatar/kris/avatar-body.png
My understanding is they are only available to partners. See this post for more information:
http://www.ozymandias.com/how-do-i-use-xbox-live-apis-on-windows-phone
However, it looks like you can demo them, here's a quick tutorial on using them:
http://xnaessentials.com/archive/2009/06/11/xna-game-studio-3-1-avatar-tutorial.aspx

Can i access and update sim contacts in windows phone 7 application [duplicate]

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...

Get outlook-activities in a WP7-app?

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.

Resources