简体   繁体   English

允许我的应用程序使用相机按钮打开

[英]Allow my app to be opened with camera button

I'm working on a WP8 app that will utilize the camera for a feature. 我正在开发一款WP8应用,它将利用相机拍摄一个功能。 I've read that, as of GDR2, you can now change which app opens with the camera button , but: 我已经读过,从GDR2开始, 您现在可以使用相机按钮更改打开的应用程序 ,但是:

it appears that an app needs to be specially written to be used like this; 似乎应用程序需要专门编写才能像这样使用; not every photo or camera app can be configured to launch when you press the Camera button. 并非所有照片或相机应用程序都可以配置为在按下“相机”按钮时启动。

Question: What do I need to do in my app for it to become an available option in the "Pressing the camera button opens: " drop down when navigating to Settings -> Applications -> photos + camera? 问题:在我的应用程序中,我需要做什么才能成为“按相机按钮打开时:”导航到设置 - >应用程序 - >照片+相机时的下拉菜单?

Additionally , part 2 of this question would be (if part 1 is possible), when the application is launching, can I determine if the user opened it via the camera button (so that I could go straight to my camera feature)? 此外 ,这个问题的第2部分是(如果第1部分是可能的),当应用程序启动时,我可以确定用户是否通过相机按钮打开它(这样我可以直接进入我的相机功能)?

I've seen this article but it only describes how to use and handle the shutter button, it doesn't mention how to allow this button to open the app . 我已经看过这篇文章,但它只描述了如何使用和处理快门按钮,它没有提到如何允许此按钮打开应用程序

Has anyone been able to accomplish this? 有没有人能够做到这一点?

This thread ( http://forums.wpcentral.com/windows-phone-8/234751-changing-default-camera-app.html ) seems to suggest that only manufacturers can create apps that can do this. 这个主题( http://forums.wpcentral.com/windows-phone-8/234751-changing-default-camera-app.html )似乎表明只有制造商才能创建可以做到这一点的应用程序。 Not sure if it's definite, but I've never heard of a 3rd party camera app that can do more than register as a lens . 不确定它是否确定,但我从来没有听说过第三方相机应用程序可以做更多注册为镜头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何覆盖 Windows Phone 应用程序中的相机按钮? - How to override the camera button in a Windows Phone app? 从我的WP8应用程序启动外部Camera应用程序 - Launching external Camera app from my WP8 app Windows Phone 8位图分配使我的相机应用程序崩溃 - Windows phone 8 Bitmap allocation crashing everything in my camera app 如何从我的Windows Phone 8应用程序(XAML和C#)访问相机并将拍摄的照片保存在确定的文件夹中? - How to access the camera from my Windows Phone 8 app (XAML and C#) and save the taken picture in a determined folder? 后退按钮控制我的Windows Phone 8.1 Silverlight应用程序 - Back button controlling for my Windows Phone 8.1 Silverlight App 在我的应用程序中将按钮添加到收藏夹页面。 可湿性粉剂 8 - Add button to favorites page within my app. WP 8 Windows Phone应用程序状态和摄像头 - Windows Phone App State & Camera Windows Phone 8中的Camera App中的NotSupportedException - NotSupportedException in Camera App in Windows Phone 8 相机镜头应用程序导航在Windows Phone 8中不起作用 - Camera Lens app navigation is not working in Windows Phone 8 使用CameraCaptureTask启动默认的相机应用 - Using CameraCaptureTask to launch the default camera app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM