Reputation: 19
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
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