简体   繁体   English

是否可以从应用程序连续读取RIL日志?

[英]Is it possible to read RIL logs from app continuously?

我想检查一些仅在RIL日志中报告的事件,例如通话处于活动状态,消息传递时等。我知道相关的日志语句,但无法弄清楚如何从RIL日志中连续访问它们并使用在我的应用中。

For the Log you concerned, they are not reported continuously. 对于您关注的日志,不会连续报告它们。 If you're interested in call/message event, you should better register broadcast receiver for SMS_DELIVER broadcast, and for call, listen a PhoneStateListener. 如果您对通话/消息事件感兴趣,则最好为SMS_DELIVER广播注册广播接收器,对于通话,请侦听PhoneStateListener。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM