Re: [android-developers] Re: "Sound On/Off" Button - Muting app sounds Button

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 1:18 PM, Gabriel  wrote:

> but how can I apply this for a single button? And change the button image
> when I do that?
>

http://developer.android.com/reference/android/widget/Button.html
http://developer.android.com/reference/android/widget/ImageButton.html


> Sorry, I've just started developing, still learning the basics
>

http://developer.android.com/guide/topics/fundamentals.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: "Sound On/Off" Button - Muting app sounds Button

2011-03-21 Thread Gabriel
Thanks,

but how can I apply this for a single button? And change the button
image when I do that?

Sorry, I've just started developing, still learning the basics

On 21 mar, 15:07, TreKing  wrote:
> On Mon, Mar 21, 2011 at 12:50 PM, Gabriel  wrote:
> > I want to put this in my app, but I don't have any clue how to do that.
>
> if (muteButtonPressed())
>  turnOffSound();
>
> if (soundIsOn())
>  playSounds();
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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