michael@21: /** michael@21: * Copyright © 2015, Michael Schloh von Bennewitz michael@21: * michael@21: * This project source file is free software: you can redistribute michael@21: * it and/or modify it under the terms of the GNU General Public License michael@21: * as published by the Free Software Foundation, either version 3 of the michael@21: * License, or at your option any later version. michael@21: * michael@21: * Andoid Caldav Sync Adapter Free is distributed in the hope that michael@21: * it will be useful, but WITHOUT ANY WARRANTY; without even the implied michael@21: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the michael@21: * GNU General Public License for more details. michael@21: * michael@21: * You should have received a copy of the GNU General Public License michael@21: * along with Andoid Caldav Sync Adapter Free. michael@21: * If not, see . michael@21: */ michael@21: michael@21: package com.europalab.caldavsyn; michael@21: michael@21: import android.app.Application; michael@21: import android.content.Context; michael@21: michael@21: public class Appctxpro extends Application { michael@21: // Store a app context reference michael@21: private static Context sContext; michael@21: michael@21: // Construct a ctx provider michael@21: public Appctxpro() { michael@21: super(); michael@21: sContext = this; michael@21: } michael@21: michael@21: // Context accessor methods michael@21: public static Context getContext() { michael@21: return sContext; michael@21: } michael@21: public static void setContext(Context aContext) { michael@21: sContext = aContext; michael@21: } michael@21: }