Unfortunately, this functionality does not currently exist on Windows Phone so the method will always return null. The icons on MSDN are fairly simplistic - they only indicate whether the method is present and callable on a particular platform, not whether it fully implements the expected behavior. Granted, there would ideally be a note in the remarks section indicating the difference in behavior.
How can I get the profile image of Windows Phone 8.1 owner's
-
16-07-2023 - |
Frage
I want to get the Windows Phone User(Owner)'s picture. And there seems to be a proper Api UserInformation. I tried it but both code always returns null. I have profile picture in people app.(But I'm not sure this is the one mapped with UserInformation
)
IStorageFile file1 = UserInformation.GetAccountPicture(AccountPictureKind.SmallImage);
IStorageFile file2 = UserInformation.GetAccountPicture(AccountPictureKind.LargeImage);
My environment is
- Windows Phone 8.1 Lumia 920 device.
- Visual Studio 2013 Update 2 RC
And I added application manifest also.
xml
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe">
<Extensions>
<Extension Category="windows.accountPictureProvider" />
</Extensions>
</Application>
<Applications>
Is there am I missed?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow