package it.integry.integrywmsnative; import android.app.Application; import android.content.res.Configuration; import android.content.res.Resources; import it.integry.integrywmsnative.core.context.AppContext; public class MainApplication extends Application { public static Resources res; private AppContext appContext = new AppContext(this); // Called when the application is starting, before any other application objects have been created. // Overriding this method is totally optional! @Override public void onCreate() { super.onCreate(); appContext.init(); //Stash.init(this); res = getResources(); } // Called by the system when the device configuration changes while your component is running. // Overriding this method is totally optional! @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } // This is called when the overall system is running low on memory, // and would like actively running processes to tighten their belts. // Overriding this method is totally optional! @Override public void onLowMemory() { super.onLowMemory(); } }