android Programming Glossary: msoundmanager
Playing multiple sounds using SoundManager http://stackoverflow.com/questions/3039078/playing-multiple-sounds-using-soundmanager it runs fine. Adding a second sound causes it to crash. Anyone know what is causing the problem private SoundManager mSoundManager Called when the activity is first created. @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState.. @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.sos mSoundManager new SoundManager mSoundManager.initSounds getBaseContext mSoundManager.addSound 1 R.raw.dit mSoundManager.addSound 1 R.raw.dah.. Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.sos mSoundManager new SoundManager mSoundManager.initSounds getBaseContext mSoundManager.addSound 1 R.raw.dit mSoundManager.addSound 1 R.raw.dah Button SoundButton Button..
Android: Unable to instantiate activity / ClassNotFoundException http://stackoverflow.com/questions/4820554/android-unable-to-instantiate-activity-classnotfoundexception These are the first couple of lines from my activity public class SoundMachine extends Activity private SoundManager mSoundManager @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main.. public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main mSoundManager new SoundManager mSoundManager.initSounds getBaseContext int counter 0 for Integer soundFile soundFiles counter mSoundManager.addSound.. savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main mSoundManager new SoundManager mSoundManager.initSounds getBaseContext int counter 0 for Integer soundFile soundFiles counter mSoundManager.addSound counter soundFile..
Wake locks android service recurring http://stackoverflow.com/questions/5286947/wake-locks-android-service-recurring snippet below. public class PlaySound extends Service PowerManager.WakeLock wl PowerManager pm private SoundManager mSoundManager boolean wakeUpFlag false @Override public void onCreate super.onCreate mSoundManager new SoundManager mSoundManager.initSounds.. pm private SoundManager mSoundManager boolean wakeUpFlag false @Override public void onCreate super.onCreate mSoundManager new SoundManager mSoundManager.initSounds getBaseContext mSoundManager.addSound 1 R.raw.sound @Override public int onStartCommand.. mSoundManager boolean wakeUpFlag false @Override public void onCreate super.onCreate mSoundManager new SoundManager mSoundManager.initSounds getBaseContext mSoundManager.addSound 1 R.raw.sound @Override public int onStartCommand Intent intent int flags..
|