Monday, April 30, 2012

[android-developers] Re: public variables

I think you're looking for the Application class:

You have to write a class that extends Application, add a name field in the manifest.xml file, then you can access an instance of your Application sub-class from any activity of your app with Activity.getApplication().

On Monday, April 30, 2012 9:33:30 AM UTC-5, baturanija1 wrote:
hey people, i am trying to make "mute" button on my app,that could
sound-off\on sounds in app-such as ,sound of click,could of some
prezentation.. is there any option that i can declare public variable-
such as int,and to be seen in other class in my other activity.When i
open new item,i what to information of that variable can be seen in
othet itents...Any ides,,,i tried to google but did not
manage...Thanks for share :)

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment