Time tracker example with a server component and iOS and Android client apps.
The client apps allow the employees to check in and out (based on the current status).
The server collects all the data in a SQLite db and can print reports with the employee work times.
As you can see in the code, the B4A and B4i projects are very similar.
Both use KeyValueStore and HttpUtils2 components.
The server address is hard coded in the client code. You will need to change it based on your PC address.
If you run it on Windows then you need to add an incoming rule in Windows firewall. The port is 55555.
Took me about two and a half hours to write all three components. This is a nice example of the power of B4J, B4A and B4i combined
The client apps allow the employees to check in and out (based on the current status).

The server collects all the data in a SQLite db and can print reports with the employee work times.
As you can see in the code, the B4A and B4i projects are very similar.
Both use KeyValueStore and HttpUtils2 components.
The server address is hard coded in the client code. You will need to change it based on your PC address.
If you run it on Windows then you need to add an incoming rule in Windows firewall. The port is 55555.
Took me about two and a half hours to write all three components. This is a nice example of the power of B4J, B4A and B4i combined
Attachments
Last edited: