@@ -0,0 +1,669 @@
+package com.jamesdube.laravelnewsapp;%0A%0Aimport android.app.Application;%0Aimport android.content.Context;%0Aimport android.util.Log;%0A%0A/**%0A * Created by rick on 1/6/17.%0A */%0A%0Apublic class App extends Application %7B%0A    private static App Instance;%0A    public static String Tag = %22REALM%22;%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A        Instance = this;%0A    %7D%0A%0A    public static App getInstance() %7B%0A        if(Instance == null) %7B%0A            Log.d(Tag,%22app init%22);%0A            Instance = new App();%0A        %7D%0A        return Instance;%0A    %7D%0A%0A    public static Context getAppContext() %7B%0A        return getInstance().getApplicationContext();%0A    %7D%0A%0A%7D%0A

create App class for singletons