using Java reflection feature in Android app
<p>hey, does anyone have experience in developing Android app with Java reflection feature?</p>

<p>I am stuck with a peculiar problem , looking for help.</p>

<p>I have a Activity and a common class residing in the same package of my Activity,
let's assume they are com.mypkg.MyActivity and com.mypkg.MyClass
my code in MyActivity:</p>

<pre><code>Class clazz = MyClass.class;
Constructor[] constructors1 = clazz.getDeclaredConstructors();
Class cls = java.lang.Object.class;
Constructor[] constructors2 = cls.getDeclaredConstructors();
...
</code></pre>

<p>okay, now my problem:
the code runs fine on simulator, 
while on real device, constructors of those pre-built classes, such as java.lang.Object or android.widget.FrameLayout, can be retrieved correctly, but constructors of MyClass is always empty(i.e. constructors1.length is always zero)</p>

<p>I am very confused, any help?</p>
