Skip to content

Instantly share code, notes, and snippets.

@danielhawkes
danielhawkes / MediaPlayerStateWrapper.java
Created Jun 16, 2011
A drop-in replacement for a MediaPlayer instance, that provides an accessor for the current state.
View MediaPlayerStateWrapper.java
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;
View ballpaper_text_resources.txt
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
View gist:960565
<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
You can’t perform that action at this time.