[Discontinued] Background Tasks [4.1] πŸ₯³


It is a block to close the service. Rescheduling is on the system, it should be started quickly most of the times after it is closed.

i just need to stop service , and start again automatic , can i do this ?

Yes, the extension will stop the service and pass the boolean (true/false) if to restart it.

i will try this :two_hearts:

Thanks @Xoma

1 Like

Yeah, I checked them, they are correct and they will continue to work.

A new update will break the blocks as the names are changed (including the package name) to make it easy to understand.

The next version’s blocks and documentation (no new functioning blocks, just feature upgrades and the source are completely rewritten).

Check them:

1 Like

When it will available for Kodular?

The extension is just in testing stage.
Some common blocks are needed to be added.

Hello, I update my app player to the 3.6 task library, it plays about 5 minutes and it stops playing. What could be wrong?

Someone can help me? Thanks…

myradioplayer.apk (4.3 MB)

Are you testing it in a foreground mode?

Please say your device manufacturer name and the Android version.

Waiting for end of the test, and get v4.0 A soon

Hi
I want this to run in background (when app is closed)


(This app works that whenever user unlocks his phone A music is played.
Everything is working I just want it to work when app is closed(removed from recent)
New here so can’t figure it out.
Can you share some Blocks?

This should be possible to do it.

lock_player.aia (1.2 MB)

Just an example of AIA. Playing music at volume 100 if the phone is unlocked and plays at volume 30 if the phone gets locked. It works.

2 Likes

What is val0 in your code?

That means the event parm value (the first index.)


hh (1).aia (470.5 KB)

i just want check the folder present or not like bool return : true or false

in picture there are 2 type of block normal block with timer event block i want do same with background extension

i check all your example but didn’t get anything to use timer block like this

can you give example like block picture or aia ??? please

Hi, you are not doing it right.

First create all the components, and then create the function and at last you have to regester the event.
Remove the block CallFunction, it dosent do anything after the service is started.

Also, if you are using the default notification component, just provide the title and the description. (Its not notification style).

hmm yeah i am trying it ok thank!

1 Like