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