package edu.rpi.cs.yacs.core;

import android.app.Application;

import edu.rpi.cs.yacs.retrofit.ServiceHelper;

/**
 * Created by Mark Robinson on 10/4/16.
 */
public class YACSApplication extends Application {
    ServiceHelper serviceHelper = new ServiceHelper(getApplicationContext());
}
@@ -212,79 +212,430 @@
     
-ServiceHelper serviceHelper = new ServiceHelper(getApplicationContext());
+private static YACSApplication instance;%0A%0A    private ServiceHelper serviceHelper = null;%0A%0A    public static YACSApplication getInstance() %7B%0A        return instance;%0A    %7D%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A        instance = this;%0A%0A        serviceHelper = new ServiceHelper(getApplicationContext());%0A    %7D%0A%0A    public ServiceHelper getServiceHelper() %7B%0A        return serviceHelper;%0A    %7D
 %0A%7D

Create YACSApplication Singleton Instance