SoundPool Crashes In Two Scenarios. Code For First Scenario Crashes
@Ian G. Clifton Here is the code for the first type of soundpool I tried. when the button to load the activity the program FCs back to the previous activity. code starts here but
Solution 1:
I found My problem. It is not a problem with these parts of the code. Actually Chirag Shah led me to the answer by his sudgestion. I looked through my code and found that I had locked the buttons out of the create section of the code in the previous activity.
I had
Private Button button1;
This was before the oncreate method but when I removed the private part.
Button button1;
now it works fine.
Solution 2:
May this help about :
E/AudioCache( 227): Heap size overflow! req size: 1052672, max size: 1048576
D/AudioPlayer( 227): size_t android::AudioPlayer::fillBuffer(void*, size_t) EOS reached, return size =4096
Post a Comment for "SoundPool Crashes In Two Scenarios. Code For First Scenario Crashes"