1

Android app crashes when using thread

view story
linux-howto

http://stackoverflow.com – Found my error. I was missing the View argument on my muteSound method. I am creating an app to play music like inudge.net. I have been able to loop through the column and play the sounds and implement the play/pause functionality. However, the app crashes if I try to use any other UI component such as button when the thread is running. For example: When I press the mute button and call the muteSound method, the app stops working and crashes. The thread is inside the playSound() method. package com.example.tunegrid; import android.media.AudioManager; import android.media.SoundPool; i (HowTos)