开发者

android Service to detect that home screen is on

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜