我写这个代码命令序列?
WindowManager.LayoutParams params = getWindow().getAttributes();
params.flags |= LayoutParams.FLAG_KEEP_SCREEN_ON;
params.screenBrightness = 0.1F;
getWindow().setAttributes(params);
SystemClock.sleep(5000);
TextView Text01 = (TextView) findViewById(R.id.Text1);
Text01.setText("Hello");
设置屏幕亮度,然后,在5秒钟后,它会显示文字。问题在于它等待5秒钟,然后Android将屏幕变暗并同时输出文本。为什么它不能顺序工作? 感谢
什么语言/平台/操作系统? –
这是适用于Android的Java应用 - 适用于手机 – notebook
确定 - 问题现在已被正确标记 - 请在将来小心处理。 –