Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

access Global variable from inner Class in android studio

$
0
0

Hi

When I use android in eclipse, I can easily use a global variable (a variable that I have simply declare on the upper part of the Main Class) in an inner class. I just add the name I gave to the parent class to the name of the variable : parent.myVariable

I try to do the same in android studio and I cannot get it to work

Any idea on why it is so ?

cheers


Viewing all articles
Browse latest Browse all 941

Trending Articles