B4J Question Advice on new app (Employee Attendance)

Discussion in 'B4J Questions' started by mcqueccu, Aug 20, 2019.

  1. mcqueccu

    mcqueccu Active Member Licensed User

    I am about to work on a small B4J application - Attendance logging for the time in and time out.
    The organization has about 15 employees. Also, the application is expected to work offline, and on a single machine.

    My concern is If I use system time for the logs, it is possible for some employees to figure out by changing the system time backwards before logging for the system to pick their time?

    My question is:
    1. Is there any other system time I can access which cannot be changed by just changing system clock?

    2. If no to above, is there any other way I can use to detect if someone has tempered with the date and time during the app use?

    3. Can I run app in background (something like Service in B4A) which I can use to set my own time and date within the application?
  2. Erel

    Erel Administrator Staff Member Licensed User

    Getting the time from a SNTP server: https://www.b4x.com/android/forum/threads/b4x-sntp-class.86088/#content

    Not locally.

    You can check the current time every second with a timer.

    You can run an app in the background. It will not be difficult to kill it with task manager.
    mcqueccu likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice