How to pass a class instance dynamically?
<p>What is wrong with the following android java code</p>

<pre><code>Class&lt;?&gt; c = Class.forName(PACKAGENAME+"."+className); 
Constructor&lt;?&gt; cons = c.getConstructor(String.class);
Object object = cons.newInstance(result);
</code></pre>

<p>i want it to call a constructor of one parameter. </p>
