Skip to content

Instantly share code, notes, and snippets.

@danielhawkes
danielhawkes / MediaPlayerStateWrapper.java
Created June 16, 2011 15:58
A drop-in replacement for a MediaPlayer instance, that provides an accessor for the current state.
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.AbstractCollection;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import android.media.AudioManager;
import android.media.MediaPlayer;
@danielhawkes
danielhawkes / ballpaper_text_resources.txt
Created June 5, 2011 15:39
Ballpaper Text Resources
app_name = BallPaper
app_description = Simulates a set of multi-coloured balls.
menuHeader = Settings
menuPhysicsHeader = Settings > Physics
menuGraphicsHeader = Settings > Graphics
menuMiscHeader = Settings > Misc.
themes_title = Settings > Themes
version_number = 1.5.4
sdCardSaveButtonEnabled = Save
sdCardSaveButtonDisabled = SD card is not available
@danielhawkes
danielhawkes / gist:960565
Created May 7, 2011 15:02
Ballpaper text
<app_description> --> Simulates a set of multi-coloured balls.
<menuHeader> --> Settings
<menuPhysicsHeader> --> Settings --> Physics
<menuGraphicsHeader> --> Settings --> Graphics
<menuMiscHeader> --> Settings --> Misc.
<themes_title> --> Settings --> Themes
<version_number> --> 1.6.5
<sdCardSaveButtonEnabled> --> Save to SD
<sdCardSaveButtonDisabled> --> SD card is not available
<sdCardThemeHasBeenApplied> --> Theme has been applied to current profile