N Nataly Member Nov 15, 2021 #1 Hello I'm trying to change the text of a label in an activity from a service. I used: B4X: CallSubDelayed2(ActivityName, "PassParam", "labelUpdatedText") Unfortunately this doesn't work on all devices. I get the error: Sending message to waiting queue of uninitialized activity (ActivityName) How can I resolve this issue? Thank you, Nataly
Hello I'm trying to change the text of a label in an activity from a service. I used: B4X: CallSubDelayed2(ActivityName, "PassParam", "labelUpdatedText") Unfortunately this doesn't work on all devices. I get the error: Sending message to waiting queue of uninitialized activity (ActivityName) How can I resolve this issue? Thank you, Nataly
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2021 #2 Why are you using a service? Why aren't you using B4XPages? Upvote 0
N Nataly Member Nov 15, 2021 #3 I'm using the service for udp packets. When a udp packet arrives i need to change something in an activity. Upvote 0
I'm using the service for udp packets. When a udp packet arrives i need to change something in an activity.
N Nataly Member Nov 15, 2021 #4 Erel said: Why aren't you using B4XPages? Click to expand... Will b4xPages fix the issue? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2021 #5 Yes. You will not need the service (I assume that you don't have a foreground service). Upvote 0
N Nataly Member Nov 15, 2021 #6 Erel said: You will not need the service (I assume that you don't have a foreground service). Click to expand... I do have foreground services. I will convert to B4xPage. Hope it will resolve the issue Thank you Erel Upvote 0
Erel said: You will not need the service (I assume that you don't have a foreground service). Click to expand... I do have foreground services. I will convert to B4xPage. Hope it will resolve the issue Thank you Erel
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2021 #7 With B4XPages, you can implement all the network code in any of the pages. The pages are never paused. Upvote 0
With B4XPages, you can implement all the network code in any of the pages. The pages are never paused.
N Nataly Member Nov 15, 2021 #8 Erel said: With B4XPages, you can implement all the network code in any of the pages. The pages are never paused. Click to expand... I see.... Is there a thread or tutorial that explains the differences between activity and B4xPages? Upvote 0
Erel said: With B4XPages, you can implement all the network code in any of the pages. The pages are never paused. Click to expand... I see.... Is there a thread or tutorial that explains the differences between activity and B4xPages?
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2021 #9 Search Results www.b4x.com [B4X] B4XPages - Cross platform and simple framework for managing multiple pages [B4X] [B4XPages] What exactly does it solve? Upvote 0
Search Results www.b4x.com [B4X] B4XPages - Cross platform and simple framework for managing multiple pages [B4X] [B4XPages] What exactly does it solve?
klaus Expert Licensed User Longtime User Nov 16, 2021 #10 You may have a look at the B4XPages Cross-platform projects booklet. Upvote 1