in app there service
intended run in background once started. service started activity
, onstartcommand()
method:
myservice: .... @override public int onstartcommand(intent intent, int flags, int startid) { super.onstartcommand(intent intent, int flags, int startid) mhandler.postdelayed(new myrunnable(), scheduledtime); }
i want know if having big scheduledtime
(lets couple of days in milliseconds), handler
still execute runnable
? or should better use alarmmanager
this?
thanks.
i want know if having big scheduledtime variable (lets represents couple of days), handler still execute runnable?
yes, if service , thread handler
posts alive time.
or should better use alarmmanager this?
yes.
Comments
Post a Comment