Pass Control By Name To findViewById
<p>If you got:</p>

<p>Button btn = (Button) findViewById(R.id.widget28);</p>

<p>where "widget28" is the name of your button, how can you pass this
into the findViewById as a String? or get it from R class as a string?</p>

<p>I want to get the Button instance by string and not by the hard code R.id.widget28 reference.</p>

<p>thanks</p>
