Open Source • Background Tasks: Itoo 🚀

Oh, so basically you want reverse of what the extension does? Like do you want to be able to call application's procedures from a background service? Also, it's better if we continue the discussion through PM.

Greetings, dear Kumaraswamy!
I wrote in this topic an application on your extension for remote temperature measurement: BLE_WEATHER_V1.2.aia
Now the task is to register coordinates in the background based on LocationSensor.
But, the sensor hides when the application is minimized, although this does not happen in Google Maps!
You once wrote that some sensors are blocked in the background. But there are a lot of videos on the Internet about implementing background tracking. They talk about using Java. So is this possible?
Can you add this feature to your extension?
So far I have limited myself only to the ability to reduce the screen brightness to a minimum and disable all on-screen buttons and the map...
Best regards!

Hi @Jerej, the location sensor is not supported in the background, this has to do with the missing manifest elements of the application.

In the newer versions of Android, directly querying location in background without special permission/access is not supported.


Itoo right now only supports what it can in the background, I do not plan to add any extra features into the extension meanwhile.

At the moment, Itoo is a pure implementation of only background processing capability.

For alternatives solution, you may explore these extensions:

Well! And thanks for that! I'll definitely check out the recommended apps!

1 Like

I have planned to integrate Itoo functionality into the locationservice extension, this then enables us to execute almost any task in the background using Itoo (however no user interface components).

In case you are interested in sponsoring the update and get access to the beta version to test, please send me a PM... How to send a PM (personal message)

Taifun

2 Likes

Yes, it is a rename of SimpleToast.HexToColor - [Free Open Source] my toast extension 3.0

In earlier efforts I had used the hex color value to adjust a color to match a certain background on the phone I was using. When I "reused" the code I wrongly substituted a color block for the hex value :frowning:

Thank you for your help. For me, it was doubly helpful since I was forced to learn how to locate System errors in logcat output :slight_smile:

Kind regards,
Randal

2 Likes

Help i cant get the variable text to clouddb.
I did try with save file also didnt save the text varisble

The Clock1.Timer event handler should be called timer without arguments to not get confused...
In there you read the file

And register additionally the File1.GotText event using the argument text
In there you use your Cloud db block

Taifun

I just remove and place the readfile blok to timer but still no data send

Still confuse
I just need to send file content to cloud in background

I did that but still no data send
I replace cloud db to save file for easier to check the data

I did this but the data only sending (saving) when the app is restarted

If you want to read the file on each Timer event, then you should read it in your event handler for the Timer event, which is your procedure lokal

Your path of your file method does not make sense... why are you using that path, which points to the companion app? You can test only after building the app anyway

And why did you change the example again? Your original plan was to store something in CloudDB?

Taifun

How often does the file content change?
You might want to elaborate, what exactly you are trying to do

Taifun

The data is streamed nicely thankyou taifun
The path is there because i need to check that the blok is functioning by saving in other places hehehe

you can't write a file to the ASD of another app, in this case the companion app...
try to store it in shared storage, for example /Download/locationj.txt

Taifun

The problem continues ican store the data using save file to dummy
IMG-20240202-WA0005

But i got error on clouddb the list is 0

please show your complete blocks of your Itoo setup
Taifun

I did try moving the cloudb into three event handler but it seems the clouddb blok not sending data

Here is the aia file
Bgtest.aia (70.4 KB)

Note: the location.txt content is changing every second

One last question is it possible tosend data via clouddb using itoo kuwaraswamy extension???
If so possible i will continue experiment with this ext
If not i will try another method sending the data.

Thank you
Cloud

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Yes, but Inever tried it

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Sorry if my method of asking for help is not clear maybe iam whispering :smile::smile::smile:. Then again thank you for your kindness helping me with the first step.

Still strugling with sending clouddb blok😭

I'm on mobile, so I can't check your aia file
If you want help from me, then provide a screenshot of your relevant blocks
Taifun