hi ipeg

i didnt get ur question clearly.
whatevr if you are working in java there is no such concept of global
variable , because here object are initiated from heap space.
but you can make a globally accessible varible inside a class this way :-
public class myClass{
public static x = 0;
...
}
then this variable can be accessed from everywhere by the classname itself
(i.e. myClass.x) .

regards
Kaushik

On Wed, Jan 14, 2009 at 4:18 PM, <[email protected]> wrote:

>
> Hi Developers.................
>
>
>                    Now i have a small problem. I want to create a
> global variable in my program.
> Please give me the coding of create a global variable. Thanks in
> advance.
>
> Suman.
> >
>

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

Reply via email to