title: how to set string resourse dynamically
body: <p>I have one <code>edittext</code> and button which passes the <code>editText</code> text to the other activity <code>onClick</code> when it comes to second activity it is receiving the text from main activity.</p>
  
  <p>My question is, I have more than 20 String names in String resource folder, I have to open the particular string which matches the <code>edittext</code> value of main activity.
  In short, I have to change the <code>textview</code> text which matches string resource String</p>
  
  <pre><code>&lt;resources&gt;
          &lt;string name="app_name"&gt;sylb&lt;/string&gt;
          &lt;string name="title_activity_display"&gt;display&lt;/string&gt;
          &lt;string name="large_text"&gt;some_large_text&lt;/string&gt;
          &lt;string name="ds15mca21"&gt;second mca&lt;/string&gt;
          &lt;string name="ds15mca11"&gt;first mca&lt;/string&gt;
          &lt;string name="ds15mba21"&gt;second &lt;b&gt;mba&lt;/b&gt;&gt;&lt;/string&gt;
          &lt;string name="ds15aut21"&gt;second &lt;i&gt;automobile&lt;/i&gt;&lt;/string&gt;
          &lt;string name="action_settings"&gt;Settings&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>display code</p>
  
  <pre><code>public class display extends AppCompatActivity {
          String code;
          @Override
          protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_display);
              Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
              setSupportActionBar(toolbar);
              Intent intent = getIntent();
              Bundle extras = intent.getExtras();
              code= extras.getString("keyName");
              TextView textView= (TextView) findViewById(R.id.textapp);
  
              textView.setText("R.string." + "ds" + code);
          }
      }
  </code></pre>