Repaired warning dialog in MainActivity (replaced deprecated method with
AlertDialog functionality)