package com.unicorn.easygo;

import android.app.Application;
import android.content.Intent;

import com.unicorn.easygo.entity.UserProfile;

/**
 * Created by haoc_dp on 2017/6/25.
 */

public class EGOApplication extends Application {

    private static EGOApplication egoApplication;

    private static EGOApplication getInstance() {
        return egoApplication;
    }

    private UserProfile userProfile;

    @Override
    public void onCreate() {
        super.onCreate();
        egoApplication = this;
        userProfile = new UserProfile();

    }

    public UserProfile getUserProfile() {

        return userProfile;
    }

    public void setUserProfile(UserProfile userProfile){
        this.userProfile = userProfile;
    }
}

@@ -281,30 +281,29 @@
 tion;%0A%0A    p
-rivate
+ublic
  static EGOA
@@ -363,24 +363,79 @@
 ion;%0A    %7D%0A%0A
+    private EGOApplication() %7B%0A        super();%0A    %7D%0A%0A
     private 

修改单例模式，getInstance为public，构造方法为private