I found a problem with the latest Itoo extension 4.4. Took me a lot of time to figure out what the problem was. My phone is Android 14 Xiaomi Redmi note 12 Pro.
The problem is that if you use 2 screens, let's say the 1st screen is a welcome screen and use Itoo extension in the 2nd screen, then you have to add Itoo extension in the 1st screen also (photo) else the Itoo process won't start in the 2nd screen !
Thanks for the discussion/answers - it helps....and the future of itoo looks bright!
Why do I keep thinking of "just one more question" :-?)
Ok - last one, I promise (until I think of another )
Once the Itoo.StoreProperty is used, when does the itoo data space get cleared. When it is stopped using Itoo.StopProcess? How about when it is forced to terminate using "Force Stop" in settings? Would it ever be necessary to uninstall in order to clear the data space?
Hi, I need help with programming in MIT App. I am using the Itoo and UrsPahoMqttClient extensions. I need to create a notification when an MQTT message is received. If I close the app (not just send it to the background), the notification stops working. I tried using a timer or something similar, and it works the same way. Is this even possible? Can someone explain this to me? Is it because of TinyDB?
Yes, do NOT use TinyDB, alternatively you should use Itoo's own Fetch/Store blocks
Secondly, in the pozadhi procedure, you are not touching any block of MqttClient so therefore, that component will not get created at all!
Just add the above block at the start of pozadhi
Thirdly, you are registering the events wrong! Anyways, if you are on the latest version of extension, you can use automatic events feature (you wouldnt need to use the RegisterEvent block) Just do this:
In this procedure, you will handle the message received event.
Fourthly, you CANNOT interact with UI blocks from the background. That means you wont be able to change any Label's text, any such attempts may crash the app.
You cannot use Global variables in background.
Reading the first post, about design and guidelines will help you.
Well I guess that would be the primero example of "persistent" data ...
BTW, on this app I am using a home spun method of keeping up with what's in the itoo data. I have wrapped itoo.StoreProperty with a procedure which first fetches a list variable, propertyList, from itoo (empty one if not there), checks to see if the variable being stored exists, and if not, it then adds it to the list (which is also stored in itoo). So that I can dump the content of the itoo memory variables at any time for debugging or whatever. Not sure it will be worth the trouble, but I am trying it. [this reminds me I must disallow the name of the list as a variable to be stored - oops ]
I am coding calls to component blocks that are to be made in the UI but executed in the background using the new itoo facility (CallBackgroundProcedure) and I wonder if there is a better way to do this:
Build a wrapper procedure for the component block to be called:
Well, I have my player component running in the background process ... so I am making calls from UI to the player (in the itoo service)...
The app that I am converting is specialized URL player (it has an adjustable delay). I am moving the player into the background so it will keep running when UI closes.
I assumed that if I made calls from UI to a player it would go to the player component created in the UI process (which I never intend to use) and not in the one created in itoo via "run x".