I have a custom class called "Sound" with SoundPool, I want to implement the loading complete listener so that my activity can play an intro sound and display the "start" button once loading is complete.
How would I go about implementing the listener and then testing for the complete status from my activity to make sure everything is loaded then go on to do the above.
A small example would be appreciated.
MyActivity creates an instance of my class "Sound" so that it can call various sound methods from it.
Sound mySound = new Sound();
Most of these are not a problem, because by the time they are called, the loading has completed, however, I need for MyActivity to be able to check if loading has completed before calling
mySound.playIntro();
(for example).
Maybe the OnLoadCompleteListener isn't the best solution, I'm still learning, so I'm open to ideas, this is just the way I guessed it should be done.
Thanks