jahswant Well-Known Member Licensed User Longtime User Sep 24, 2023 #1 I have a custom library this is an ActivityObject that I use across multiple pages in my application. Strangely, when I raise an event on one instance of this object in one page, it seems to trigger the event on all pages, regardless of the specific event name. I'm confused by this behavior and need help understanding why it's happening and how to fix it.
I have a custom library this is an ActivityObject that I use across multiple pages in my application. Strangely, when I raise an event on one instance of this object in one page, it seems to trigger the event on all pages, regardless of the specific event name. I'm confused by this behavior and need help understanding why it's happening and how to fix it.
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2023 #2 @ActivityObject has nothing to do with the events. How are you raising the event? Post the code. Upvote 0
jahswant Well-Known Member Licensed User Longtime User Sep 24, 2023 #3 Erel said: How are you raising the event? Post the code. Click to expand... ba.raiseEvent(this, eventName + "_DEVOK".toLowerCase()); Upvote 0
Erel said: How are you raising the event? Post the code. Click to expand... ba.raiseEvent(this, eventName + "_DEVOK".toLowerCase());
jahswant Well-Known Member Licensed User Longtime User Sep 24, 2023 #4 Another Java: Bitmap bm1 = BitmapFactory.decodeByteArray(bmpdata, 0, bmpsize); BitmapWrapper bm = new BitmapWrapper(); bm.setObject(bm1); ba.raiseEvent(this, eventName + "_FPMNEWIMAGE".toLowerCase(), bm); Upvote 0
Another Java: Bitmap bm1 = BitmapFactory.decodeByteArray(bmpdata, 0, bmpsize); BitmapWrapper bm = new BitmapWrapper(); bm.setObject(bm1); ba.raiseEvent(this, eventName + "_FPMNEWIMAGE".toLowerCase(), bm);
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2023 #5 This will not cause the event to be raised on multiple pages. The problem is somewhere else. Upvote 0