How to choose all details of the contact saved in windows phone? - windows-phone-7

As far as I know we can choose Address, Email, and Phone Number of the peoples added in our windows phone device using AddressChooserTask, EmailAddressChooserTask and PhoneNumberChooserTask respectively. What I want is to access all the persons details in one just single task. How can I do that. It is possible or not?
Regards
Amit

I got the answer...
using UserData namespace and Contacts Class, we can do it like this..
Microsoft.Phone.UserData.Contacts contact = new Microsoft.Phone.UserData.Contacts();
contact.SearchCompleted += contact_SearchCompleted;
contact.SearchAsync("",Microsoft.Phone.UserData.FilterKind.None,"");

Related

Getting the appid included in the Record URL(Dynamic) in a Dynamics 365 email workflow

I've been tasked with creating a workflow in Dynamics 365 which can send emails (the easy bit). However, the email has a link to the record (also easy using the Record URL(Dynamic) attribute). However, we use Apps in our Dynamics instance and the link generated by the workflow using Record URL(Dynamic) doesn't include the app id and so when users click the link they are taken to Dynamics but are now outside the app.
My question is, is there a supported way to appending the App Id to the Record URL(Dynamic) attribute?
I've already searched for answers to this and cant find any. My solution was to create an Action which takes as input the Record and app ID, appends them and outputs them as an output parameter. This works to be honest, but I'm wondering if I'm reinventing the wheel and there is an easier way to achieve this.
Thanks and hope this helps anyone else with the same issue.
We can get the Application ID from Xrm.Utility.getGlobalContext();
The application ID is one of the properties that returned
var globalContext = Xrm.Utility.getGlobalContext();
globalContext.getCurrentAppProperties().then(
function success(app) { console.log(app.appId); }, function errorCallback() { console.log("Error"); });
For more details refer to Here
While we are waiting for MS to give the OOB option to choose Model driven app Id & embed in Record url of WF, I recommend you to follow Andrew Butenko’s workaround using Ultimate Workflow Toolkit to achieve it with no code.
This is basically using UWT custom step to append App Id with Record url on the fly.

How do I add an existing person to a group in the Mac Address Book using pyobjc?

Can anyone give me any guidance as to how I can add an existing person to a group in the Mac Address Book using pyobjc?
So far I have managed to get a list of the members of each group.
The AddressBook framework documentation on Apple's developer website describes how you do so. You basically use the groups "addMember_" method to add a new member to a group.

How to use the File API to store text data in the samsung TV?

How to use the File API to store text data in the samsung TV ?
And the data will "live" until the application uninstalled.
I implemented video api of samsung tv. When start my api, asking for user login account. But, I want to store user's login details. User don't need to enter every time login credentials. If once user logged in, and next time username and password should pre populated with details. I think file api is useful for me. But don't understand how to use it. Where to store file which is going to use or what should be extension? And how to access that file fileSystemObj.openCommonFile(curWidget.id + '/testFile.data', 'r');
what is this "curWidget.id" I mean how to use it for my app?
Please, guide me. Or if possible provide me an example.
curWidget.id is widget id of the app in the widgetlist.xml is written widget id.
I hope it is helpful for you
curWidget.id is identificator of installed widget, it is provided by smart hub. When you publish your app, it is generated by seller site.
Basic guideline about files: your app should create directory for its files. Recommened path is value of curWidget.id property.
Example available in Samsung documentation: http://samsungdforum.com/Guide/?FolderName=tec00111&FileName=index.html
var fileSystemObj = new FileSystem();
if (fileSystemObj.isValidCommonPath(curWidget.id) == 0){
fileSystemObj.createCommonDir(curWidget.id);
}
var jsFileObj = fileSystemObj.openCommonFile(curWidget.id + "/data.dat","w");
/* Some code */
fileSystemObj.closeCommonFile(jsFileObj);
Your files will stay and after app uninstallation. You will have to remove them yourself. This is also covered in guide.

How to use NokiaMap for WP7

I'm trying to use a NokiaMaps for windows phone 7 and I've tried follow from this sites:
http://developer.nokia.com/Community/Wiki/Nokia_Maps_for_WP7_using_Bing_Map_Control.
But "MapTileLayer" as Hybrid,Physical,Street,Satellite... does not work !
I think this problem is UriFomat but i can't solve.
Can you please tell me the reason ?
For using the Bing Map control successfully you need to obtain a Bing Map Token (NokiaMapTile.cs, topic 4). You can obtain it here: https://www.bingmapsportal.com/
Beware that when requesting the token you need to specify the same app name as the test one (in this case NokiaMaps).
And be sure to update the .cs and .xaml files with your newly created token data.
Regards,

How to know country of the marketplace that was used to download of the instance of an application?

I need to know country of an user, but I don't like to use the Location API. Because it require additional certification and seems strange for my app. I need to know it to enable country's specified features. I check the culture of a phone but it doesn't perfect.
Not perfect, but what about using
System.Globalization.CultureInfo.CurrentUICulture
and then give the user an option to change it in the settings?
Get the 2 character ISO region (country) code with this:
System.Globalization.RegionInfo.TwoLetterISORegionName

Resources