Itoo 2
The newer version of Itoo now has updated ItooX framework which runs more reliably across all platforms, devices and Android versions.
Services
Itoo supports two types of services.
-
Foreground
- keeps the service alive throughout the session without interruptions.
- a permanent notification will be displayed throughout the session from Oreo.
-
Background Task
- unlike the foreground task, it is executed on a different process.
- vulnerable to unexpected / sudden shutdown by the system (especially Samsung, Xiaomi devices).
- the running task should be completed within
10
or30
minutes depending on the Phone brand. - it is possible to restart the service from then, by setting the
restart
property totrue
.
Blocks
-
Create a foreground process
- A block that will create a singleton instance of the foreground service.
- the process never ends, unless killed by user / system.
-
procedure
: procedure to call when foreground is started. -
title
andsubtitle
: right now, the extension supports to only changetitle
andsubtitle
of the foreground notification.
-
Stop the foreground process
- a block to stop the foreground process externally.
-
Create a Background Process
- A block to create a normal background service that should finish within
10
or30
minutes. -
latency
: the time delay before the start. -
jobId
: the id of the background service. -
procedure
: procedure called when the service is started. -
restart
: specify true if the background process should be looped.
- A block to create a normal background service that should finish within
-
Stop the background process
- the block is used to stop the background process.
- this block
must
be only used inside the background service.
-
Check if background process is running
-
jobId
the Id of the background service.
-
-
Cancel the background service
-
jobId
the Id of the background service.
-
-
Create with trigger
- the above block calls a procedure when charger is connected to the phone.
- the extension can also listen to actions, when the certain action is performed, the respective procedure gets invoked.
-
action
: Intent action as a string. -
procedure
: procedure to call when the action is performed.
-
Register events
-
eventName
: component name and event name combined, likeClock1.Timer
. -
procedure
: procedure called when the event is invoked with the args.
-
Version 2.1 Changes
-
Added methods to store values
- They are like Tiny DBs of Itoo, these blocks can be used in the background services, especially for non-foreground services to store and fetch properties. They provide special connectivity between services and and the application realtime.
-
Added Boot Receiver Block
The functionality has been reintroduced.
Resources
Framework
The framework (!not open source) is the core of the extension, it creates a custom environment, creation of components, handling of procedures and events.
Extension
Both framework and extension is closed source.
Download: xyz.kumaraswamy.itoo.aix (61.5 KB)
Donations
It takes a lot of time to develop, maintain and update the extension time to time.
Especially the itoo-framework.
You can support me via
Note
Do not ask for me to help you with preparing blocks, unless you have tried something.
Please do share what you have achived with the extension
Thanks!