MainActivity Code Inspection and cleanup

Remove warnings from Code Inspection.
Collapse calls A->B->C to A->B.
Use onPause/onResume to resume and pause the Scan Service.

@matthewsibigtroth