consolidated constants class
made SwipeRefreshActivity more robust against subclassing and API level
some code cleaning