Global variable getting me null
<p>I want to use Global variale in my project so I have simply take a class in which I can set and get any variable dat easily.</p>

<p><strong>like this::</strong></p>

<pre><code>public class Glob_variable {


        String Path = new String();

        /**********************************************/
        public void setPath(String Path) {
            this.Path = Path;
        }

        public String getPath() {
            return Path;
        }
        /**********************************************/


    }
</code></pre>

<p>But when I initialize it, I get a null exception.
I have initialized it by creating a object of Glob_variable class.</p>

<p><strong>like::</strong> </p>

<pre><code>Glob_variable g = new Glob_variable();
        g.setPath("asdasd");
</code></pre>

<p>and when I call in second activity I got null variable when I trace.
I have call like:</p>

<pre><code>Glob_variable g = new Glob_variable();
g.getPath();
</code></pre>

<p>So can you tell me at the which point I have made a mistake?</p>
