sPFFramework/src/main/java/it/polimi/spf/framework/local/SPFService.java
public static void stopForeground(Context c) {
        Intent i = new Intent(c, SPFService.class);
        i.setAction(ACTION_STOP_FOREGROUND);
        c.startService(i);
        c.stopService(i);
    }
public static void stopForeground(Context c) {
        Intent i = new Intent(c, SPFService.class);
        i.setAction(ACTION_STOP_FOREGROUND);
        c.startService(i);
        c.stopService(i);
    }
Sends an intent to SPFService, using the {@link Context} provided, that
makes it stop foreground.

@param c - the Context used to send the intent;
@see Service#stopForeground(boolean)