注册我的广播接收器运行时,一个应用程序启动? [英] Registering my broadcast receiver to run when an app is launched?

查看:52
本文介绍了注册我的广播接收器运行时,一个应用程序启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要运行一些code,当一个应用程序启动,所以我的广播接收器时通知用户打开任何应用程序。

I want to run some code when an app is launched, so my broadcast receiver has to be notified when user open any app.

有没有办法做到这一点?

Is there any way to do it?

推荐答案

没有,对不起,没有意图的应用程序启动时广播,也不是活动启动时。

No, sorry, there are no Intents broadcast when an application is started, nor when an activity is started.

这篇关于注册我的广播接收器运行时,一个应用程序启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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