How to handle intent condition in android?
<p>I am sending some values from Class A to class B via </p>

<pre><code>intent.putExtraString("tag1",value1);
</code></pre>

<p>In Class B, I am accepting those values by </p>

<pre><code>String value1=getintent.getString("tag1");
</code></pre>

<p>From Class B I am going to Class C via intent. Then when coming back to Class B from Class C it gives me null pointer exception for value. </p>

<p><strong>My question is:</strong> How to retain the value in this filed value1. so that when I come to Class B from C the value in value1 should still be retained. (Also kindly suggest me some solution without using static field for value1).</p>
