[英]Windows Phone 8.1 runtime: How to launch the photo gallery app from my own app?
I know it could be done this way 我知道可以这样
Windows.System.Launcher.LaunchUriAsync(new System.Uri(""));
but I don't know the uri of the default app to show the photo gallery. 但我不知道显示照片库的默认应用程序的uri。 Or is there another way?
还是有另一种方法?
Unfortunatelly if you want just open pictures app, this is impossible. 不幸的是,如果您只想打开图片应用程序,这是不可能的。 Not all applications support launching by uri and we have very poor documentation.
并非所有应用程序都支持uri启动,我们的文档非常差。
List of supported apps is avaiable for example here (this is the biggest): http://blog.mrlacey.co.uk/2014/03/1192-windows-phone-apps-that-have.html 例如,此处提供受支持的应用程序列表(这是最大的): http : //blog.mrlacey.co.uk/2014/03/1192-windows-phone-apps-that-have.html
You can just pick photo using FileOpenpicker
( http://windowsapptutorials.com/windows-phone/media/using-fileopenpicker-in-windows-phone-8-1-to-choose-picture-from-picture-gallery/ ). 您可以使用
FileOpenpicker
( http://windowsapptutorials.com/windows-phone/media/using-fileopenpicker-in-windows-phone-8-1-to-choose-picture-from-picture-gallery/ )来选择照片。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.