diff --git a/tns-core-modules/timer/timer.android.ts b/tns-core-modules/timer/timer.android.ts index 5e362d083..8013c017c 100644 --- a/tns-core-modules/timer/timer.android.ts +++ b/tns-core-modules/timer/timer.android.ts @@ -7,7 +7,7 @@ var timerId = 0; function createHandlerAndGetId(): number { if (!timeoutHandler) { - timeoutHandler = new android.os.Handler(android.os.Looper.getMainLooper()); + timeoutHandler = new android.os.Handler(android.os.Looper.myLooper()); } timerId++;