开发者

android Service to detect that home screen is on

开发者 https://www.devze.com 2023-03-05 11:42 出处:网络
Can I write an service in android which detects that we are on home screen and Toast a message. I want to detect that control is currently on home screen.

Can I write an service in android which detects that we are on home screen and Toast a message. I want to detect that control is currently on home screen.

Let me know if possible.

Thanks, P开发者_开发技巧ravin


In general this will be difficult: see http://code.google.com/p/android/issues/detail?id=6393 for an explanation of why there isn't an Intent to do this.

Staring at the debug log output on any one of my devices there really is no global indicator, so not sure you'll have a lot of luck there.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号