zstart
zstart

Reputation: 19

How to set session timeout for my android application

In my application, sometimes after clicking on an activity, It keeps displaying the message "Loading", What could be the reason behind it??

Upvotes: 1

Views: 6703

Answers (1)

elmorabea
elmorabea

Reputation: 3263

You can has a task that checks periodically if your user hasn't interacted with the device or not.

and you can detect user interaction with the device using this method.

Activity.onUserInteraction(), which notifies you that the user has interacted with the screen somehow .. you can put it in a parent Activity class and have all your activities extend it.

Upvotes: 1

Related Questions