The below code runs smoothly in the emulator from Eclipse, but there are problems when I run it on my Android phone and tablet.
public class RingerActivity e
NullPointerException means that mp is null. This means the MediaPlayer.create() failed. Does R.raw.alarm exist?