Monday, April 30, 2012

[android-developers] Re: public variables

I think you're looking for the Application class:  http://developer.android.com/reference/android/app/Application.html

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment