Removed unused sendShareIntent() function in MainActivity.
Removed unused imports.
Moved some code to helper functions hideElements() and showElements() to
handle hiding/showing buttons, text views, and the ad.