Instantiating an activity object, what consequences for performance and memory?
<p>Suppose I have an activity MyMainActivity, let's say complex enough with a bunch of code. </p>

<p>From another activity, to access a public variable or a method I instanciate :</p>

<pre><code>MyMainActivity ma = new MyMainActivity();
ma.editVariableMethod();
String example_variable = ma.public_examplevariable;
</code></pre>

<p>When I instanciate MyMainActivity ma, is it like creating the hole activity again and storing everything from MyMainActivity to memory, and that way it takes the same amount of memory it would take if I was starting MyMainActivity, or is it just a link which permits to edit variables from MyMainActivity?</p>
