Sergey_New Well-Known Member Licensed User Longtime User Jan 7, 2023 #1 Couldn't figure out how to do it right. In the attached example, an error occurs. Please help and fix the code. Attachments test.zip 82.9 KB · Views: 198
Couldn't figure out how to do it right. In the attached example, an error occurs. Please help and fix the code.
DonManfred Expert Licensed User Longtime User Jan 7, 2023 #2 1. B4X: StartServiceAt(Me, NextTimeInstance(21, 50) ,True) Is a code to start A SERVICE! You CAN NOT start an activity as a Service. FORGET about Activities: Switch to B4XPages. And use a SERVICE to start with StartServiceAt Upvote 0
1. B4X: StartServiceAt(Me, NextTimeInstance(21, 50) ,True) Is a code to start A SERVICE! You CAN NOT start an activity as a Service. FORGET about Activities: Switch to B4XPages. And use a SERVICE to start with StartServiceAt
Sergey_New Well-Known Member Licensed User Longtime User Jan 7, 2023 #3 Thanks, but I'm not ready to move on to B4XPages yet. Please fix my example to make it work. Upvote 0
DonManfred Expert Licensed User Longtime User Jan 7, 2023 #4 Sergey_New said: Please fix my example to make it work. Click to expand... ME? WHY? I told you the solution. Fix it by yourself. Add a service to your app and use the code in this service to reshedule the service. Upvote 0
Sergey_New said: Please fix my example to make it work. Click to expand... ME? WHY? I told you the solution. Fix it by yourself. Add a service to your app and use the code in this service to reshedule the service.
Sergey_New Well-Known Member Licensed User Longtime User Jan 7, 2023 #5 DonManfred said: ME? WHY? Click to expand... I don't understand how to do it, that's why I asked to correct the example. Upvote 0
DonManfred said: ME? WHY? Click to expand... I don't understand how to do it, that's why I asked to correct the example.
DonManfred Expert Licensed User Longtime User Jan 7, 2023 #6 I suggest to read some Tutorials, Documentation, watch learning-sessions. In fact learning the language. B4X Programming Learning Resources Resources for B4X programming language and tools www.b4x.com B4A Documentation www.b4x.com B4X Programming Video Tutorials www.b4x.com Good luck Upvote 0
I suggest to read some Tutorials, Documentation, watch learning-sessions. In fact learning the language. B4X Programming Learning Resources Resources for B4X programming language and tools www.b4x.com B4A Documentation www.b4x.com B4X Programming Video Tutorials www.b4x.com Good luck
Sergey_New Well-Known Member Licensed User Longtime User Jan 7, 2023 #7 Thank you for not refusing. Upvote 0
Sergey_New Well-Known Member Licensed User Longtime User Jan 7, 2023 #8 Maybe one of the forum participants will be able to fulfill my request, and not answer what I need to read? Upvote 0
Maybe one of the forum participants will be able to fulfill my request, and not answer what I need to read?
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2023 #9 The answer in the second post is correct, even if you are not using B4XPages. The next version of B4A will support receivers. They work better than services for such tasks. If you want to start an activity while the app is in the background, you need this permission: https://www.b4x.com/android/forum/threads/draw-on-top-of-other-apps-permission.90513/ Upvote 0
The answer in the second post is correct, even if you are not using B4XPages. The next version of B4A will support receivers. They work better than services for such tasks. If you want to start an activity while the app is in the background, you need this permission: https://www.b4x.com/android/forum/threads/draw-on-top-of-other-apps-permission.90513/
Sergey_New Well-Known Member Licensed User Longtime User Jan 8, 2023 #10 Erel said: you need this permission Click to expand... Got it, thanks! Erel said: The next version of B4A will support receivers. Click to expand... Very well! Upvote 0
Erel said: you need this permission Click to expand... Got it, thanks! Erel said: The next version of B4A will support receivers. Click to expand... Very well!