title: Strange Error -java.lang.reflect.Method.invokeNative(Native Method)
body: <p>When i move from Activity A to B  app crashes and i get 2 lines of log posted below
  the app works fine but i cannot go to Activity B as it gives error</p>
  
  <pre><code>AndroidRuntime(2438):at java.lang.reflect.Method.invoke(Method.java:511)
  AndroidRuntime(2438):   at java.lang.reflect.Method.invokeNative(Native Method)
  </code></pre>
  
  <p>how can i fix this problem or know what is happening?</p>
  
  <p>Activity B </p>
  
  <pre><code>       public class B extends Activity {
  
  
  
          @Override
          protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.lay_b);
           }}
  </code></pre>