public static void setRegisterOnServerLifespan(Context context, 
            long lifespan) {
        final SharedPreferences prefs = getGCMPreferences(context);
        Editor editor = prefs.edit();
        editor.putLong(PROPERTY_ON_SERVER_LIFESPAN, lifespan);
        editor.commit();
    }
public static void setRegisterOnServerLifespan ( Context context , long lifespan ) { final SharedPreferences prefs = getGCMPreferences ( context ) ; Editor editor = prefs . edit ( ) ; editor . putLong ( PROPERTY_ON_SERVER_LIFESPAN , lifespan ) ; editor . commit ( ) ; }
Sets how long (in milliseconds) the {@link #isRegistered(Context)}
flag is valid.