如何避免在插入 Windows Phone 时锁屏

问题描述:

就这么简单,在 有一个名为 的设置保持清醒,这将防止您的手机在您使用它调试应用程序时锁定.

Easy as that, in there's a setting called Stay awake that will prevent your phone to lock down while you're using it for debugging an app.

我正在为 Windows Phone 8.1 寻找同样的东西(可能更好).

I'm looking for the same thing (could be better) for Windows Phone 8.1.

每次我按 F5 时,我都需要解锁手机,否则会出现以下错误:

Every time I hit F5 I need to unlock my phone or I would get the following error:

DEP6600:部署失败.设备屏幕锁定时无法部署应用程序.请确保设备屏幕未锁定,然后重试.

DEP6600 : Deployment failed. Cannot deploy app when device screen is locked. Please make sure that the device screen is not locked, and try again.

错误:应用程序启动失败.确保设备屏幕已解锁且设备已由开发人员解锁.有关开发人员解锁的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=195284

Error: Application launch failed. Ensure that the device screen is unlocked and device is developer unlocked. For details on developer unlock, visit http://go.microsoft.com/fwlink/?LinkId=195284

如果我自己运行 AppDeployCmd 工具.

if I run the AppDeployCmd tool myself.

有什么办法可以避免这种情况吗?(当然每次都不会改变我的锁屏超时)

Is there a way I can avoid that? (without changing my lock screen time out every time of course)

我认为不编写单独的应用程序就无法做到这一点.在手机上有一个选项:设置 > 锁定屏幕 > 屏幕超时,您可以将其设置为最大可用时间.对于相同的手机,例如低端诺基亚,可以选择将该时间设置为从不,但对于诺基亚 1320 或诺基亚 1520 等较新的手机,最长仅为 5 分钟.

I don't think you can do this without writing a separate app. On the phone there is an option: Settings > Lock Screen > Screen time out, which you can set to maximum available. For same phones, like lower end Nokias there is an option to set that time to never, however for newer phones such as Nokia 1320 or Nokia 1520 that maximum is only 5 minutes.