- Jun 6, 2020
- 11,559
- 4,422
Hello,
I am making an app with widget. The data in the widget needs to be updated hourly. As there is an online request necessary I would like to optimize it at far as possible to spare battery and data. So I read about the possibility of a broadcast receiver for detecting screen on off events. I thought of only updating if the screen is turned on and if an hour has passed since last time or something like that.
Is there any info on how to implement this in B4A? What event is that?
I found this on stackoverflow. But how do I transfer it to B4A?
Manifest:
...
I am making an app with widget. The data in the widget needs to be updated hourly. As there is an online request necessary I would like to optimize it at far as possible to spare battery and data. So I read about the possibility of a broadcast receiver for detecting screen on off events. I thought of only updating if the screen is turned on and if an hour has passed since last time or something like that.
Is there any info on how to implement this in B4A? What event is that?
I found this on stackoverflow. But how do I transfer it to B4A?
Manifest:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید