打开设备上的屏幕 [英] Turn on screen on device

查看:96
本文介绍了打开设备上的屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何打开电视呢?

我尝试过类似的事情

adb -d  shell am broadcast -a android.intent.action.SCREEN_ON

它确实应该工作,我发送了广播意向,它已被系统接收,但屏幕无法打开

我不明白这是什么问题,是否可以通过代码打开设备的屏幕?我的意思是软件?原因似乎仅通过按下硬件按钮即可打开屏幕. . .至少我被砍伐了,我错了吗?

解决方案

对此我可能是错的,但是...

您不应将广播视为要完成的事情发送,而应该将广播视为完成后发送的事情.

我认为系统在屏幕打开时会发送"android.intent.action.SCREEN_ON",但发送"android.intent.action.SCREEN_ON"并不一定会使屏幕继续打开.

我希望这是有道理的.

有关答案,您可以在...中找到它.

How can I turn the sceen on ?

I tried something like this

adb -d  shell am broadcast -a android.intent.action.SCREEN_ON

It really should work, I send broadcast intent it is received by the system, but the screen doesn't turn on

I do not understand what is the problem, is it possible to turn the screen of the device by code ? I mean with software ? Cause it seems like the turning on of the screen is done just by the hardware button press . . . at least I got that felling , am I wrong ?

解决方案

I could be wrong about this, but...

You shouldn't think of broadcasts as something to send to get things done, but instead think of them as things that are sent when things are done.

I think the system sends 'android.intent.action.SCREEN_ON' when screen is goes on, but sending 'android.intent.action.SCREEN_ON' does not necessarily make the screen go on.

I hope this makes sense.

For the answer, you can find it in...

这篇关于打开设备上的屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆