take a boolean variable and wirtie two if condition
on each condition set condtions

On Mar 27, 8:55 pm, Gabriel <[email protected]> wrote:
> How I create a button with two functions?
> For example, when I click it once it starts a sound, and if I click it
> again it stops the sounds.
>
> Or a Mute button, that when I click it mutes all the sounds and change
> the imagebutton for a "mute off" image and if I click it again the
> sound returns.
>
> I appreciate any help. Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to