How to change value of TextView of an activity depending on the different Activites calling the first activity?
<p>I need to create a logic which is going to decrease my code size in an Android Project.Suppose I have an Activity C. Activity C have a TextView whose value is "Hello". There are two another Activities A &amp; B. Now, if Activity A on button Click calls Activity C, the value of TextView must change to "How are You?" and if Activity B calls Activity C , TextView value will be "I am Fine".</p>

<p>So, my question is , How to detect which Activity is calling Activity C and change the text of TextView  accordingly at runtime ?</p>

<p>Any kind of help will be appreciated.</p>
