0

Possible Duplicate:
Android: How to declare global variables?

How to declare global variables in android application?

Community
  • 1
  • 1
  • What do you mean by "global variable"? It would help if you could explain what you want to store in the variable and from where you want to reference it. – David Webb Mar 07 '11 at 12:42
  • Look at this topic [Android: How to declare global variables?](http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables) – evilone Mar 21 '11 at 19:40

2 Answers2

0

you can use static keyword for global variable...

Niranj Patel
  • 32,980
  • 10
  • 97
  • 133
0

Declare object in class which extends from Application class

Shrenik
  • 399
  • 2
  • 5
  • 22