- Jun 6, 2020
- 11,559
- 4,422
I have a class that needs to trigger a webview to refresh, when it recieves input from a service that monitors incoming sms.
In c++ I would pass a pointer to the webview into the class's sub. How do I do that in b4a? I have searched forums and don't see anything, but I might be using the wrong vocabulary.
The class can't see "Webview1" as it is part of the main Activity and doesn't exist to the compliler yet.
If I can't update the activity's webview from a class, and instead need to declare a webview inside the class, do I just set it's parent and attributes in Activity load to make it show up?
This class so far doesn't have any UI components. It triggers from a service that monitors incoming sms. I need it to be able to run in the background and not be put to sleep, and I read somewhere on the forum here that is best to keep ui elements out of classes and background services.
Thank you so much! Sorry if this isn't formatted the best I've been searching the forums...
In c++ I would pass a pointer to the webview into the class's sub. How do I do that in b4a? I have searched forums and don't see anything, but I might be using the wrong vocabulary.
The class can't see "Webview1" as it is part of the main Activity and doesn't exist to the compliler yet.
If I can't update the activity's webview from a class, and instead need to declare a webview inside the class, do I just set it's parent and attributes in Activity load to make it show up?
This class so far doesn't have any UI components. It triggers from a service that monitors incoming sms. I need it to be able to run in the background and not be put to sleep, and I read somewhere on the forum here that is best to keep ui elements out of classes and background services.
Thank you so much! Sorry if this isn't formatted the best I've been searching the forums...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید