android: show loading animation until the document is loaded

Change-Id: I98eeafe30e90d039175daea65428526a95c9ff1e