且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

时通知应用程序涉及到前台

更新时间:2023-01-04 18:57:24

然后一个简单的解决方案是创建一个类型的静态变量在一些类和所有 code> onResume()活动的方法与实例初始化它..并且使用检查服务如果conditon 并进行..

Then a simple solution is Create static variable of type Context() in some Class and in all onResume() methods activities initialize it with their Instances.. and check it in service using if conditon and carry on..