0

In my android app there is a button to logout.I need the app to logout at 4 pm.Please anybody help me to know how I can make this by calling the logout function at a particular time in device

user3256431
  • 167
  • 5
  • 15
  • 1
    dupicate of [this](http://stackoverflow.com/questions/6274141/trigger-background-service-at-a-specific-time-in-android) question – Manuel Spigolon Mar 19 '14 at 10:02

1 Answers1

0

To do a task at some particular time, you need to implement AlarmManager.

Take a look here

You can implement Alarm Manager, and invoke an IntentService that logs out the user as per your need

Atish Agrawal
  • 2,857
  • 1
  • 23
  • 38