Android的锁屏 [英] Android lock screen

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

问题描述

有没有办法来显示锁屏界面上的文字?就像未读短信之类的音乐播放器上的锁屏,播放/暂停按钮的信息。

Is there a way to display text on lock screen? Like the information about unread SMS messages or like that Music Player on lock screen with Play/Pause buttons.

感谢

推荐答案

是的,没有。他们是没有公共API来创建或修改的锁屏。谁建设备上的操作系统版本创建的锁屏。一些制造商或运营商已经增加了额外的东西锁屏。我已经看到了一些配合的音乐应用程序,HTC感觉有几分自定义锁屏。所以,如果你愿意创建自己的ROM,并将其闪存到您的设备,你可以写你自己的锁屏。短的,最好你能做的就是编写系统认为是一个备用的主屏幕,有一些类型的锁机构将显示实际回家之前的应用程序。然后,设置您的设备不使用锁屏(这样就不会同时显示),这并不是一个很好的解决方案然而,就必然有更多的方式,如果您使用的是假的锁屏就像访问设备这因此,如果安全是一个问题,我不会乱用它。

Yes and no. Their is no public API to create or modify the lock screen. Whoever built the OS version on your device created your lock screen. Some of the manufacturers or carriers have added additional things to the lock screen. I've seen some that tie in to the music app, HTC sense has a somewhat customizable lock screen. So if you were willing to create your own rom and flash it to your device you could write your own lockscreen. Short of that the best you can do is write an app that the system thinks is an alternate home screen that has some kind of lock mechanism before the actual home is displayed. Then you set your device not to use a lock screen(so that it won't show both) This is not a great solution however, there are bound to be more ways to access the device if you use a "fake" lock screen like that so if security is an issue I wouldn't mess with it at all.

您也许可以找到该套件您的需求,在市场上,这些假锁定屏幕中的一个,或者你可以创建一个是你想要什么。你还可以搜索周围的XDA为与设备工程,第三方ROM的更可能有你想要的锁屏上的功能的ROM。

You might be able to find one of these "fake" lock screens on the market that suites your needs or you could create one that is exactly what you want. You could also search around on XDA for a rom that works with your device, 3rd party roms may be more likely to have the features your looking for on the lock screen.

如果你最终使用的家庭更换方法,我强烈建议你不要散布类似的东西在市场上做一个pretend锁屏。它是不安全的,用户是不会意识到有这一点,一个合法的锁屏之间的差异。加没有保证,这种方法没有得到在某一点破裂。

If you end up making a pretend lock screen by using the home replacement method I strongly suggest you do not distribute something like that on the market. It is insecure and the users are unlikely to realize that there is a difference between that and a legit lock screen. Plus there is no guarantee that this method doesn't get broken at some point.

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

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