I have a Service that is bind in my Activity with a ServiceConnection. The Service starts when the Activity is created and stops in my BroadcastReceiver class and works great. Now, I will like to stop the Service after a give period. Being trying TimerTask in my Service class, but don't seems to be working correctly.
Any suggestion or solutions would be kindly appreciated.
Thanks.