sPFFramework/src/main/java/it/polimi/spf/framework/SPFContext.java
public static synchronized void initialize(Context context, int goIntent, boolean isAutonomous,
                                               ProximityMiddleware.Factory factory) {
        if (context == null || factory == null) {
            throw new NullPointerException("Arguments cannot be null");
        }

        SPF.initialize(context, goIntent, isAutonomous, factory);
        sInstance = new SPFContext();
    }
public static synchronized void initialize(Context context, int goIntent, boolean isAutonomous,
                                               ProximityMiddleware.Factory factory) {
        if (context == null || factory == null) {
            throw new NullPointerException("Arguments cannot be null");
        }

        SPF.initialize(context, goIntent, isAutonomous, factory);
        sInstance = new SPFContext();
    }
Initializes SPFContext. After this method has been called, you can get
references to SPFContext and SPF.

@param context