Skip to content

Crash #2

@ChristophyBarth

Description

@ChristophyBarth

.initialize("2.in.pool.ntp.org", "0.asia.pool.ntp.org"); crashes the application.

java.lang.RuntimeException: Unable to create application com.example.officialscrab.TimeGuy: java.lang.UnsupportedOperationException
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7214)
        at android.app.ActivityThread.access$1600(ActivityThread.java:288)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2156)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:254)
        at android.app.ActivityThread.main(ActivityThread.java:8199)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
     Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractList.add(AbstractList.java:153)
        at com.krishna.securetimer.task.SyncSecureTimerTask.<init>(SyncSecureTimerTask.java:35)
        at com.krishna.securetimer.SecureTimer.initialize(SecureTimer.java:46)
        at com.krishna.securetimer.SecureTimer.initialize(SecureTimer.java:54)

Also, Is there any possibility of setting the time ourselves and let SecureTimer use that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions