The member variable in LaunchActivity is unnecessary since the result of the isOnline() method is accessible from the Activity and gives real-time results. Remove isOnline member variable and change if statement argument in the onCreate() method to the result of the isOnline() method.
Also suggest that isOnline() method be moved to a Utilities class as it is not directly relevant to the LaunchActivity and cannot be used by any other UI component or class while located within the activity.
The member variable in LaunchActivity is unnecessary since the result of the isOnline() method is accessible from the Activity and gives real-time results. Remove isOnline member variable and change if statement argument in the onCreate() method to the result of the isOnline() method.