简体   繁体   English

Windows Phone 8.1运行时:如何从我自己的应用程序中启动相册应用程序?

[英]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/ ). 您可以使用FileOpenpickerhttp://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.

相关问题 如何从Windows Phone 8.1中自己的应用程序启动其他应用程序? - How do I launch other app from my own app in Windows Phone 8.1? Windows Phone 8.1:如何从我的应用程序启动已安装的应用程序 - Windows Phone 8.1 : how to Launch an Installed app From My app 有没有办法从Windows Phone 8.1应用程序启动手机摄像头应用程序 - Is there a way to launch phone camera app from Windows Phone 8.1 app 从C#Windows Phone 8.1 App启动Cortana - Launch Cortana from C# Windows Phone 8.1 App 如何在Windows Phone 8.1运行时应用程序中显示计划的对话框? - How to show a scheduled dialog in a Windows Phone 8.1 Runtime app? Windows Phone 8.1应用程序中的USSD呼叫 - USSD calls in my windows phone 8.1 app 如何使用Windows Phone 8.1应用程序处理所有文件类型 - How to handle all file types with my Windows Phone 8.1 app Windows Phone 8.1运行时中的页面和应用程序事件行为 - Page and App events behavior in Windows Phone 8.1 Runtime Windows Phone 8.1运行时应用程序项目中缺少命名空间 - Namespace missing in Windows Phone 8.1 runtime app project Windows Phone 8.1运行时应用程序无法获取TextBlock ActualWidth值 - cannot get TextBlock ActualWidth value in windows phone 8.1 runtime app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM