you start in the pull-to-refresh listener and then stop via setRefreshComplete when your job is finished
PS: better not use this lib any more https://plus.google.com/103829716466878605055/posts/8wmKAXEGAG2 there is now a SwipeRefreshLayout in the official lib