Skip to content

Instantly share code, notes, and snippets.

View macsystems's full-sized avatar
🏠
Working from home

Jens Hohl macsystems

🏠
Working from home
View GitHub Profile
@macsystems
macsystems / SharedPreferencesUtil
Last active December 17, 2015 13:49
Some class i wrote today to transparent update the BackupAgent when using the SharedPreferences Editor and the BackupAgent. The Basic Idea is to have an Util class which provides access to the SharedPreferences and its Editor
/**
* Utils class which allows to write more easy access of the {@link SharedPreferences}
*
* @author Jens Hohl
*
*/
public final class SharedPreferencesUtil
{
@macsystems
macsystems / gist:5262760
Created March 28, 2013 12:30
Some Proxy class to get Logging for register/unregister of Objects in greenrobots EventBus
import android.util.Log;
import com.google.common.eventbus.EventBus;
/**
* An Proxy which allows better log control