Added a loading bar when the activity is first launched.

Added a length check before the regex is fired, so when a really long
line comes up, it just skips it and doesn't freeze the UI thread for a
long time.